Skip to content

Commit

Permalink
Merge pull request #5 from affinipay/jm/allow-zk-headless-annotations
Browse files Browse the repository at this point in the history
INF-2117 Allow annotations for the zookeeper headless service.
  • Loading branch information
jlm3575 authored Dec 10, 2019
2 parents 7db1ab1 + af50f75 commit 253db79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/cp-zookeeper/templates/headless-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ metadata:
chart: {{ template "cp-zookeeper.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- range $key, $value := .Values.headlessServiceAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
ports:
- port: {{ .Values.serverPort }}
Expand Down
3 changes: 3 additions & 0 deletions charts/cp-zookeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ resources: {}
## Custom pod annotations
podAnnotations: {}

## Headless service annotations
headlessServiceAnnotations: {}

## Node labels for pod assignment
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
nodeSelector: {}
Expand Down

0 comments on commit 253db79

Please sign in to comment.