Skip to content

Commit

Permalink
Merge pull request #378 from vuldin/add-annotations-to-lb-service
Browse files Browse the repository at this point in the history
Add annotations to external services
  • Loading branch information
alejandroEsc authored Mar 9, 2023
2 parents e606c53 + f18e186 commit f910a9b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/redpanda/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: application
# The chart version and the app version are not the same and will not track
# together. The chart version is a semver representation of changes to this
# chart.
version: 3.0.0
version: 3.0.1

# The app version is the default version of Redpanda to install.
appVersion: v23.1.1
Expand Down
4 changes: 4 additions & 0 deletions charts/redpanda/templates/service.loadbalancer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ metadata:
{{- . | nindent 4 }}
{{- end }}
repdanda.com/type: "loadbalancer"
{{- with $values.external.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: LoadBalancer
{{- if not ( empty $root.Values.external.sourceRanges ) }}
Expand Down
4 changes: 4 additions & 0 deletions charts/redpanda/templates/services.nodeport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ metadata:
{{- with include "full.labels" . }}
{{- . | nindent 4 }}
{{- end }}
{{- with $values.external.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: NodePort
externalTrafficPolicy: Local
Expand Down
3 changes: 3 additions & 0 deletions charts/redpanda/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@
},
"sourceRanges": {
"type": "array"
},
"annotations": {
"type": "object"
}
}
},
Expand Down

0 comments on commit f910a9b

Please sign in to comment.