1 #============LICENSE_START========================================================
2 # ================================================================================
3 # Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=========================================================
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
23 selector: {{- include "common.selectors" . | nindent 4 }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
28 - name: {{ include "common.name" . }}
29 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
30 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
31 ports: {{ include "common.containerPorts" . | nindent 12 }}
32 {{- if eq .Values.liveness.enabled true }}
35 port: {{ .Values.liveness.port }}
36 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
37 periodSeconds: {{ .Values.liveness.periodSeconds }}
41 port: {{ .Values.readiness.port }}
42 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
43 periodSeconds: {{ .Values.readiness.periodSeconds }}
44 resources: {{ include "common.resources" . | nindent 12 }}
46 - mountPath: /run/config
48 - mountPath: /run/certs
50 - mountPath: /run/pass
52 - name: {{ include "common.name" . }}-dind
53 image: "{{ .Values.dindRepository }}/{{ .Values.dindImage }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 - "--host=tcp://localhost:2375"
62 - name: adapter-config
64 name: {{ include "common.fullname" . }}-configmap
67 secretName: {{ include "common.secret.getSecretName" (dict "global" . "uid" "certs") }}
70 secretName: {{ include "common.secret.getSecretName" (dict "global" . "uid" "docker") }}
72 - name: "{{ include "common.namespace" . }}-docker-registry-key"