Fix linting warning;Add annotations
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-09-04 21:41:49 +02:00
parent 7b17b8ad63
commit 7c7333690d
2 changed files with 11 additions and 7 deletions

View File

@ -35,18 +35,20 @@
_template: _template:
name: "{{ item.name }}" name: "{{ item.name }}"
namespace: "{{ item.namespace }}" namespace: "{{ item.namespace }}"
annotations: "{{ item.annotations | default('{}') | indent(width=4, first=True) }}"
labels: "{{ item.labels | default('{}') | indent(width=4, first=True) }}" labels: "{{ item.labels | default('{}') | indent(width=4, first=True) }}"
data: "{{ item.data }}" data: "{{ item.data }}"
loop: loop:
- name: argocd-tls-certs-cm - name: argocd-tls-certs-cm
namespace: argo-cd namespace: argo-cd
kind: configmap kind: configmap
labels: | annotations: |
app.kubernetes.io/managed-by: Helm app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
meta.helm.sh/release-name: argo-cd meta.helm.sh/release-name: argo-cd
meta.helm.sh/release-namespace: argo-cd meta.helm.sh/release-namespace: argo-cd
labels: |
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data: data:
- key: git.{{ vapp['metacluster.fqdn'] }} - key: git.{{ vapp['metacluster.fqdn'] }}
value: "{{ stepca_cm_certs.resources[0].data['root_ca.crt'] }}" value: "{{ stepca_cm_certs.resources[0].data['root_ca.crt'] }}"

View File

@ -3,6 +3,8 @@ kind: ConfigMap
metadata: metadata:
name: {{ _template.name }} name: {{ _template.name }}
namespace: {{ _template.namespace }} namespace: {{ _template.namespace }}
annotations:
{{ _template.annotations }}
labels: labels:
{{ _template.labels }} {{ _template.labels }}
data: data: