Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: add external-url back in helm (#6932)

h3n4l3414ad4ed340
diff --git a/docs/bytebase-1.0.4.tgz b/docs/bytebase-1.0.4.tgz
new file mode 100644
index 0000000000..0f46dbd264
Binary files /dev/null and b/docs/bytebase-1.0.4.tgz differ
diff --git a/docs/index.yaml b/docs/index.yaml
index f0eb4ed186..07651e550d 100644
--- a/docs/index.yaml
+++ b/docs/index.yaml
@@ -2,9 +2,9 @@ apiVersion: v1
entries:
bytebase:
- apiVersion: v2
- created: "2023-05-18T17:40:37.625968+08:00"
+ created: "2023-07-04T10:14:12.239456+08:00"
description: Safe database schema change and version control for DevOps teams.
- digest: 55551c2b2a090980b5f06feb67bbe59f2f9546ff0c4811507032b3e94cb36846
+ digest: ca7092842f14dff04a7aec43b92c59538a4fff685434d4dbfd0738cda35e8350
home: https://bytebase.com/
icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/public/images/logo-full.svg
maintainers:
@@ -15,14 +15,30 @@ entries:
- https://github.com/bytebase/bytebase
type: application
urls:
+ - bytebase-1.0.4.tgz
+ version: 1.0.4
+ - apiVersion: v2
+ created: "2023-07-04T10:14:12.239272+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:
+ 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"
+ created: "2023-07-04T10:14:12.238989+08:00"
description: Safe database schema change and version control for DevOps teams.
digest: 0de78149cf15773271210aeb60325f473f7835ef2d004bce5c8ce28454e53ab1
home: https://bytebase.com/
- icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/public/images/logo-full.svg
+ icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/assets/logo-full.svg
maintainers:
name: Bytebase
@@ -34,11 +50,11 @@ entries:
- bytebase-1.0.2.tgz
version: 1.0.2
- apiVersion: v2
- created: "2023-05-18T17:40:37.625272+08:00"
+ created: "2023-07-04T10:14:12.238643+08:00"
description: Safe database schema change and version control for DevOps teams.
digest: 95711d0adec416207c21bf2bb707c9c3179509ac4acb6151803d8ec10f4bc465
home: https://bytebase.com/
- icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/public/images/logo-full.svg
+ icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/assets/logo-full.svg
maintainers:
name: Bytebase
@@ -50,11 +66,11 @@ entries:
- bytebase-1.0.1.tgz
version: 1.0.1
- apiVersion: v2
- created: "2023-05-18T17:40:37.624909+08:00"
+ created: "2023-07-04T10:14:12.238184+08:00"
description: Safe database schema change and version control for DevOps teams.
digest: c273189105a7b2ef1d7f9833b76c9008341d9689ff22622aba9809c5ac59adc2
home: https://bytebase.com/
- icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/public/images/logo-full.svg
+ icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/assets/logo-full.svg
maintainers:
name: Bytebase
@@ -65,4 +81,4 @@ entries:
urls:
- bytebase-1.0.0.tgz
version: 1.0.0
-generated: "2023-05-18T17:40:37.624177+08:00"
+generated: "2023-07-04T10:14:12.237478+08:00"
diff --git a/helm-charts/bytebase/Chart.yaml b/helm-charts/bytebase/Chart.yaml
index 5c433ac043..4b2c85ce00 100644
--- a/helm-charts/bytebase/Chart.yaml
+++ b/helm-charts/bytebase/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: bytebase
-version: 1.0.3
+version: 1.0.4
description: Safe database schema change and version control for DevOps teams.
type: application
home: https://bytebase.com/
diff --git a/helm-charts/bytebase/README.md b/helm-charts/bytebase/README.md
index 0d7f092e01..a1f7cd7407 100644
--- a/helm-charts/bytebase/README.md
+++ b/helm-charts/bytebase/README.md
@@ -26,6 +26,7 @@ $ helm -n <YOUR_NAMESPACE> \
--set "bytebase.option.port"={PORT} \
--set "bytebase.option.pg"={PGDSN} \
--set "bytebase.version"={VERSION} \
+--set "bytebase.option.external-url"={EXTERNAL_URL} \
--set "bytebase.persistence.enabled"={TRUE/FALSE} \
--set "bytebase.persistence.storage"={STORAGE_SIZE} \
--set "bytebase.persistence.storageClass"={STORAGE_CLASS} \
@@ -38,7 +39,8 @@ For example:
$ helm -n bytebase \
--set "bytebase.option.port"=443 \
--set "bytebase.option.pg"="postgresql://bytebase:[email protected]/bytebase" \
---set "bytebase.version"=1.12.0 \
+--set "bytebase.option.external-url"="https://bytebase.ngrok-free.app" \
+--set "bytebase.version"=2.3.0 \
--set "bytebase.persistence.enabled"="true" \
--set "bytebase.persistence.storage"="10Gi" \
--set "bytebase.persistence.storageClass"="csi-disk" \
@@ -60,6 +62,7 @@ helm -n <YOUR_NAMESPACE> \
--set "bytebase.option.port"={NEW_PORT} \
--set "bytebase.option.pg"={NEW_PGDSN} \
--set "bytebase.version"={NEW_VERSION} \
+--set "bytebase.option.external-url"={EXTERNAL_URL} \
--set "bytebase.persistence.enabled"={TRUE/FALSE} \
--set "bytebase.persistence.storage"={STORAGE_SIZE} \
--set "bytebase.persistence.storageClass"={STORAGE_CLASS} \
@@ -72,9 +75,10 @@ upgrade bytebase-release bytebase-repo/bytebase
| :------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------: |
| bytebase.option.port | Port where Bytebase server runs. | 8080 |
| bytebase.option.pg | External PostgreSQL instance connection url(must provide dbname).It will be ignored if you specify `bytebase.option.existingPgURLSecret`. | "postgresql://bytebase:[email protected]/bytebase" |
+| bytebase.option.external-url | The address for users to visit Bytebase, visit [our docs](https://www.bytebase.com/docs/get-started/install/external-url/) to get more details | "https://www.bytebase.com/docs/get-started/install/external-url" |
| bytebase.option.existingPgURLSecret | Existing secret with external PostgreSQL connection string. | "" |
| bytebase.option.existingPgURLSecretKey | Existing secret key with external PostgreSQL connection(must specfied if you specify `bytebase.option.existingPgURLSecret`) string. | "" |
-| bytebase.version | The Bytebase version. | "1.16.0" |
+| bytebase.version | The Bytebase version. | "2.3.0" |
| bytebase.persistence.enabled | Persist bytebase data switch. | false |
| bytebase.persistence.storageClass | The storage class used by Bytebase PVC. | "" |
| bytebase.persistence.storage | The storage size of Bytebase PVC used. | "2Gi" |
diff --git a/helm-charts/bytebase/templates/statefulset.yaml b/helm-charts/bytebase/templates/statefulset.yaml
index 2306109891..cbcd260ad6 100644
--- a/helm-charts/bytebase/templates/statefulset.yaml
+++ b/helm-charts/bytebase/templates/statefulset.yaml
@@ -1,3 +1,4 @@
+{{- $external_url := index .Values.bytebase.option "external-url" -}}
{{- $existingPgURLSecret := .Values.bytebase.option.existingPgURLSecret -}}
{{- $existingPgURLSecretKey := .Values.bytebase.option.existingPgURLSecretKey -}}
{{- $port := .Values.bytebase.option.port -}}
@@ -50,6 +51,9 @@ spec:
{{ $data | quote }},
"--port",
{{ $port | quote }},
+ "--external-url",
+ # helm parser cannot handle the dash in the value, so we need to quote it, so we use $external_url instead of $external-url.
+ {{ $external_url | quote }},
]
ports:
- containerPort: {{ $port }}
diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yaml
index 25914b1eb3..7ecc986428 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/dbname
data: /var/opt/bytebase
- version: 2.0.0
+ external-url: "https://www.bytebase.com/docs/get-started/install/external-url"
+ version: 2.3.0
registryMirrorHost: ""
persistence:
storage: 2Gi