Skip to content

Commit

Permalink
HDDS-11841. Add support for additional service labels and annotations (
Browse files Browse the repository at this point in the history
  • Loading branch information
dnskr authored Dec 4, 2024
1 parent 5b5e67b commit 1619b1a
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/ozone/templates/datanode/datanode-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ metadata:
labels:
{{- include "ozone.labels" . | nindent 4 }}
app.kubernetes.io/component: datanode
{{- with .Values.datanode.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.datanode.service.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.datanode.service.type }}
ports:
Expand Down
6 changes: 6 additions & 0 deletions charts/ozone/templates/om/om-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ metadata:
labels:
{{- include "ozone.labels" . | nindent 4 }}
app.kubernetes.io/component: om
{{- with .Values.om.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.om.service.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.om.service.type }}
ports:
Expand Down
6 changes: 6 additions & 0 deletions charts/ozone/templates/s3g/s3g-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ metadata:
labels:
{{- include "ozone.labels" . | nindent 4 }}
app.kubernetes.io/component: s3g
{{- with .Values.s3g.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.s3g.service.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.s3g.service.type }}
ports:
Expand Down
6 changes: 6 additions & 0 deletions charts/ozone/templates/scm/scm-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ metadata:
labels:
{{- include "ozone.labels" . | nindent 4 }}
app.kubernetes.io/component: scm
{{- with .Values.scm.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.scm.service.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.scm.service.type }}
ports:
Expand Down
8 changes: 8 additions & 0 deletions charts/ozone/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ datanode:
type: ClusterIP
port: 9882
nodePort: ~
labels: {}
annotations: {}
# Datanode persistence
persistence:
# Enable persistence
Expand Down Expand Up @@ -123,6 +125,8 @@ om:
type: ClusterIP
port: 9874
nodePort: ~
labels: {}
annotations: {}
# Ozone Manager persistence
persistence:
# Enable persistence
Expand Down Expand Up @@ -162,6 +166,8 @@ s3g:
type: ClusterIP
port: 9878
nodePort: ~
labels: {}
annotations: {}
# S3 Gateway persistence
persistence:
# Enable persistence
Expand Down Expand Up @@ -201,6 +207,8 @@ scm:
type: ClusterIP
port: 9876
nodePort: ~
labels: {}
annotations: {}
# Storage Container Manager persistence
persistence:
# Enable persistence
Expand Down

0 comments on commit 1619b1a

Please sign in to comment.