Skip to content

Commit

Permalink
add configurable service annotations helm#1234 (helm#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachie83 authored and Vic Iglesias committed Jul 5, 2017
1 parent 7733814 commit d66484b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/jenkins/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: jenkins
home: https://jenkins.io/
version: 0.8.0
version: 0.8.1
appVersion: 2.67
description: Open source continuous integration server. It supports multiple SCM tools including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based projects as well as arbitrary scripts.
sources:
Expand Down
4 changes: 4 additions & 0 deletions charts/jenkins/templates/jenkins-master-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ metadata:
release: {{.Release.Name | quote }}
chart: "{{.Chart.Name}}-{{.Chart.Version}}"
component: "{{.Release.Name}}-{{.Values.Master.Component}}"
{{- if .Values.Master.ServiceAnnotations }}
annotations:
{{ toYaml .Values.Master.ServiceAnnotations | indent 4}}
{{- end }}
spec:
ports:
- port: {{.Values.Master.ServicePort}}
Expand Down
3 changes: 3 additions & 0 deletions charts/jenkins/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Master:
# For minikube, set this to NodePort, elsewhere use LoadBalancer
# Use ClusterIP if your setup includes ingress controller
ServiceType: LoadBalancer
# Master Service annotations
ServiceAnnotations: {}
# service.beta.kubernetes.io/aws-load-balancer-backend-protocol: https
# Used to create Ingress record (should used with ServiceType: ClusterIP)
# HostName: jenkins.cluster.local
# NodePort: <to set explicitly, choose port between 30000-32767
Expand Down

0 comments on commit d66484b

Please sign in to comment.