1 # Copyright 2018 Intel Corporation, Inc
2 # Modifications © 2020 AT&T
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 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 serviceName: {{ include "common.servicename" . }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
39 - name: "{{ include "common.namespace" . }}-docker-registry-key"
40 {{- if .Values.persistence.enabled }}
42 - name: fix-permission
48 chmod -R 775 /quorumclient/auth
49 chown -R 100:1000 /quorumclient/auth
50 image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - mountPath: /quorumclient/auth
54 name: {{ include "common.fullname" . }}-data
57 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
58 name: {{ include "common.name" . }}
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 command: ["/quorumclient/bin/quorumclient"]
61 workingDir: /quorumclient/
63 - mountPath: /etc/localtime
66 - mountPath: /quorumclient/config.json
67 name: {{ include "common.name" .}}
69 {{- if .Values.persistence.enabled }}
70 - mountPath: /quorumclient/auth
71 name: {{ include "common.fullname" . }}-data
74 {{ include "common.resources" . | indent 10 }}
75 {{- if .Values.nodeSelector }}
77 {{ toYaml .Values.nodeSelector | indent 10 }}
79 {{- if .Values.affinity }}
81 {{ toYaml .Values.affinity | indent 10 }}
87 - name : {{ include "common.name" . }}
89 name: {{ include "common.fullname" . }}
94 {{- if .Values.persistence.enabled }}
97 name: {{ include "common.fullname" . }}-data
99 name: {{ include "common.fullname" . }}
100 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
101 release: "{{ include "common.release" . }}"
102 heritage: "{{ .Release.Service }}"
105 - {{ .Values.persistence.accessMode | quote }}
106 storageClassName: {{ include "common.storageClass" . }}
109 storage: {{ .Values.persistence.size | quote }}