Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared ConfigMap by multiple services, but can not handle specific reload by config map key for specific service. #786

Open
supanut1911 opened this issue Nov 13, 2024 · 3 comments
Labels
kind/enhancement New feature or request kind/help wanted Extra attention is needed

Comments

@supanut1911
Copy link

Describe the bug
Hi, I got issue with Stakater. I use 1 configmap to share with multiple services and when I update value of config map it will impact (reload / redeploy) all service that helm-value use key in config map.

To Reproduce
Steps to reproduce the behavior
Example configmap

kind: ConfigMap
metadata:
  name: xxxxx
  namespace: yyyy
data:
  animal: "cat"
  animal2: "bat"

Example helm-value

configMapRef:

FOOOPTIONS:
     configMapName: foo-bar-bar
     configMapKey: animal

animal is used by helm-value of serviceA and animal2 is used by helm-value of serviceB.
But when I reassign new value of animal ("dog" instead "cat"), Stakater will reload both serviceA and serviceB.

Expected behavior
When I update animal value I need Stakater repload / redeploy only service A. What are some ways to solve this problem?

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • Kubernetes Version: GKE 1.30.5-gke.1443001
  • Stakater reloader Version: 1.1.0
@supanut1911 supanut1911 added the kind/bug Something isn't working label Nov 13, 2024
@MuneebAijaz
Copy link
Contributor

duplicate of #507. We are open for PRs for this enhancement

@MuneebAijaz MuneebAijaz added kind/enhancement New feature or request kind/help wanted Extra attention is needed labels Nov 13, 2024
@faizanahmad055 faizanahmad055 removed the kind/bug Something isn't working label Nov 13, 2024
@faizanahmad055
Copy link
Contributor

faizanahmad055 commented Nov 13, 2024

Reloader does not support the reload based on specific data field changes. It looks at the complete data when performing the reload. In your case, the only solution is to split the configmap among different services/applications. However, as Muneeb mentioned, this is an enhancement that can be added in future by contribution.

@supanut1911
Copy link
Author

@MuneebAijaz @faizanahmad055 Many thanks for your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request kind/help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants