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

Signed-off-by: mike sarver <mike.sarver@ibotta.com>
This commit is contained in:
mike sarver 2021-04-23 06:42:00 -06:00
parent 34af70fbed
commit d26a2f666b
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -881,8 +881,8 @@ configs:
clusterCredentials: [] clusterCredentials: []
# - name: mycluster # - name: mycluster
# server: https://mycluster.com # server: https://mycluster.com
# annotations: {}
# labels: {} # labels: {}
# annotations: {}
# config: # config:
# bearerToken: "<authentication token>" # bearerToken: "<authentication token>"
# tlsClientConfig: # tlsClientConfig: