Skip to content

Commit 77ec4ce

Browse files
Add appAnnotations for all statefulsets (#604)
1 parent cd701ec commit 77ec4ce

10 files changed

+27
-0
lines changed

charts/pulsar/templates/autorecovery-statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ kind: StatefulSet
2323
metadata:
2424
name: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}"
2525
namespace: {{ template "pulsar.namespace" . }}
26+
annotations: {{ .Values.autorecovery.appAnnotations | toYaml | nindent 4 }}
2627
labels:
2728
{{- include "pulsar.standardLabels" . | nindent 4 }}
2829
component: {{ .Values.autorecovery.component }}

charts/pulsar/templates/bookkeeper-statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ kind: StatefulSet
2323
metadata:
2424
name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}"
2525
namespace: {{ template "pulsar.namespace" . }}
26+
annotations: {{ .Values.bookkeeper.appAnnotations | toYaml | nindent 4 }}
2627
labels:
2728
{{- include "pulsar.standardLabels" . | nindent 4 }}
2829
component: {{ .Values.bookkeeper.component }}

charts/pulsar/templates/broker-statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ metadata:
2525
name: {{ $stsName | quote }}
2626
{{- $namespace := include "pulsar.namespace" . }}
2727
namespace: {{ $namespace | quote }}
28+
annotations: {{ .Values.broker.appAnnotations | toYaml | nindent 4 }}
2829
labels:
2930
{{- include "pulsar.standardLabels" . | nindent 4 }}
3031
component: {{ .Values.broker.component }}

charts/pulsar/templates/oxia-coordinator-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ metadata:
2626
labels:
2727
{{- include "pulsar.standardLabels" . | nindent 4 }}
2828
component: {{ .Values.oxia.component }}-coordinator
29+
annotations: {{ .Values.oxia.coordinator.appAnnotations | toYaml | nindent 4 }}
2930
spec:
3031
replicas: 1
3132
selector:

charts/pulsar/templates/oxia-server-statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ metadata:
2626
labels:
2727
{{- include "pulsar.standardLabels" . | nindent 4 }}
2828
component: {{ .Values.oxia.component }}-server
29+
annotations: {{ .Values.oxia.server.appAnnotations | toYaml | nindent 4 }}
2930
spec:
3031
replicas: {{ .Values.oxia.server.replicas }}
3132
selector:

charts/pulsar/templates/proxy-statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ kind: StatefulSet
2323
metadata:
2424
name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
2525
namespace: {{ template "pulsar.namespace" . }}
26+
annotations: {{ .Values.proxy.appAnnotations | toYaml | nindent 4 }}
2627
labels:
2728
{{- include "pulsar.standardLabels" . | nindent 4 }}
2829
component: {{ .Values.proxy.component }}

charts/pulsar/templates/pulsar-manager-statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ kind: StatefulSet
2323
metadata:
2424
name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
2525
namespace: {{ template "pulsar.namespace" . }}
26+
annotations: {{ .Values.pulsar_manager.appAnnotations | toYaml | nindent 4 }}
2627
labels:
2728
{{- include "pulsar.standardLabels" . | nindent 4 }}
2829
component: {{ .Values.pulsar_manager.component }}

charts/pulsar/templates/toolset-statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ kind: StatefulSet
2323
metadata:
2424
name: "{{ template "pulsar.fullname" . }}-{{ .Values.toolset.component }}"
2525
namespace: {{ template "pulsar.namespace" . }}
26+
annotations: {{ .Values.toolset.appAnnotations | toYaml | nindent 4 }}
2627
labels:
2728
{{- include "pulsar.standardLabels" . | nindent 4 }}
2829
component: {{ .Values.toolset.component }}

charts/pulsar/templates/zookeeper-statefulset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ kind: StatefulSet
2424
metadata:
2525
name: "{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}"
2626
namespace: {{ template "pulsar.namespace" . }}
27+
annotations: {{ .Values.zookeeper.appAnnotations | toYaml | nindent 4 }}
2728
labels:
2829
{{- include "pulsar.standardLabels" . | nindent 4 }}
2930
component: {{ .Values.zookeeper.component }}

charts/pulsar/values.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ zookeeper:
385385
type: requiredDuringSchedulingIgnoredDuringExecution
386386
# set topologySpreadConstraint to deploy pods across different zones
387387
topologySpreadConstraints: []
388+
# annotations for the app (statefulset/deployment)
389+
appAnnotations: {}
388390
annotations: {}
389391
tolerations: []
390392
gracePeriod: 30
@@ -499,6 +501,8 @@ oxia:
499501
replicationFactor: 3
500502
## templates/coordinator-deployment.yaml
501503
coordinator:
504+
# annotations for the app (statefulset/deployment)
505+
appAnnotations: {}
502506
# This is how Victoria Metrics or Prometheus discovers this component
503507
podMonitor:
504508
enabled: true
@@ -521,6 +525,8 @@ oxia:
521525
# cloud.google.com/gke-nodepool: default-pool
522526
## templates/server-statefulset.yaml
523527
server:
528+
# annotations for the app (statefulset/deployment)
529+
appAnnotations: {}
524530
# This is how Victoria Metrics or Prometheus discovers this component
525531
podMonitor:
526532
enabled: true
@@ -638,6 +644,8 @@ bookkeeper:
638644
type: requiredDuringSchedulingIgnoredDuringExecution
639645
# set topologySpreadConstraint to deploy pods across different zones
640646
topologySpreadConstraints: []
647+
# annotations for the app (statefulset/deployment)
648+
appAnnotations: {}
641649
annotations: {}
642650
tolerations: []
643651
gracePeriod: 30
@@ -828,6 +836,8 @@ autorecovery:
828836
type: requiredDuringSchedulingIgnoredDuringExecution
829837
# set topologySpreadConstraint to deploy pods across different zones
830838
topologySpreadConstraints: []
839+
# annotations for the app (statefulset/deployment)
840+
appAnnotations: {}
831841
annotations: {}
832842
# tolerations: []
833843
gracePeriod: 30
@@ -1027,6 +1037,8 @@ broker:
10271037
type: preferredDuringSchedulingIgnoredDuringExecution
10281038
# set topologySpreadConstraint to deploy pods across different zones
10291039
topologySpreadConstraints: []
1040+
# annotations for the app (statefulset/deployment)
1041+
appAnnotations: {}
10301042
annotations: {}
10311043
tolerations: []
10321044
gracePeriod: 30
@@ -1279,6 +1291,8 @@ proxy:
12791291
type: requiredDuringSchedulingIgnoredDuringExecution
12801292
# set topologySpreadConstraint to deploy pods across different zones
12811293
topologySpreadConstraints: []
1294+
# annotations for the app (statefulset/deployment)
1295+
appAnnotations: {}
12821296
annotations: {}
12831297
tolerations: []
12841298
gracePeriod: 30
@@ -1447,6 +1461,8 @@ toolset:
14471461
# cloud.google.com/gke-nodepool: default-pool
14481462
# set topologySpreadConstraint to deploy pods across different zones
14491463
topologySpreadConstraints: []
1464+
# annotations for the app (statefulset/deployment)
1465+
appAnnotations: {}
14501466
annotations: {}
14511467
tolerations: []
14521468
gracePeriod: 30
@@ -1730,6 +1746,8 @@ pulsar_manager:
17301746
# cloud.google.com/gke-nodepool: default-pool
17311747
# set topologySpreadConstraint to deploy pods across different zones
17321748
topologySpreadConstraints: []
1749+
# annotations for the app (statefulset/deployment)
1750+
appAnnotations: {}
17331751
annotations: {}
17341752
tolerations: []
17351753
extraVolumes: []

0 commit comments

Comments
 (0)