Add appAnnotations for all statefulsets (#604)

This commit is contained in:
Haim Kortovich 2025-05-07 01:05:19 -05:00 committed by GitHub
parent cd701ecedd
commit 77ec4cedfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 27 additions and 0 deletions

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata: metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}"
namespace: {{ template "pulsar.namespace" . }} namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.autorecovery.appAnnotations | toYaml | nindent 4 }}
labels: labels:
{{- include "pulsar.standardLabels" . | nindent 4 }} {{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.autorecovery.component }} component: {{ .Values.autorecovery.component }}

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata: metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}"
namespace: {{ template "pulsar.namespace" . }} namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.bookkeeper.appAnnotations | toYaml | nindent 4 }}
labels: labels:
{{- include "pulsar.standardLabels" . | nindent 4 }} {{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.bookkeeper.component }} component: {{ .Values.bookkeeper.component }}

View File

@ -25,6 +25,7 @@ metadata:
name: {{ $stsName | quote }} name: {{ $stsName | quote }}
{{- $namespace := include "pulsar.namespace" . }} {{- $namespace := include "pulsar.namespace" . }}
namespace: {{ $namespace | quote }} namespace: {{ $namespace | quote }}
annotations: {{ .Values.broker.appAnnotations | toYaml | nindent 4 }}
labels: labels:
{{- include "pulsar.standardLabels" . | nindent 4 }} {{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.broker.component }} component: {{ .Values.broker.component }}

View File

@ -26,6 +26,7 @@ metadata:
labels: labels:
{{- include "pulsar.standardLabels" . | nindent 4 }} {{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.oxia.component }}-coordinator component: {{ .Values.oxia.component }}-coordinator
annotations: {{ .Values.oxia.coordinator.appAnnotations | toYaml | nindent 4 }}
spec: spec:
replicas: 1 replicas: 1
selector: selector:

View File

@ -26,6 +26,7 @@ metadata:
labels: labels:
{{- include "pulsar.standardLabels" . | nindent 4 }} {{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.oxia.component }}-server component: {{ .Values.oxia.component }}-server
annotations: {{ .Values.oxia.server.appAnnotations | toYaml | nindent 4 }}
spec: spec:
replicas: {{ .Values.oxia.server.replicas }} replicas: {{ .Values.oxia.server.replicas }}
selector: selector:

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata: metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
namespace: {{ template "pulsar.namespace" . }} namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.proxy.appAnnotations | toYaml | nindent 4 }}
labels: labels:
{{- include "pulsar.standardLabels" . | nindent 4 }} {{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.proxy.component }} component: {{ .Values.proxy.component }}

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata: metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.pulsar_manager.component }}"
namespace: {{ template "pulsar.namespace" . }} namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.pulsar_manager.appAnnotations | toYaml | nindent 4 }}
labels: labels:
{{- include "pulsar.standardLabels" . | nindent 4 }} {{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.pulsar_manager.component }} component: {{ .Values.pulsar_manager.component }}

View File

@ -23,6 +23,7 @@ kind: StatefulSet
metadata: metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.toolset.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.toolset.component }}"
namespace: {{ template "pulsar.namespace" . }} namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.toolset.appAnnotations | toYaml | nindent 4 }}
labels: labels:
{{- include "pulsar.standardLabels" . | nindent 4 }} {{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.toolset.component }} component: {{ .Values.toolset.component }}

View File

@ -24,6 +24,7 @@ kind: StatefulSet
metadata: metadata:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}"
namespace: {{ template "pulsar.namespace" . }} namespace: {{ template "pulsar.namespace" . }}
annotations: {{ .Values.zookeeper.appAnnotations | toYaml | nindent 4 }}
labels: labels:
{{- include "pulsar.standardLabels" . | nindent 4 }} {{- include "pulsar.standardLabels" . | nindent 4 }}
component: {{ .Values.zookeeper.component }} component: {{ .Values.zookeeper.component }}

View File

@ -385,6 +385,8 @@ zookeeper:
type: requiredDuringSchedulingIgnoredDuringExecution type: requiredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones # set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: [] topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {} annotations: {}
tolerations: [] tolerations: []
gracePeriod: 30 gracePeriod: 30
@ -499,6 +501,8 @@ oxia:
replicationFactor: 3 replicationFactor: 3
## templates/coordinator-deployment.yaml ## templates/coordinator-deployment.yaml
coordinator: coordinator:
# annotations for the app (statefulset/deployment)
appAnnotations: {}
# This is how Victoria Metrics or Prometheus discovers this component # This is how Victoria Metrics or Prometheus discovers this component
podMonitor: podMonitor:
enabled: true enabled: true
@ -521,6 +525,8 @@ oxia:
# cloud.google.com/gke-nodepool: default-pool # cloud.google.com/gke-nodepool: default-pool
## templates/server-statefulset.yaml ## templates/server-statefulset.yaml
server: server:
# annotations for the app (statefulset/deployment)
appAnnotations: {}
# This is how Victoria Metrics or Prometheus discovers this component # This is how Victoria Metrics or Prometheus discovers this component
podMonitor: podMonitor:
enabled: true enabled: true
@ -638,6 +644,8 @@ bookkeeper:
type: requiredDuringSchedulingIgnoredDuringExecution type: requiredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones # set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: [] topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {} annotations: {}
tolerations: [] tolerations: []
gracePeriod: 30 gracePeriod: 30
@ -828,6 +836,8 @@ autorecovery:
type: requiredDuringSchedulingIgnoredDuringExecution type: requiredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones # set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: [] topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {} annotations: {}
# tolerations: [] # tolerations: []
gracePeriod: 30 gracePeriod: 30
@ -1027,6 +1037,8 @@ broker:
type: preferredDuringSchedulingIgnoredDuringExecution type: preferredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones # set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: [] topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {} annotations: {}
tolerations: [] tolerations: []
gracePeriod: 30 gracePeriod: 30
@ -1279,6 +1291,8 @@ proxy:
type: requiredDuringSchedulingIgnoredDuringExecution type: requiredDuringSchedulingIgnoredDuringExecution
# set topologySpreadConstraint to deploy pods across different zones # set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: [] topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {} annotations: {}
tolerations: [] tolerations: []
gracePeriod: 30 gracePeriod: 30
@ -1447,6 +1461,8 @@ toolset:
# cloud.google.com/gke-nodepool: default-pool # cloud.google.com/gke-nodepool: default-pool
# set topologySpreadConstraint to deploy pods across different zones # set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: [] topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {} annotations: {}
tolerations: [] tolerations: []
gracePeriod: 30 gracePeriod: 30
@ -1730,6 +1746,8 @@ pulsar_manager:
# cloud.google.com/gke-nodepool: default-pool # cloud.google.com/gke-nodepool: default-pool
# set topologySpreadConstraint to deploy pods across different zones # set topologySpreadConstraint to deploy pods across different zones
topologySpreadConstraints: [] topologySpreadConstraints: []
# annotations for the app (statefulset/deployment)
appAnnotations: {}
annotations: {} annotations: {}
tolerations: [] tolerations: []
extraVolumes: [] extraVolumes: []