influxdata / helm-charts

Official Helm Chart Repository for InfluxData Applications
MIT License
233 stars 330 forks source link

Make replicaCount optional when set value to null #644

Open Jaydee94 opened 6 months ago

Jaydee94 commented 6 months ago

This pr makes the replica count optional in the telegraf Deployment object.

This is useful when you use a HorizontalPodAutoscaler that manages the replica count for you. Especially when you deploy this helm chart with ArgoCD and the auto sync functionality (https://argo-cd.readthedocs.io/en/stable/user-guide/best_practices/#leaving-room-for-imperativeness).

I've successfully tested it locally on my machine with helm template . --set replicaCount=null