Hardcode component names.
By removing this, we reduce unecessary config options and moving parts. Signed-off-by: Naseem <naseem@transit.app>
This commit is contained in:
parent
99419c75bc
commit
5ae314bd64
39 changed files with 97 additions and 101 deletions
|
|
@ -2,7 +2,7 @@
|
|||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: {{ template "ingress-nginx.fullname" . }}-admission-create
|
||||
name: {{ include "ingress-nginx.fullname" . }}-admission-create
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||
|
|
@ -16,7 +16,7 @@ spec:
|
|||
{{- end }}
|
||||
template:
|
||||
metadata:
|
||||
name: {{ template "ingress-nginx.fullname" . }}-admission-create
|
||||
name: {{ include "ingress-nginx.fullname" . }}-admission-create
|
||||
{{- if .Values.controller.admissionWebhooks.patch.podAnnotations }}
|
||||
annotations: {{ toYaml .Values.controller.admissionWebhooks.patch.podAnnotations | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
@ -33,11 +33,11 @@ spec:
|
|||
imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }}
|
||||
args:
|
||||
- create
|
||||
- --host={{ template "ingress-nginx.controller.fullname" . }}-admission,{{ template "ingress-nginx.controller.fullname" . }}-admission.{{ .Release.Namespace }}.svc
|
||||
- --host={{ include "ingress-nginx.controller.fullname" . }}-admission,{{ include "ingress-nginx.controller.fullname" . }}-admission.{{ .Release.Namespace }}.svc
|
||||
- --namespace={{ .Release.Namespace }}
|
||||
- --secret-name={{ template "ingress-nginx.fullname". }}-admission
|
||||
- --secret-name={{ include "ingress-nginx.fullname" . }}-admission
|
||||
restartPolicy: OnFailure
|
||||
serviceAccountName: {{ template "ingress-nginx.fullname" . }}-admission
|
||||
serviceAccountName: {{ include "ingress-nginx.fullname" . }}-admission
|
||||
{{- if .Values.controller.admissionWebhooks.patch.nodeSelector }}
|
||||
nodeSelector: {{ toYaml .Values.controller.admissionWebhooks.patch.nodeSelector | nindent 8 }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue