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 and .Values.global.tpm.enabled .Values.global.abrmd.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 }}
33 app: {{ include "common.name" . }}
34 release: {{ .Release.Name }}
39 app: {{ include "common.name" . }}
40 release: {{ .Release.Name }}
43 - image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
45 name: {{ include "common.name" . }}-job-complete
47 - /root/job_complete.py
50 - "{{ include "common.fullname" . }}-init"
56 fieldPath: metadata.namespace
58 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
59 name: {{ include "common.name" . }}
60 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 command: ["/abrmd/bin/run_abrmd.sh"]
62 workingDir: /abrmd/bin
66 - name: {{ include "common.fullname" . }}-dbus
67 mountPath: /var/run/dbus
68 - name: {{ include "common.fullname" . }}-tpm-device
70 - mountPath: /etc/localtime
74 {{ toYaml .Values.resources | indent 10 }}
76 {{- if .Values.nodeSelector }}
77 {{ toYaml .Values.nodeSelector | indent 8 }}
79 {{- if .Values.global.tpm.enabled }}
80 {{ (printf "%s: \"%s\"" .Values.global.tpm.nodeLabel .Values.global.tpm.nodeLabelValue) }}
82 {{- if .Values.affinity }}
84 {{ toYaml .Values.affinity | indent 8 }}
90 - name: {{ include "common.fullname" . }}-dbus
91 persistentVolumeClaim:
92 claimName: {{ .Release.Name }}-aaf-sshsm-dbus
93 - name: {{ include "common.fullname" . }}-tpm-device