#324 Allow set services in Helm Chart

This commit is contained in:
Tomasz Sęk 2020-04-14 09:28:33 +02:00
parent e9581915ff
commit 5ab1984be9
No known key found for this signature in database
GPG Key ID: DC356D23F6A644D0
2 changed files with 13 additions and 0 deletions

View File

@ -49,6 +49,12 @@ spec:
{{- end }}
{{- end }}
{{- with .Values.jenkins.notifications }}
{{- with .Values.jenkins.service }}
service: {{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.jenkins.slaveService }}
slaveService: {{- toYaml . | nindent 4 }}
{{- end }}
notifications: {{ toYaml . | nindent 4 }}
{{- end }}
master:

View File

@ -108,6 +108,13 @@ jenkins:
persistentVolumeClaim:
claimName: jenkins-backup
# http Jenkins service
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.Service for details
#service:
# slave Jenkins service
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.Service for details
#slaveService:
# backup is section for configuring operator's backup feature
# By default backup feature is enabled and pre-configured
# This section simplifies the configuration described here: https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configure-backup-and-restore/