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

[alertmanager] Add apiVersion and kind to StatefulSet volumeClaimTemplates #4865

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

schedin
Copy link

@schedin schedin commented Sep 19, 2024

Background

ArgoCD may take Helm charts as inputs, but does not install the Helm charts directly, instead it uses the helm template command that produces YAML file resources and then injects them directly. The result will look almost like a helm install command, but the deployment will not show up using helm list.

By using this mechanism ArgoCD can perform its own “diffing” and warn when the desired state does not match the cluster (for example if a person modified the resources after the deployment). It has the drawback that if some mechanism modifies the deployed resource(s) in an automatic way, ArgoCD will show the sync status as “OutOfSync” with a yellow arrow up icon.

What this PR does / why we need it

The Alertmanager StatefulSet has a volumeClaimTemplates: with one volume claim template. This template is missing the fields apiVersion and kind. When installed by Helm, Kubernetes will automatically add these missing fields (by a mechanism I have not digged deeper into).

This pull request will make the StatefulSet look more similar when comparing helm template with how the resource looks like in the cluster. This will make ArgoCD happy (with a green checkmark icon).

This pull request is analogous to what #4610 fixed.

Which issue this PR fixes

Special notes for your reviewer

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

…lates

Signed-off-by: Lennart Schedin <lennart.schedin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[prometheus-alertmanager] ArgoCD can't take a fullsync StatefulSet
1 participant