Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(helm-charts): support pod annotations on the Bytebase StatefulSet (#21228)
Ariel Lahiany873304d3eb4e
diff --git a/helm-charts/bytebase/Chart.yaml b/helm-charts/bytebase/Chart.yamlindex 7945e3f389..8fc806897a 100644--- a/helm-charts/bytebase/Chart.yaml+++ b/helm-charts/bytebase/Chart.yaml@@ -1,6 +1,6 @@apiVersion: v2name: bytebase-version: 1.1.5+version: 1.1.6description: Safe database schema change and version control for DevOps teams.type: applicationhome: https://www.bytebase.com/diff --git a/helm-charts/bytebase/README.md b/helm-charts/bytebase/README.mdindex b8b07ee8e4..ff30acc5bf 100644--- a/helm-charts/bytebase/README.md+++ b/helm-charts/bytebase/README.md@@ -128,6 +128,7 @@ upgrade bytebase-release bytebase-repo/bytebase| `bytebase.persistence.storageClass` | Storage class for the persistent volume used by Bytebase. | "" || `bytebase.extraSecretMounts` | Additional Bytebase secret mounts. Defined as an array of volumeMount objects. | [] || `bytebase.extraVolumes` | Additional Bytebase volumes. Defined as an array of volume objects. | [] |+| `bytebase.podAnnotations` | Annotations added to the Bytebase pod. Useful for metrics scrapers. | {} |**If you enable bytebase persistence, you should provide storageClass and storage to bytebase to request a PVC, or provide the already existed PVC by existingClaim.**diff --git a/helm-charts/bytebase/templates/statefulset.yaml b/helm-charts/bytebase/templates/statefulset.yamlindex 74c59ed836..5c5a5d984b 100644--- a/helm-charts/bytebase/templates/statefulset.yaml+++ b/helm-charts/bytebase/templates/statefulset.yaml@@ -50,6 +50,10 @@ spec:metadata:labels:app: bytebase+ {{- with .Values.bytebase.podAnnotations }}+ annotations:+ {{- toYaml . | nindent 8 }}+ {{- end }}spec:serviceAccountName: {{ template "bytebase.serviceAccountName" . }}{{- if and $externalPgEscapePgPassword (not $externalPgAWSRDSIAMEnabled) (not $externalPgGCPCloudSQLIAMEnabled) }}diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yamlindex a1d7902054..b6b4834ee9 100644--- a/helm-charts/bytebase/values.yaml+++ b/helm-charts/bytebase/values.yaml@@ -65,6 +65,12 @@ bytebase:# cpu: 1000m# memory: 1Gi+ # -- Annotations added to the Bytebase pod. Useful for metrics scrapers and+ # other tooling that discovers pods by annotation.+ podAnnotations: {}+ # prometheus.io/scrape: "true"+ # prometheus.io/port: "8080"+# Additional Bytebase secret mounts# Defines additional mounts with secret. Secret must be manually created in the namespace.extraSecretMounts: