mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/redmine] Option to create a custom service account (#19005)
* adding service account option Signed-off-by: Carlos Roberto Marques Junior <carlos.marques@bndes.gov.br> * version bump Signed-off-by: Carlos Roberto Marques Junior <carlos.marques@bndes.gov.br> * removing empty line Signed-off-by: Carlos Roberto Marques Junior <carlos.marques@bndes.gov.br> * bumping version Signed-off-by: Carlos Roberto Marques Junior <carlos.marques@bndes.gov.br> * indentation Signed-off-by: Carlos Roberto Marques Junior <carlos.marques@bndes.gov.br> * [stable/redmine] bumping version Signed-off-by: Carlos Roberto Marques Junior <carlos.marques@bndes.gov.br> * bumping version Signed-off-by: Carlos Roberto Marques Junior <carlos.marques@bndes.gov.br> * Update stable/redmine/values.yaml Co-Authored-By: David J. M. Karlsen <david@davidkarlsen.com> Signed-off-by: crmarques <crmarquesjc@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
co-authored by
David J. M. Karlsen
parent
ba1d08a129
commit
b1cdd2cede
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: redmine
|
||||
version: 13.7.0
|
||||
version: 13.8.0
|
||||
appVersion: 4.0.5
|
||||
description: A flexible project management web application.
|
||||
keywords:
|
||||
|
||||
@@ -100,8 +100,10 @@ The following table lists the configurable parameters of the Redmine chart and t
|
||||
| `service.externalTrafficPolicy` | Enable client source IP preservation | `Cluster` |
|
||||
| `service.loadBalancerIP` | LoadBalancer service IP address | `""` |
|
||||
| `service.loadBalancerSourceRanges` | An array of load balancer sources | `0.0.0.0/0` |
|
||||
| `serviceAccount.create` | Specifies whether a ServiceAccount should be created | `false` |
|
||||
| `serviceAccount.name` | The name of the ServiceAccount to create | Generated using the redmine.fullname template |
|
||||
| `ingress.enabled` | Enable or disable the ingress | `false` |
|
||||
| `ingress.hosts[0].name` | Hostname to your Redmine installation | `redmine.local ` |
|
||||
| `ingress.hosts[0].name` | Hostname to your Redmine installation | `redmine.local` |
|
||||
| `ingress.hosts[0].path` | Path within the url structure | `/` |
|
||||
| `ingress.hosts[0].tls` | Utilize TLS backend in ingress | `false` |
|
||||
| `ingress.hosts[0].certManager` | Add annotations for cert-manager | `false` |
|
||||
|
||||
@@ -144,6 +144,17 @@ Return the appropriate apiVersion for deployment.
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use
|
||||
*/}}
|
||||
{{- define "redmine.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
{{ default (include "redmine.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else -}}
|
||||
{{ default "default" .Values.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the name of the Secret used to store the passwords
|
||||
*/}}
|
||||
|
||||
@@ -164,6 +164,7 @@ spec:
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ template "redmine.serviceAccountName" . }}
|
||||
{{- with .Values.securityContext }}
|
||||
securityContext:
|
||||
{{ toYaml . | indent 8 }}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "redmine.serviceAccountName" . }}
|
||||
labels:
|
||||
app: {{ template "redmine.fullname" . }}
|
||||
chart: {{ template "redmine.chart" . }}
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
{{- end }}
|
||||
@@ -302,6 +302,16 @@ resources: {}
|
||||
# cpu: "2"
|
||||
# memory: "1G"
|
||||
|
||||
## Pods Service Account
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
|
||||
serviceAccount:
|
||||
## Specifies whether a ServiceAccount should be created
|
||||
##
|
||||
create: true
|
||||
## The name of the ServiceAccount to use.
|
||||
## If not set and create is true, a name is generated using the redmine.fullname template
|
||||
# name:
|
||||
|
||||
## Pod Security Context
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user