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:
@@ -29,6 +29,7 @@ A Helm chart to install the SPIFFE OIDC discovery provider.
|
|||||||
| config.domains[0] | string | `"localhost"` | |
|
| config.domains[0] | string | `"localhost"` | |
|
||||||
| config.domains[1] | string | `"oidc-discovery.example.org"` | |
|
| config.domains[1] | string | `"oidc-discovery.example.org"` | |
|
||||||
| config.logLevel | string | `"info"` | |
|
| config.logLevel | string | `"info"` | |
|
||||||
|
| configMap.annotations | object | `{}` | Annotations to add to the SPIFFE OIDC Discovery Provider ConfigMap |
|
||||||
| fullnameOverride | string | `""` | |
|
| fullnameOverride | string | `""` | |
|
||||||
| image.pullPolicy | string | `"IfNotPresent"` | |
|
| image.pullPolicy | string | `"IfNotPresent"` | |
|
||||||
| image.registry | string | `"ghcr.io"` | |
|
| image.registry | string | `"ghcr.io"` | |
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "spiffe-oidc-discovery-provider.fullname" . }}
|
name: {{ include "spiffe-oidc-discovery-provider.fullname" . }}
|
||||||
namespace: {{ include "spiffe-oidc-discovery-provider.namespace" . }}
|
namespace: {{ include "spiffe-oidc-discovery-provider.namespace" . }}
|
||||||
|
{{- with .Values.configMap.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
oidc-discovery-provider.conf: |
|
oidc-discovery-provider.conf: |
|
||||||
{{- include "spiffe-oidc-discovery-provider.yaml-config" (dict "oidcSocket" $oidcSocket "root" .) | fromYaml | toPrettyJson | nindent 4 }}
|
{{- include "spiffe-oidc-discovery-provider.yaml-config" (dict "oidcSocket" $oidcSocket "root" .) | fromYaml | toPrettyJson | nindent 4 }}
|
||||||
|
|||||||
@@ -34,6 +34,10 @@ service:
|
|||||||
annotations: {}
|
annotations: {}
|
||||||
# external-dns.alpha.kubernetes.io/hostname: oidc-discovery.example.org
|
# external-dns.alpha.kubernetes.io/hostname: oidc-discovery.example.org
|
||||||
|
|
||||||
|
configMap:
|
||||||
|
# -- Annotations to add to the SPIFFE OIDC Discovery Provider ConfigMap
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
# fsGroup: 2000
|
# fsGroup: 2000
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ A Helm chart to install the SPIRE agent.
|
|||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| bundleConfigMap | string | `"spire-bundle"` | |
|
| bundleConfigMap | string | `"spire-bundle"` | |
|
||||||
| clusterName | string | `"example-cluster"` | |
|
| clusterName | string | `"example-cluster"` | |
|
||||||
|
| configMap.annotations | object | `{}` | Annotations to add to the SPIRE Agent ConfigMap |
|
||||||
| extraContainers | list | `[]` | |
|
| extraContainers | list | `[]` | |
|
||||||
| extraVolumeMounts | list | `[]` | |
|
| extraVolumeMounts | list | `[]` | |
|
||||||
| extraVolumes | list | `[]` | |
|
| extraVolumes | list | `[]` | |
|
||||||
|
|||||||
@@ -55,6 +55,10 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "spire-agent.fullname" . }}
|
name: {{ include "spire-agent.fullname" . }}
|
||||||
namespace: {{ include "spire-agent.namespace" . }}
|
namespace: {{ include "spire-agent.namespace" . }}
|
||||||
|
{{- with .Values.configMap.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
agent.conf: |
|
agent.conf: |
|
||||||
{{- include "spire-agent.yaml-config" . | fromYaml | toPrettyJson | nindent 4 }}
|
{{- include "spire-agent.yaml-config" . | fromYaml | toPrettyJson | nindent 4 }}
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ serviceAccount:
|
|||||||
# If not set and create is true, a name is generated using the fullname template
|
# If not set and create is true, a name is generated using the fullname template
|
||||||
name: ""
|
name: ""
|
||||||
|
|
||||||
|
configMap:
|
||||||
|
# -- Annotations to add to the SPIRE Agent ConfigMap
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ A Helm chart to install the SPIRE server.
|
|||||||
| ca_subject.organization | string | `"Example"` | |
|
| ca_subject.organization | string | `"Example"` | |
|
||||||
| clusterDomain | string | `"cluster.local"` | |
|
| clusterDomain | string | `"cluster.local"` | |
|
||||||
| clusterName | string | `"example-cluster"` | |
|
| clusterName | string | `"example-cluster"` | |
|
||||||
|
| configMap.annotations | object | `{}` | Annotations to add to the SPIRE Server ConfigMap |
|
||||||
|
| controllerManager.configMap.annotations | object | `{}` | Annotations to add to the Controller Manager ConfigMap |
|
||||||
| controllerManager.enabled | bool | `false` | |
|
| controllerManager.enabled | bool | `false` | |
|
||||||
| controllerManager.identities.dnsNameTemplates | list | `[]` | |
|
| controllerManager.identities.dnsNameTemplates | list | `[]` | |
|
||||||
| controllerManager.identities.enabled | bool | `true` | |
|
| controllerManager.identities.enabled | bool | `true` | |
|
||||||
|
|||||||
@@ -104,6 +104,10 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "spire-server.fullname" . }}
|
name: {{ include "spire-server.fullname" . }}
|
||||||
namespace: {{ include "spire-server.namespace" . }}
|
namespace: {{ include "spire-server.namespace" . }}
|
||||||
|
{{- with .Values.configMap.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
server.conf: |
|
server.conf: |
|
||||||
{{- include "spire-server.yaml-config" . | fromYaml | toPrettyJson | nindent 4 }}
|
{{- include "spire-server.yaml-config" . | fromYaml | toPrettyJson | nindent 4 }}
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ kind: ConfigMap
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "spire-controller-manager.fullname" . }}
|
name: {{ include "spire-controller-manager.fullname" . }}
|
||||||
namespace: {{ include "spire-server.namespace" . }}
|
namespace: {{ include "spire-server.namespace" . }}
|
||||||
|
{{- with .Values.controllerManager.configMap.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
data:
|
data:
|
||||||
controller-manager-config.yaml: |
|
controller-manager-config.yaml: |
|
||||||
apiVersion: spire.spiffe.io/v1alpha1
|
apiVersion: spire.spiffe.io/v1alpha1
|
||||||
|
|||||||
@@ -46,6 +46,10 @@ service:
|
|||||||
port: 8081
|
port: 8081
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
|
||||||
|
configMap:
|
||||||
|
# -- Annotations to add to the SPIRE Server ConfigMap
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
@@ -186,6 +190,10 @@ controllerManager:
|
|||||||
port: 443
|
port: 443
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
|
||||||
|
configMap:
|
||||||
|
# -- Annotations to add to the Controller Manager ConfigMap
|
||||||
|
annotations: {}
|
||||||
|
|
||||||
ignoreNamespaces:
|
ignoreNamespaces:
|
||||||
- kube-system
|
- kube-system
|
||||||
- kube-public
|
- kube-public
|
||||||
|
|||||||
Reference in New Issue
Block a user