From 5ab1984be918b6965fc45d3a2485befc5a5c5079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20S=C4=99k?= Date: Tue, 14 Apr 2020 09:28:33 +0200 Subject: [PATCH] #324 Allow set services in Helm Chart --- chart/jenkins-operator/templates/jenkins.yaml | 6 ++++++ chart/jenkins-operator/values.yaml | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/chart/jenkins-operator/templates/jenkins.yaml b/chart/jenkins-operator/templates/jenkins.yaml index 0e5679431..72e808124 100644 --- a/chart/jenkins-operator/templates/jenkins.yaml +++ b/chart/jenkins-operator/templates/jenkins.yaml @@ -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: diff --git a/chart/jenkins-operator/values.yaml b/chart/jenkins-operator/values.yaml index 12d56b9cd..898646607 100644 --- a/chart/jenkins-operator/values.yaml +++ b/chart/jenkins-operator/values.yaml @@ -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/