Skip to content

Commit

Permalink
#324 Allow set services in Helm Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszsek committed Apr 14, 2020
1 parent e958191 commit 5ab1984
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions chart/jenkins-operator/templates/jenkins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions chart/jenkins-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 5ab1984

Please sign in to comment.