2 # Copyright 2018 Intel Corporation, Inc
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
17 {{- if .Values.global.testca.enabled -}}
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
25 app: {{ include "common.name" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
27 release: {{ .Release.Name }}
28 heritage: {{ .Release.Service }}
30 replicas: {{ .Values.replicaCount }}
35 app: {{ include "common.name" . }}
36 release: {{ .Release.Name }}
40 - image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
41 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
42 name: {{ include "common.name" . }}-distcenter-ready
44 - /root/job_complete.py
47 - "{{ include "common.namespace" . }}-aaf-sshsm-distcenter"
53 fieldPath: metadata.namespace
54 {{- if .Values.global.tpm.enabled }}
55 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 name: {{ include "common.name" . }}-abrmd-ready
58 command: ["sh", "/sshsm/bin/abrmd_ready.sh", "300"]
59 workingDir: /testca/bin
65 fieldPath: metadata.namespace
67 - name: {{ include "common.fullname" . }}-dbus
68 mountPath: /var/run/dbus
71 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
72 name: {{ include "common.name" . }}
73 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
74 command: ["./import.sh"]
75 workingDir: /testca/bin
77 {{- if .Values.global.tpm.enabled }}
81 fieldPath: spec.nodeName
83 value: /testca/data/host_$(TPM_NODE_NAME)
88 - name: SECRETS_FOLDER
89 value: /testca/secrets
91 - mountPath: /etc/localtime
94 - name: {{ include "common.fullname" . }}-data
95 mountPath: /testca/data
96 - name: {{ include "common.fullname" . }}-dbus
97 mountPath: /var/run/dbus
98 - name: {{ include "common.fullname" . }}-secrets
99 mountPath: /testca/secrets
102 {{ toYaml .Values.resources | indent 10 }}
104 {{- if .Values.nodeSelector }}
105 {{ toYaml .Values.nodeSelector | indent 8 }}
107 {{- if .Values.global.tpm.enabled }}
108 {{ (printf "%s: \"%s\"" .Values.global.tpm.nodeLabel .Values.global.tpm.nodeLabelValue) }}
110 {{- if .Values.affinity }}
112 {{ toYaml .Values.affinity | indent 8 }}
118 - name: {{ include "common.fullname" . }}-data
119 persistentVolumeClaim:
120 claimName: {{ include "common.namespace" . }}-aaf-sshsm-data
121 - name: {{ include "common.fullname" . }}-dbus
122 persistentVolumeClaim:
123 claimName: {{ include "common.namespace" . }}-aaf-sshsm-dbus
124 - name: {{ include "common.fullname" . }}-secrets
126 secretName: {{ include "common.namespace" . }}-aaf-sshsm
128 - name: "{{ include "common.namespace" . }}-docker-registry-key"