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.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
22 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
26 - image: {{ include "repositoryGenerator.image.readiness" . }}
27 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
28 name: {{ include "common.name" . }}-distcenter-ready
33 - "{{ include "common.release" . }}-aaf-sshsm-distcenter"
39 fieldPath: metadata.namespace
47 {{- if .Values.global.tpm.enabled }}
48 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 name: {{ include "common.name" . }}-abrmd-ready
51 command: ["sh", "/sshsm/bin/abrmd_ready.sh", "300"]
52 workingDir: /testca/bin
58 fieldPath: metadata.namespace
60 - name: {{ include "common.fullname" . }}-dbus
61 mountPath: /var/run/dbus
71 - image: {{ include "repositoryGenerator.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
101 resources: {{ include "common.resources" . | nindent 10 }}
103 {{- if .Values.nodeSelector }}
104 {{ toYaml .Values.nodeSelector | indent 8 | trim }}
106 {{- if .Values.global.tpm.enabled }}
107 {{ (printf "%s: \"%s\"" .Values.global.tpm.nodeLabel .Values.global.tpm.nodeLabelValue) }}
109 {{- if .Values.affinity }}
110 affinity: {{ toYaml .Values.affinity | nindent 8 }}
116 - name: {{ include "common.fullname" . }}-data
117 persistentVolumeClaim:
118 claimName: {{ include "common.release" . }}-aaf-sshsm
119 - name: {{ include "common.fullname" . }}-dbus
120 persistentVolumeClaim:
121 claimName: {{ include "common.release" . }}-aaf-sshsm-dbus
122 - name: {{ include "common.fullname" . }}-secrets
124 secretName: {{ include "common.release" . }}-aaf-sshsm
126 - name: "{{ include "common.namespace" . }}-docker-registry-key"