Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: support registry mirror host in helm (#6136)
h3n4l79f6724b258d
diff --git a/docs/bytebase-1.0.3.tgz b/docs/bytebase-1.0.3.tgznew file mode 100644index 0000000000..5c39bb198dBinary files /dev/null and b/docs/bytebase-1.0.3.tgz differdiff --git a/docs/index.yaml b/docs/index.yamlindex bfcaf28d72..62bf00ee5d 100644--- a/docs/index.yaml+++ b/docs/index.yaml@@ -2,7 +2,23 @@ apiVersion: v1entries:bytebase:- apiVersion: v2- created: "2023-04-14T14:29:54.740186+08:00"+ created: "2023-05-18T17:40:37.625968+08:00"+ description: Safe database schema change and version control for DevOps teams.+ digest: 55551c2b2a090980b5f06feb67bbe59f2f9546ff0c4811507032b3e94cb36846+ home: https://bytebase.com/+ icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/assets/logo-full.svg+ maintainers:+ - email: [email protected]+ name: Bytebase+ name: bytebase+ sources:+ - https://github.com/bytebase/bytebase+ type: application+ urls:+ - bytebase-1.0.3.tgz+ version: 1.0.3+ - apiVersion: v2+ created: "2023-05-18T17:40:37.625746+08:00"description: Safe database schema change and version control for DevOps teams.digest: 0de78149cf15773271210aeb60325f473f7835ef2d004bce5c8ce28454e53ab1home: https://bytebase.com/@@ -18,7 +34,7 @@ entries:- bytebase-1.0.2.tgzversion: 1.0.2- apiVersion: v2- created: "2023-04-14T14:29:54.740015+08:00"+ created: "2023-05-18T17:40:37.625272+08:00"description: Safe database schema change and version control for DevOps teams.digest: 95711d0adec416207c21bf2bb707c9c3179509ac4acb6151803d8ec10f4bc465home: https://bytebase.com/@@ -34,7 +50,7 @@ entries:- bytebase-1.0.1.tgzversion: 1.0.1- apiVersion: v2- created: "2023-04-14T14:29:54.739792+08:00"+ created: "2023-05-18T17:40:37.624909+08:00"description: Safe database schema change and version control for DevOps teams.digest: c273189105a7b2ef1d7f9833b76c9008341d9689ff22622aba9809c5ac59adc2home: https://bytebase.com/@@ -49,4 +65,4 @@ entries:urls:- bytebase-1.0.0.tgzversion: 1.0.0-generated: "2023-04-14T14:29:54.739245+08:00"+generated: "2023-05-18T17:40:37.624177+08:00"diff --git a/helm-charts/bytebase/Chart.yaml b/helm-charts/bytebase/Chart.yamlindex 5b9f643a7a..16d9c1de2b 100644--- a/helm-charts/bytebase/Chart.yaml+++ b/helm-charts/bytebase/Chart.yaml@@ -1,6 +1,6 @@apiVersion: v2name: bytebase-version: 1.0.2+version: 1.0.3description: Safe database schema change and version control for DevOps teams.type: applicationhome: https://bytebase.com/diff --git a/helm-charts/bytebase/README.md b/helm-charts/bytebase/README.mdindex f09871a301..0d7f092e01 100644--- a/helm-charts/bytebase/README.md+++ b/helm-charts/bytebase/README.md@@ -79,6 +79,7 @@ upgrade bytebase-release bytebase-repo/bytebase| bytebase.persistence.storageClass | The storage class used by Bytebase PVC. | "" || bytebase.persistence.storage | The storage size of Bytebase PVC used. | "2Gi" || bytebase.persistence.existingClaim | The existing PVC that bytebase need to use. | "" |+| bytebase.registryMirrorHost | "" | The host of the registry mirror used by downloading bytebase container images. |**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 02e3222baf..2306109891 100644--- a/helm-charts/bytebase/templates/statefulset.yaml+++ b/helm-charts/bytebase/templates/statefulset.yaml@@ -4,6 +4,7 @@{{- $pg := .Values.bytebase.option.pg -}}{{- $data := .Values.bytebase.option.data -}}{{- $version := .Values.bytebase.version -}}+{{- $registryMirrorHost := .Values.bytebase.registryMirrorHost -}}apiVersion: apps/v1kind: StatefulSetmetadata:@@ -25,7 +26,13 @@ spec:spec:containers:- name: bytebase- image: "bytebase/bytebase:{{ $version }}"+ {{ if $registryMirrorHost }}+ # If user specifies a registry mirror host, we should use that instead of the default.+ image: {{ trimSuffix "/" $registryMirrorHost }}/bytebase/bytebase:{{ $version }}+ {{ else }}+ image: bytebase/bytebase:{{ $version }}+ {{ end }}+ imagePullPolicy: Alwaysenv:- name: PG_URL{{ if $existingPgURLSecret }}@@ -37,7 +44,6 @@ spec:{{ else }}value: {{ $pg }}{{ end }}- imagePullPolicy: Alwaysargs:["--data",diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yamlindex 7e8bd520bb..25914b1eb3 100644--- a/helm-charts/bytebase/values.yaml+++ b/helm-charts/bytebase/values.yaml@@ -9,7 +9,8 @@ bytebase:existingPgURLSecretKey: ""pg: postgresql://user:secret@host:port/dbnamedata: /var/opt/bytebase- version: 1.16.0+ version: 2.0.0+ registryMirrorHost: ""persistence:storage: 2Gienabled: false