Skip to content

Commit

Permalink
feat: support podLabel and podAnnotation for toolset and console (#1152)
Browse files Browse the repository at this point in the history
* support podLabel and podAnnotation for toolset and console

Signed-off-by: ericsyh <[email protected]>

* apply to sn-platform chart

Signed-off-by: ericsyh <[email protected]>

---------

Signed-off-by: ericsyh <[email protected]>
(cherry picked from commit 6638474)
  • Loading branch information
ericsyh committed Mar 11, 2024
1 parent 465c86e commit 5537f88
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ spec:
labels:
{{- include "pulsar.template.labels" . | nindent 8 }}
component: {{ .Values.streamnative_console.component }}
{{- with .Values.streamnative_console.labels }}
{{- with .Values.streamnative_console.podLabels }}
{{ toYaml . | indent 8 }}
{{- end }}
annotations:
{{- with .Values.streamnative_console.annotations }}
{{- with .Values.streamnative_console.podAnnotations }}
{{ toYaml . | indent 8 }}
{{- end }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ spec:
labels:
{{- include "pulsar.template.labels" . | nindent 8 }}
component: {{ .Values.toolset.component }}
{{- with .Values.toolset.labels }}
{{- with .Values.toolset.podLabels }}
{{ toYaml . | indent 8 }}
{{- end }}
annotations:
{{- if .Values.toolset.autoRollDeployment }}
checksum/config: {{ include (print $.Template.BasePath "/toolset/toolset-configmap.yaml") . | sha256sum }}
{{- end }}
{{- with .Values.toolset.annotations }}
{{- with .Values.toolset.podAnnotations }}
{{ toYaml . | indent 8 }}
{{- end }}
spec:
Expand Down
4 changes: 4 additions & 0 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1561,6 +1561,8 @@ toolset:
# cloud.google.com/gke-nodepool: default-pool
labels: {}
annotations: {}
podLabels: {}
podAnnotations: {}
tolerations: []
gracePeriod: 0
resources:
Expand Down Expand Up @@ -1985,6 +1987,8 @@ streamnative_console:
# cloud.google.com/gke-nodepool: default-pool
labels: {}
annotations: {}
podLabels: {}
podAnnotations: {}
tolerations: []
gracePeriod: 0
# Resources requests/limits for both init containers and app containers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ spec:
labels:
{{- include "pulsar.template.labels" . | nindent 8 }}
component: {{ .Values.streamnative_console.component }}
{{- with .Values.streamnative_console.labels }}
{{- with .Values.streamnative_console.podLabels }}
{{ toYaml . | indent 8 }}
{{- end }}
annotations:
{{- with .Values.streamnative_console.annotations }}
{{- with .Values.streamnative_console.podAnnotations }}
{{ toYaml . | indent 8 }}
{{- end }}
spec:
Expand Down
4 changes: 2 additions & 2 deletions charts/sn-platform/templates/toolset/toolset-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ spec:
labels:
{{- include "pulsar.template.labels" . | nindent 8 }}
component: {{ .Values.toolset.component }}
{{- with .Values.toolset.labels }}
{{- with .Values.toolset.podLabels }}
{{ toYaml . | indent 8 }}
{{- end }}
annotations:
{{- if .Values.toolset.autoRollDeployment }}
checksum/config: {{ include (print $.Template.BasePath "/toolset/toolset-configmap.yaml") . | sha256sum }}
{{- end }}
{{- with .Values.toolset.annotations }}
{{- with .Values.toolset.podAnnotations }}
{{ toYaml . | indent 8 }}
{{- end }}
spec:
Expand Down
4 changes: 4 additions & 0 deletions charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1637,6 +1637,8 @@ toolset:
# cloud.google.com/gke-nodepool: default-pool
labels: {}
annotations: {}
podLabels: {}
podAnnotations: {}
tolerations: []
kafka:
enabled: false
Expand Down Expand Up @@ -2072,6 +2074,8 @@ streamnative_console:
# cloud.google.com/gke-nodepool: default-pool
labels: {}
annotations: {}
podLabels: {}
podAnnotations: {}
tolerations: []
gracePeriod: 0
# Resources requests/limits for both init containers and app containers
Expand Down

0 comments on commit 5537f88

Please sign in to comment.