4 name: {{ include "common.fullname" . }}
5 namespace: {{ include "common.namespace" . }}
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9 release: {{ include "common.release" . }}
10 heritage: {{ .Release.Service }}
14 app: {{ include "common.name" . }}
15 replicas: {{ .Values.replicaCount }}
19 app: {{ include "common.name" . }}
20 release: {{ include "common.release" . }}
27 - "cd /config-input && for PFILE in `ls -1`; do envsubst <${PFILE} >/config/${PFILE}; done"
29 - name: RESTSERVER_USER
30 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "login") | indent 10 }}
31 - name: RESTSERVER_PASSWORD
32 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restserver-creds" "key" "password") | indent 10 }}
34 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "apiparameters-creds" "key" "login") | indent 10 }}
36 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "apiparameters-creds" "key" "password") | indent 10 }}
38 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "papparameters-creds" "key" "login") | indent 10 }}
40 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "papparameters-creds" "key" "password") | indent 10 }}
42 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "sdcbe-creds" "key" "login") | indent 10 }}
43 - name: SDCBE_PASSWORD
44 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "sdcbe-creds" "key" "password") | indent 10 }}
46 - mountPath: /config-input
47 name: distributionconfig-input
49 name: distributionconfig
50 image: "{{ .Values.global.envsubstImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 name: {{ include "common.name" . }}-update-config
54 - name: {{ include "common.name" . }}
55 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 command: ["/opt/app/policy/distribution/bin/policy-dist.sh"]
58 args: ["/opt/app/policy/distribution/etc/mounted/config.json"]
60 - containerPort: {{ .Values.service.internalPort }}
61 # disable liveness probe when breakpoints set in debugger
62 # so K8s doesn't restart unresponsive container
63 {{- if eq .Values.liveness.enabled true }}
66 port: {{ .Values.service.internalPort }}
67 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
68 periodSeconds: {{ .Values.liveness.periodSeconds }}
72 port: {{ .Values.service.internalPort }}
73 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.readiness.periodSeconds }}
76 - mountPath: /etc/localtime
79 - mountPath: /opt/app/policy/distribution/etc/mounted
80 name: distributionconfig
82 {{ include "common.resources" . | indent 12 }}
83 {{- if .Values.nodeSelector }}
85 {{ toYaml .Values.nodeSelector | indent 10 }}
87 {{- if .Values.affinity }}
89 {{ toYaml .Values.affinity | indent 10 }}
95 - name: distributionconfig-input
97 name: {{ include "common.fullname" . }}-configmap
99 - name: distributionconfig
103 - name: "{{ include "common.namespace" . }}-docker-registry-key"