[stable/sonatype-nexus]: added support for service account (#20032)

* feat(sonatype-nexus): added support for service account

Signed-off-by: Emanuele Massara <emas80@gmail.com>

* [stable/sonatype-nexus]: added support for service account

Signed-off-by: Emanuele Massara <emas80@gmail.com>
This commit is contained in:
Emanuele Massara
2020-01-29 12:48:15 -08:00
committed by GitHub
parent 1c06ec9e7e
commit cf5878d6c2
5 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: sonatype-nexus
version: 1.21.4
version: 1.22.0
appVersion: 3.20.1-01
description: Sonatype Nexus is an open source repository manager
keywords:
+3
View File
@@ -150,6 +150,9 @@ The following table lists the configurable parameters of the Nexus chart and the
| `service.loadBalancerSourceRanges` | Service LoadBalancer source IP whitelist | `nil` |
| `service.targetPort` | Service port | `nil` |
| `service.port` | Port for exposing service | `nil` |
| `serviceAccount.create` | Automatically create a service account | `true` |
| `serviceAccount.name` | Service account to use | `nil` |
| `serviceAccount.annotations` | Service account annotations | `nil` |
| `route.enabled` | Set to true to create route for additional service | `false` |
| `route.name` | Name of route | `docker` |
| `route.portName` | Target port name of service | `docker` |
@@ -59,6 +59,11 @@ spec:
imagePullSecrets:
- name: {{ .Values.nexus.imagePullSecret }}
{{- end }}
{{- if .Values.serviceAccount.create }}
serviceAccountName: {{ template "nexus.fullname" . }}
{{- else }}
serviceAccountName: {{ .Values.serviceAccount.name | quote }}
{{- end }}
containers:
- name: nexus
image: {{ .Values.nexus.imageName }}:{{ .Values.nexus.imageTag }}
@@ -0,0 +1,9 @@
{{- if .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "nexus.fullname" . }}
{{- if .Values.serviceAccount.annotations }}
annotations: {{ toYaml .Values.serviceAccount.annotations | nindent 4 }}
{{- end }}
{{- end }}
+8
View File
@@ -154,6 +154,14 @@ nexusBackup:
# pdName: nexus-backup-disk
# fsType: ext4
serviceAccount:
# Specifies whether a service account should be created
create: true
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name:
annotations: {}
ingress:
enabled: false
path: /