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 }}
23 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27 {{- if .Values.global.tpm.enabled }}
28 - image: {{ include "repositoryGenerator.image.readiness" . }}
29 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
30 name: {{ include "common.name" . }}-readiness
35 - "{{ include "common.release" . }}-aaf-sshsm-abrmd-init"
41 fieldPath: metadata.namespace
50 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 name: {{ include "common.name" . }}-gen-passphrase
53 command: ["sh", "-c", "/usr/bin/openssl rand -base64 12 >/distcenter/data/passphrase"]
59 fieldPath: metadata.namespace
61 - mountPath: /etc/localtime
64 - name: {{ include "common.fullname" . }}-data
65 mountPath: /distcenter/data
75 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
76 name: {{ include "common.name" . }}
77 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
78 command: ["/entrypoint.sh"]
79 workingDir: /distcenter
81 - mountPath: /etc/localtime
84 - name: {{ include "common.fullname" . }}-data
85 mountPath: /distcenter/data
86 resources: {{ include "common.resources" . | nindent 10 }}
87 {{- if .Values.nodeSelector }}
88 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
90 {{- if .Values.affinity }}
91 affinity: {{ toYaml .Values.affinity | nindent 8 }}
97 - name: {{ include "common.fullname" . }}-data
98 persistentVolumeClaim:
99 claimName: {{ include "common.release" . }}-aaf-sshsm
101 - name: "{{ include "common.namespace" . }}-docker-registry-key"