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 -}}
21 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
28 - image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
29 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
30 name: {{ include "common.name" . }}-distcenter-ready
35 - "{{ include "common.release" . }}-aaf-sshsm-distcenter"
41 fieldPath: metadata.namespace
49 {{- if .Values.global.tpm.enabled }}
50 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 name: {{ include "common.name" . }}-abrmd-ready
53 command: ["sh", "/sshsm/bin/abrmd_ready.sh", "300"]
54 workingDir: /testca/bin
60 fieldPath: metadata.namespace
62 - name: {{ include "common.fullname" . }}-dbus
63 mountPath: /var/run/dbus
73 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
74 name: {{ include "common.name" . }}
75 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
76 command: ["./import.sh"]
77 workingDir: /testca/bin
79 {{- if .Values.global.tpm.enabled }}
83 fieldPath: spec.nodeName
85 value: /testca/data/host_$(TPM_NODE_NAME)
90 - name: SECRETS_FOLDER
91 value: /testca/secrets
93 - mountPath: /etc/localtime
96 - name: {{ include "common.fullname" . }}-data
97 mountPath: /testca/data
98 - name: {{ include "common.fullname" . }}-dbus
99 mountPath: /var/run/dbus
100 - name: {{ include "common.fullname" . }}-secrets
101 mountPath: /testca/secrets
103 resources: {{ include "common.resources" . | nindent 10 }}
105 {{- if .Values.nodeSelector }}
106 {{ toYaml .Values.nodeSelector | indent 8 }}
108 {{- if .Values.global.tpm.enabled }}
109 {{ (printf "%s: \"%s\"" .Values.global.tpm.nodeLabel .Values.global.tpm.nodeLabelValue) }}
111 {{- if .Values.affinity }}
112 affinity: {{ toYaml .Values.affinity | nindent 8 }}
118 - name: {{ include "common.fullname" . }}-data
119 persistentVolumeClaim:
120 claimName: {{ include "common.release" . }}-aaf-sshsm
121 - name: {{ include "common.fullname" . }}-dbus
122 persistentVolumeClaim:
123 claimName: {{ include "common.release" . }}-aaf-sshsm-dbus
124 - name: {{ include "common.fullname" . }}-secrets
126 secretName: {{ include "common.release" . }}-aaf-sshsm
128 - name: "{{ include "common.namespace" . }}-docker-registry-key"