Skip to content

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

fix: fix bytebase helm chart (#7481)

a le2d17b3339336
diff --git a/docs/bytebase-1.0.6.tgz b/docs/bytebase-1.0.6.tgz
new file mode 100644
index 0000000000..2f696462da
Binary files /dev/null and b/docs/bytebase-1.0.6.tgz differ
diff --git a/docs/index.yaml b/docs/index.yaml
index f5ba93a7e4..24f236911b 100644
--- a/docs/index.yaml
+++ b/docs/index.yaml
@@ -2,7 +2,23 @@ apiVersion: v1
entries:
bytebase:
- apiVersion: v2
- created: "2023-07-25T11:23:02.713322+08:00"
+ created: "2023-08-11T13:37:25.24486+08:00"
+ description: Safe database schema change and version control for DevOps teams.
+ digest: 5357bc5883d9ca673cc1c03ec821bb7d26f33dc2e5be2ac502f36c05c1b46e31
+ home: https://bytebase.com/
+ icon: https://raw.githubusercontent.com/bytebase/bytebase.com/main/public/images/logo-full.svg
+ maintainers:
+ name: Bytebase
+ name: bytebase
+ sources:
+ - https://github.com/bytebase/bytebase
+ type: application
+ urls:
+ - bytebase-1.0.6.tgz
+ version: 1.0.6
+ - apiVersion: v2
+ created: "2023-08-11T13:37:25.24364+08:00"
description: Safe database schema change and version control for DevOps teams.
digest: c5680404fee75dcbb4ee8cfea428caca76143c83236d5e0fff31ac8658e2e747
home: https://bytebase.com/
@@ -18,7 +34,7 @@ entries:
- bytebase-1.0.5.tgz
version: 1.0.5
- apiVersion: v2
- created: "2023-07-25T11:23:02.713137+08:00"
+ created: "2023-08-11T13:37:25.242442+08:00"
description: Safe database schema change and version control for DevOps teams.
digest: ca7092842f14dff04a7aec43b92c59538a4fff685434d4dbfd0738cda35e8350
home: https://bytebase.com/
@@ -34,7 +50,7 @@ entries:
- bytebase-1.0.4.tgz
version: 1.0.4
- apiVersion: v2
- created: "2023-07-25T11:23:02.712847+08:00"
+ created: "2023-08-11T13:37:25.241805+08:00"
description: Safe database schema change and version control for DevOps teams.
digest: 55551c2b2a090980b5f06feb67bbe59f2f9546ff0c4811507032b3e94cb36846
home: https://bytebase.com/
@@ -50,7 +66,7 @@ entries:
- bytebase-1.0.3.tgz
version: 1.0.3
- apiVersion: v2
- created: "2023-07-25T11:23:02.712427+08:00"
+ created: "2023-08-11T13:37:25.240154+08:00"
description: Safe database schema change and version control for DevOps teams.
digest: 0de78149cf15773271210aeb60325f473f7835ef2d004bce5c8ce28454e53ab1
home: https://bytebase.com/
@@ -66,7 +82,7 @@ entries:
- bytebase-1.0.2.tgz
version: 1.0.2
- apiVersion: v2
- created: "2023-07-25T11:23:02.710773+08:00"
+ created: "2023-08-11T13:37:25.239843+08:00"
description: Safe database schema change and version control for DevOps teams.
digest: 95711d0adec416207c21bf2bb707c9c3179509ac4acb6151803d8ec10f4bc465
home: https://bytebase.com/
@@ -82,7 +98,7 @@ entries:
- bytebase-1.0.1.tgz
version: 1.0.1
- apiVersion: v2
- created: "2023-07-25T11:23:02.710453+08:00"
+ created: "2023-08-11T13:37:25.239535+08:00"
description: Safe database schema change and version control for DevOps teams.
digest: c273189105a7b2ef1d7f9833b76c9008341d9689ff22622aba9809c5ac59adc2
home: https://bytebase.com/
@@ -97,4 +113,4 @@ entries:
urls:
- bytebase-1.0.0.tgz
version: 1.0.0
-generated: "2023-07-25T11:23:02.709684+08:00"
+generated: "2023-08-11T13:37:25.238619+08:00"
diff --git a/helm-charts/bytebase/Chart.yaml b/helm-charts/bytebase/Chart.yaml
index 8a411a913a..04026acb59 100644
--- a/helm-charts/bytebase/Chart.yaml
+++ b/helm-charts/bytebase/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: bytebase
-version: 1.0.5
+version: 1.0.6
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 bd6cf31c5a..07c93bc8b3 100644
--- a/helm-charts/bytebase/README.md
+++ b/helm-charts/bytebase/README.md
@@ -40,7 +40,7 @@ $ helm -n bytebase \
--set "bytebase.option.port"=443 \
--set "bytebase.option.pg"="postgresql://bytebase:[email protected]/bytebase" \
--set "bytebase.option.external-url"="https://bytebase.ngrok-free.app" \
---set "bytebase.version"=2.4.1 \
+--set "bytebase.version"=2.5.0 \
--set "bytebase.persistence.enabled"="true" \
--set "bytebase.persistence.storage"="10Gi" \
--set "bytebase.persistence.storageClass"="csi-disk" \
@@ -78,7 +78,7 @@ upgrade bytebase-release bytebase-repo/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. | "2.4.1" |
+| bytebase.version | The Bytebase version. | "2.5.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/_helpers.tpl b/helm-charts/bytebase/templates/_helpers.tpl
index cc52f46bcf..51989a3560 100644
--- a/helm-charts/bytebase/templates/_helpers.tpl
+++ b/helm-charts/bytebase/templates/_helpers.tpl
@@ -7,4 +7,20 @@ Allow the release namespace to be overridden for multi-namespace deployments in
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
-{{- end -}}
\ No newline at end of file
+{{- end -}}
+
+{{/*
+Common labels
+*/}}
+{{- define "bytebase.labels" -}}
+{{ include "bytebase.selectorLabels" . }}
+app.kubernetes.io/version: {{ .Values.bytebase.version}}
+app.kubernetes.io/managed-by: {{ .Release.Service }}
+{{- end }}
+
+{{/*
+Selector labels
+*/}}
+{{- define "bytebase.selectorLabels" -}}
+app: bytebase
+{{- end }}
\ No newline at end of file
diff --git a/helm-charts/bytebase/templates/service.yaml b/helm-charts/bytebase/templates/service.yaml
index 23972031b8..c1144b8a25 100644
--- a/helm-charts/bytebase/templates/service.yaml
+++ b/helm-charts/bytebase/templates/service.yaml
@@ -5,7 +5,7 @@ metadata:
name: bytebase-entrypoint
namespace: {{ template "bytebase.namespace" . }}
labels:
- app.kubernetes.io/managed-by: helm
+ {{- include "bytebase.labels" . | nindent 4}}
spec:
type: LoadBalancer
selector:
diff --git a/helm-charts/bytebase/templates/statefulset.yaml b/helm-charts/bytebase/templates/statefulset.yaml
index 27a5196099..5b351fc52a 100644
--- a/helm-charts/bytebase/templates/statefulset.yaml
+++ b/helm-charts/bytebase/templates/statefulset.yaml
@@ -13,8 +13,7 @@ metadata:
name: bytebase
namespace: {{ template "bytebase.namespace" . }}
labels:
- app.kubernetes.io/managed-by: helm
- app: bytebase
+ {{- include "bytebase.labels" . | nindent 4}}
spec:
selector:
matchLabels:
@@ -107,8 +106,7 @@ metadata:
name: bytebase-volume
namespace: {{ template "bytebase.namespace" . }}
labels:
- app.kubernetes.io/managed-by: helm
- app: bytebase
+ {{- include "bytebase.labels" . | nindent 4}}
spec:
storageClassName: {{ .Values.bytebase.persistence.storageClass | quote }}
accessModes:
diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yaml
index 3469459a48..04b59d0fbf 100644
--- a/helm-charts/bytebase/values.yaml
+++ b/helm-charts/bytebase/values.yaml
@@ -11,7 +11,7 @@ bytebase:
data: /var/opt/bytebase
external-url: "https://www.bytebase.com/docs/get-started/install/external-url"
disable-sample: false
- version: 2.4.1
+ version: 2.5.0
registryMirrorHost: ""
persistence:
storage: 2Gi