2 #============LICENSE_START========================================================
3 # ================================================================================
4 # Copyright (c) 2021 AT&T. All rights reserved.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
22 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
25 selector: {{- include "common.selectors" . | nindent 4 }}
27 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
29 {{ include "common.podSecurityContext" . | indent 7 | trim}}
31 - name: volume-permissions
32 image: {{ include "repositoryGenerator.image.busybox" . }}
33 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
39 chown -R {{ .Values.securityContext.user_id }}:{{ .Values.securityContext.group_id }} //chartmuseum-persist
43 - name: chart-persistent
44 mountPath: "/chartmuseum-persist"
46 - name: {{ include "common.name" . }}
47 image: {{ include "repositoryGenerator.githubContainerRegistry" . }}/{{ .Values.image }}
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 {{ include "common.containerSecurityContext" . | indent 12 | trim }}
50 resources: {{ include "common.resources" . | nindent 12 }}
51 ports: {{ include "common.containerPorts" . | nindent 12 }}
52 {{- if eq .Values.liveness.enabled true }}
55 path: {{ .Values.liveness.path }}
56 port: {{ .Values.liveness.port }}
57 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
58 periodSeconds: {{ .Values.liveness.periodSeconds }}
63 - name: STORAGE_LOCAL_ROOTDIR
64 value: "/chartmuseum-persist"
65 - name: BASIC_AUTH_USER
66 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "registrycred" "key" "login") | indent 14 }}
67 - name: BASIC_AUTH_PASS
68 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "registrycred" "key" "password") | indent 14 }}
70 - mountPath: /chartmuseum-persist
71 name: chart-persistent
72 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
74 - name: chart-persistent
75 {{- if .Values.persistence.enabled }}
76 persistentVolumeClaim:
77 claimName: {{ include "common.fullname" . }}
82 {{- include "common.imagePullSecrets" . | nindent 6 }}