File tree Expand file tree Collapse file tree 5 files changed +27
-7
lines changed
Expand file tree Collapse file tree 5 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 11apiVersion : v1
22description : A lightweight private npm proxy registry (sinopia fork)
33name : verdaccio
4- version : 0.15.0
4+ version : 0.15.1
55appVersion : 4.6.2
66home : https://verdaccio.org
77icon : https://cdn.verdaccio.dev/logos/default.png
Original file line number Diff line number Diff line change @@ -14,3 +14,14 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
1414{ {- $name := default .Chart.Name .Values.nameOverride -} }
1515{ {- printf " %s-%s" .Release.Name $name | trunc 63 | trimSuffix " -" -} }
1616{ {- end -} }
17+
18+ { {/*
19+ Create the name of the service account to use
20+ */} }
21+ { {- define " verdaccio.serviceAccountName" -} }
22+ { {- if .Values.serviceAccount.enabled } }
23+ { {- default (include " verdaccio.fullname" .) .Values.serviceAccount.name } }
24+ { {- else } }
25+ { {- default " default" .Values.serviceAccount.name } }
26+ { {- end } }
27+ { {- end } }
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ metadata:
88 release : {{ .Release.Name }}
99 name : {{ template "verdaccio.fullname" . }}
1010spec :
11- {{- if .Values.serviceAccount.enabled }}
12- serviceAccountName : {{ template ".Values.serviceAccount.name" . }}
13- {{- end}}
1411 replicas : {{ .Values.replicaCount }}
1512 selector :
1613 matchLabels :
3431 app : {{ template "verdaccio.name" . }}
3532 release : {{ .Release.Name }}
3633 spec :
34+ {{- if .Values.serviceAccount.enabled }}
35+ serviceAccountName : {{ include "verdaccio.serviceAccountName" . }}
36+ {{- end}}
3737 containers :
3838 - name : {{ template "verdaccio.name" . }}
3939 image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
Original file line number Diff line number Diff line change 1- {{- if .Values.serviceAccount.enabled }}
1+ {{- if .Values.serviceAccount.enabled - }}
22---
33apiVersion : v1
44kind : ServiceAccount
55metadata :
6- name : {{ template ".Values.serviceAccount.name " . }}
6+ name : {{ include "verdaccio.serviceAccountName " . }}
77 labels :
88 app : {{ template "verdaccio.name" . }}
99 chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
1010 release : {{ .Release.Name }}
1111 heritage : {{ .Release.Service }}
12+ {{- with .Values.serviceAccount.annotations }}
13+ annotations :
14+ {{- toYaml . | nindent 4 }}
15+ {{- end }}
1216{{- end }}
Original file line number Diff line number Diff line change @@ -54,8 +54,13 @@ ingress:
5454
5555# # Service account
5656serviceAccount :
57+ # Specifies whether a service account should be created
5758 enabled : false
58- # name:
59+ # Annotations to add to the service account
60+ annotations : {}
61+ # The name of the service account to use.
62+ # If not set and enabled is true, a name is generated using the Chart's fullname template
63+ name : " "
5964
6065# Extra Environment Values - allows yaml definitions
6166extraEnvVars :
You can’t perform that action at this time.
0 commit comments