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 }}
23 replicas: {{ .Values.replicaCount }}
25 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
29 - image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
30 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
31 name: {{ include "common.name" . }}-distcenter-ready
33 - /root/job_complete.py
36 - "{{ include "common.release" . }}-aaf-sshsm-distcenter"
42 fieldPath: metadata.namespace
50 {{- if .Values.global.tpm.enabled }}
51 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 name: {{ include "common.name" . }}-abrmd-ready
54 command: ["sh", "/sshsm/bin/abrmd_ready.sh", "300"]
55 workingDir: /testca/bin
61 fieldPath: metadata.namespace
63 - name: {{ include "common.fullname" . }}-dbus
64 mountPath: /var/run/dbus
74 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
75 name: {{ include "common.name" . }}
76 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
77 command: ["./import.sh"]
78 workingDir: /testca/bin
80 {{- if .Values.global.tpm.enabled }}
84 fieldPath: spec.nodeName
86 value: /testca/data/host_$(TPM_NODE_NAME)
91 - name: SECRETS_FOLDER
92 value: /testca/secrets
94 - mountPath: /etc/localtime
97 - name: {{ include "common.fullname" . }}-data
98 mountPath: /testca/data
99 - name: {{ include "common.fullname" . }}-dbus
100 mountPath: /var/run/dbus
101 - name: {{ include "common.fullname" . }}-secrets
102 mountPath: /testca/secrets
104 resources: {{ include "common.resources" . | nindent 10 }}
106 {{- if .Values.nodeSelector }}
107 {{ toYaml .Values.nodeSelector | indent 8 }}
109 {{- if .Values.global.tpm.enabled }}
110 {{ (printf "%s: \"%s\"" .Values.global.tpm.nodeLabel .Values.global.tpm.nodeLabelValue) }}
112 {{- if .Values.affinity }}
113 affinity: {{ toYaml .Values.affinity | nindent 8 }}
119 - name: {{ include "common.fullname" . }}-data
120 persistentVolumeClaim:
121 claimName: {{ include "common.release" . }}-aaf-sshsm
122 - name: {{ include "common.fullname" . }}-dbus
123 persistentVolumeClaim:
124 claimName: {{ include "common.release" . }}-aaf-sshsm-dbus
125 - name: {{ include "common.fullname" . }}-secrets
127 secretName: {{ include "common.release" . }}-aaf-sshsm
129 - name: "{{ include "common.namespace" . }}-docker-registry-key"