mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-07 22:42:22 -04:00
Add helm's quote function to various fields
The constellationUID is sometimes interpreted as integer if it contains 0e, as the yaml parsing interprets that as scientific notation. Since it is a best practices to quote string fields anyways this patch also quotes other fields where an actual string is required.
This commit is contained in:
parent
64f03cf675
commit
038ea5fade
30 changed files with 53 additions and 56 deletions
|
@ -56,10 +56,10 @@ spec:
|
|||
- name: KUBERNETES_CLUSTER_DOMAIN
|
||||
value: {{ .Values.kubernetesClusterDomain }}
|
||||
- name: CONSTEL_CSP
|
||||
value: {{ .Values.csp }}
|
||||
value: {{ .Values.csp | quote }}
|
||||
- name: constellation-uid
|
||||
value: {{ .Values.constellationUID }}
|
||||
image: {{ .Values.controllerManager.manager.image }}
|
||||
value: {{ .Values.constellationUID | quote }}
|
||||
image: {{ .Values.controllerManager.manager.image | quote }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
|
|
|
@ -13,12 +13,9 @@ data:
|
|||
| quote }}
|
||||
kind: ControllerManagerConfig
|
||||
leaderElection:
|
||||
leaderElect: {{ .Values.managerConfig.controllerManagerConfigYaml.leaderElection.leaderElect
|
||||
}}
|
||||
resourceName: {{ .Values.managerConfig.controllerManagerConfigYaml.leaderElection.resourceName
|
||||
| quote }}
|
||||
leaderElect: {{ .Values.managerConfig.controllerManagerConfigYaml.leaderElection.leaderElect }}
|
||||
resourceName: {{ .Values.managerConfig.controllerManagerConfigYaml.leaderElection.resourceName | quote }}
|
||||
metrics:
|
||||
bindAddress: {{ .Values.managerConfig.controllerManagerConfigYaml.metrics.bindAddress
|
||||
| quote }}
|
||||
bindAddress: {{ .Values.managerConfig.controllerManagerConfigYaml.metrics.bindAddress | quote }}
|
||||
webhook:
|
||||
port: {{ .Values.managerConfig.controllerManagerConfigYaml.webhook.port }}
|
||||
|
|
|
@ -55,8 +55,8 @@ spec:
|
|||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: KUBERNETES_CLUSTER_DOMAIN
|
||||
value: {{ .Values.kubernetesClusterDomain }}
|
||||
image: {{ .Values.controllerManager.manager.image }}
|
||||
value: {{ .Values.kubernetesClusterDomain | quote }}
|
||||
image: {{ .Values.controllerManager.manager.image | quote }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
|
@ -74,8 +74,7 @@ spec:
|
|||
port: 8081
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
resources: {{- toYaml .Values.controllerManager.manager.resources | nindent 10
|
||||
}}
|
||||
resources: {{- toYaml .Values.controllerManager.manager.resources | nindent 10 }}
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
volumeMounts:
|
||||
|
|
|
@ -8,7 +8,7 @@ metadata:
|
|||
node-maintenance-operator: ""
|
||||
{{- include "chart.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.metricsService.type }}
|
||||
type: {{ .Values.metricsService.type | quote }}
|
||||
selector:
|
||||
control-plane: controller-manager
|
||||
node-maintenance-operator: ""
|
||||
|
|
|
@ -8,8 +8,7 @@ metadata:
|
|||
spec:
|
||||
dnsNames:
|
||||
- 'node-maintenance-operator-webhook-service.{{ .Release.Namespace }}.svc'
|
||||
- 'node-maintenance-operator-webhook-service.{{ .Release.Namespace }}.svc.{{
|
||||
.Values.kubernetesClusterDomain }}'
|
||||
- 'node-maintenance-operator-webhook-service.{{ .Release.Namespace }}.svc.{{ .Values.kubernetesClusterDomain }}'
|
||||
issuerRef:
|
||||
kind: Issuer
|
||||
name: node-maintenance-operator-selfsigned-issuer
|
||||
|
|
|
@ -7,7 +7,7 @@ metadata:
|
|||
node-maintenance-operator: ""
|
||||
{{- include "chart.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.webhookService.type }}
|
||||
type: {{ .Values.webhookService.type | quote }}
|
||||
selector:
|
||||
control-plane: controller-manager
|
||||
node-maintenance-operator: ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue