Skip to content

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

Open
@supanut1911

Description

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions