Reloader icon indicating copy to clipboard operation
Reloader copied to clipboard

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

Open supanut1911 opened this issue 1 year ago • 3 comments
trafficstars

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 avatar Nov 13 '24 08:11 supanut1911