feat(argo-cd): Add label to cluster-secrets for usage with appSet cluster selector (#692)

* add cluster label for use with appSet cluster selector

Signed-off-by: mike sarver <mike.sarver@ibotta.com>

* feat(argo-cd): Add label to cluster-secrets for usage with appSet cluster selector

Signed-off-by: mike sarver <mike.sarver@ibotta.com>

* feat(argo-cd): use with for adding labels

Signed-off-by: mike sarver <mike.sarver@ibotta.com>

Co-authored-by: Oliver Bähler <oliverbaehler@hotmail.com>
This commit is contained in:
Mike Sarver 2021-04-23 17:14:52 -06:00 committed by GitHub
parent 7b78693819
commit 71cbdbb811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -6,6 +6,9 @@ metadata:
name: {{ include "argo-cd.name" $ }}-cluster-{{ .name }}
labels:
{{- include "argo-cd.labels" (dict "context" $) | nindent 4 }}
{{- with .labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
argocd.argoproj.io/secret-type: cluster
{{- with .annotations }}
annotations: