Helm templates with implicit fields causes always OutOfSync in ArgoCD deployment #7361
Closed
LucasVanHaaren
started this conversation in
Bugs
Replies: 1 comment
-
it was resolved #7362 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hello,
I tried to deploy trivy as a server for Client-Server mode via ArgoCD via the helm chart.
I face the issue that my app is always out of sync as the trivy StatefulSet dosent define the VolumeClaimTemplates's kind and apiVersion :
PS: Git blaming show that it was always like this since the creation of the helm chart.
Desired Behavior
The template should define
kind
andapiVersion
involumeClaimTemplates
like this :Actual Behavior
The kind and apiVersion are implicit so the templated manifests are different than the actual Kubernetes resources, which cause to be always OutOfSync in gitops-pull tools like argoCD.
Reproduction Steps
helm template trivy aquasecurity/trivy --namespace trivy-repro --set persistence.enabled=true | tee trivy-templates.yml
grep 'volumeClaimTemplates' trivy-templates.yml -b5 2877- replicas: 1 2891- selector: 2903- matchLabels: 2920- app.kubernetes.io/name: trivy 2956- app.kubernetes.io/instance: trivy 2996: volumeClaimTemplates: 3020- - metadata: 3036- name: data 3055- spec: 3067- resources: 3086- requests:
Mode
Client/Server
Operating System
Kubernetes
Version
0.37.2
0.7.0
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions