Skip to content

Commit

Permalink
Add support for ArgoCD Rollouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
macb committed Mar 25, 2024
1 parent a3f80e6 commit 600280d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/vantage-kubernetes-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v2
name: vantage-kubernetes-agent
description: Provisions the Vantage Kubernetes agent.
type: application
version: 1.0.30
appVersion: "1.0.23"
version: 1.0.31
appVersion: "1.0.24"
icon: "https://assets.vantage.sh/www/vantage_avatar-social.jpg"
4 changes: 4 additions & 0 deletions charts/vantage-kubernetes-agent/templates/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ spec:
- name: VANTAGE_COLLECT_NAMESPACE_LABELS
value: "{{ .Values.agent.collectNamespaceLabels }}"
{{- end}}
{{- if .Values.agent.argocdRollouts}}
- name: VANTAGE_ARGO_ROLLOUTS
value: "{{ .Values.agent.argocdRollouts }}"
{{- end}}
- name: VANTAGE_API_TOKEN
valueFrom:
secretKeyRef:
Expand Down
6 changes: 6 additions & 0 deletions charts/vantage-kubernetes-agent/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ rules:
- "jobs"
- "cronjobs"
verbs: ["get", "watch", "list"]
{{- if .Values.agent.argocdRollouts}}
- apiGroups: ["argoproj.io"]
resources:
- "rollouts"
verbs: ["get", "watch", "list"]
{{- end}}
3 changes: 3 additions & 0 deletions charts/vantage-kubernetes-agent/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"allowedAnnotations": {
"type": "string"
},
"argocdRollouts": {
"type": "boolean"
},
"clusterID": {
"type": "string"
},
Expand Down
4 changes: 4 additions & 0 deletions charts/vantage-kubernetes-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ agent:

# Optional. When enabled, includes the labels of that pod's namespace in the pod metadata.
collectNamespaceLabels: "false"

# Optional. When enabled, includes ArgoCD Rollouts within controller metadata similar to Deployments.
argocdRollouts: false

persist:
mountPath: "/var/lib/vantage-agent"
name: "data"
Expand Down

0 comments on commit 600280d

Please sign in to comment.