2 # Copyright 2018 Intel Corporation, Inc
3 # Modifications © 2020 AT&T
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
29 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
33 serviceName: {{ include "common.servicename" . }}
37 app: {{ include "common.name" . }}
38 release: {{ include "common.release" . }}
41 - name: "{{ include "common.namespace" . }}-docker-registry-key"
42 {{- if .Values.persistence.enabled }}
44 - name: fix-permission
50 chmod -R 775 /quorumclient/auth
51 chown -R 100:1000 /quorumclient/auth
52 image: {{ include "repositoryGenerator.image.busybox" . }}
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 - mountPath: /quorumclient/auth
56 name: {{ include "common.fullname" . }}-data
59 - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
60 name: {{ include "common.name" . }}
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 command: ["/quorumclient/bin/quorumclient"]
63 workingDir: /quorumclient/
65 - mountPath: /etc/localtime
68 - mountPath: /quorumclient/config.json
69 name: {{ include "common.name" .}}
71 {{- if .Values.persistence.enabled }}
72 - mountPath: /quorumclient/auth
73 name: {{ include "common.fullname" . }}-data
76 {{ include "common.resources" . | indent 10 }}
77 {{- if .Values.nodeSelector }}
79 {{ toYaml .Values.nodeSelector | indent 10 }}
81 {{- if .Values.affinity }}
83 {{ toYaml .Values.affinity | indent 10 }}
89 - name : {{ include "common.name" . }}
91 name: {{ include "common.fullname" . }}
96 {{- if .Values.persistence.enabled }}
99 name: {{ include "common.fullname" . }}-data
101 name: {{ include "common.fullname" . }}
102 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
103 release: "{{ include "common.release" . }}"
104 heritage: "{{ .Release.Service }}"
107 - {{ .Values.persistence.accessMode | quote }}
108 storageClassName: {{ include "common.storageClass" . }}
111 storage: {{ .Values.persistence.size | quote }}