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.
16 apiVersion: apps/v1beta1
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 }}
32 app: {{ include "common.name" . }}
33 release: {{ include "common.release" . }}
36 - name: "{{ include "common.namespace" . }}-docker-registry-key"
37 {{- if .Values.persistence.enabled }}
39 - name: fix-permission
45 chmod -R 775 /quorumclient/auth
46 chown -R 100:1000 /quorumclient/auth
47 image: "{{ .Values.global.busyboxRepository }}/{{ .Values.global.busyboxImage }}"
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - mountPath: /quorumclient/auth
51 name: {{ include "common.fullname" . }}-data
54 - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
55 name: {{ include "common.name" . }}
56 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 command: ["/quorumclient/bin/quorumclient"]
58 workingDir: /quorumclient/
60 - mountPath: /etc/localtime
63 - mountPath: /quorumclient/config.json
64 name: {{ include "common.name" .}}
66 {{- if .Values.persistence.enabled }}
67 - mountPath: /quorumclient/auth
68 name: {{ include "common.fullname" . }}-data
71 {{ include "common.resources" . | indent 10 }}
72 {{- if .Values.nodeSelector }}
74 {{ toYaml .Values.nodeSelector | indent 10 }}
76 {{- if .Values.affinity }}
78 {{ toYaml .Values.affinity | indent 10 }}
84 - name : {{ include "common.name" . }}
86 name: {{ include "common.fullname" . }}
91 {{- if .Values.persistence.enabled }}
94 name: {{ include "common.fullname" . }}-data
96 name: {{ include "common.fullname" . }}
97 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
98 release: "{{ include "common.release" . }}"
99 heritage: "{{ .Release.Service }}"
102 - {{ .Values.persistence.accessMode | quote }}
103 storageClassName: {{ include "common.storageClass" . }}
106 storage: {{ .Values.persistence.size | quote }}