-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(helm): explicitly define kind
and apiVersion
of volumeClaimTemplate
element
#7362
Conversation
|
kind
and apiVersion
of volumeClaimTemplate child
kind
and apiVersion
of volumeClaimTemplate childkind
and apiVersion
of volumeClaimTemplate
element
- apiVersion: v1 | ||
kind: PersistentVolumeClaim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly from the docs, PersistentVolumeClaim is created by default. so this update doesn't affect on k8s deploying.
But it seems ArgoCD tries to compare the state in the cluster with what is specified, it notices that the kind
and apiVersion
are not specified in one place, and it considers this a discrepancy, which leads to an "out of sync" state.
So I think It makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also it's useful if the k8s behavior will be changed.
@LucasVanHaaren thanks for your contribution! LGTM! |
Hello, thanks for merging it! I just noticed that no new chart versions have been released with this modification. |
oh, It's my mistake. I'll think over and update the helm version soon. |
@LucasVanHaaren FYI, it's a more generic issue with all Statefulsets using PVC Templates, see argoproj/argo-cd#11143. As a workaround, you can add annotation |
Description
Hello, I made a quick fix to define explicitly all
volumeClaimTemplate
field.This allows to use gitops tools (like argoCD) to sync raw k8s manifests (built via helm) with cluster resources. Without these fields defined, these will be added in the cluster resource resulting in an OutOfSync with the generated manifest.
Feel free to discuss this fix in the below linked discussion.
Related issues
Like mentionned in guidelines for contributing, I think this change is trivial. This is why I created this PR without any Issue linked.
Nevertheless, I oepened a discussion here: #7361
Checklist