Allow for ConfigMaps to be annotated (#272)

Without an annotation, spinnaker will rename the configmap.

---------

Signed-off-by: Faisal Memon <[email protected]>
Co-authored-by: kfox1111 <[email protected]>
This commit is contained in:
Faisal Memon
2023-05-11 10:49:06 -07:00
committed by GitHub
co-authored by kfox1111
parent 013eb617a9
commit b315324244
10 changed files with 36 additions and 0 deletions
@@ -104,6 +104,10 @@ kind: ConfigMap
metadata:
name: {{ include "spire-server.fullname" . }}
namespace: {{ include "spire-server.namespace" . }}
{{- with .Values.configMap.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
data:
server.conf: |
{{- include "spire-server.yaml-config" . | fromYaml | toPrettyJson | nindent 4 }}
@@ -4,6 +4,10 @@ kind: ConfigMap
metadata:
name: {{ include "spire-controller-manager.fullname" . }}
namespace: {{ include "spire-server.namespace" . }}
{{- with .Values.controllerManager.configMap.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
data:
controller-manager-config.yaml: |
apiVersion: spire.spiffe.io/v1alpha1