Skip to content

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

feat(helm): introduce artifact hub (#3304)

h3n4l0513e3e73523
diff --git a/README.md b/README.md
index aaad7c9207..08d37f90d4 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,9 @@
<a href="https://goreportcard.com/report/github.com/bytebase/bytebase">
<img alt="go report" src="https://goreportcard.com/badge/github.com/bytebase/bytebase" />
</a>
+ <a href="https://artifacthub.io/packages/search?repo=bytebase">
+ <img alt="Artifact Hub" src="https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/bytebase" />
+ </a>
</p>
<p align="center">
diff --git a/docs/bytebase-1.0.0.tgz b/docs/bytebase-1.0.0.tgz
new file mode 100644
index 0000000000..56ee55c611
Binary files /dev/null and b/docs/bytebase-1.0.0.tgz differ
diff --git a/docs/index.yaml b/docs/index.yaml
new file mode 100644
index 0000000000..85180a0372
--- /dev/null
+++ b/docs/index.yaml
@@ -0,0 +1,36 @@
+apiVersion: v1
+entries:
+ bytebase:
+ - apiVersion: v2
+ created: "2022-11-04T10:24:46.708563+08:00"
+ description: Safe database schema change and version control for DevOps teams.
+ digest: 9b514e826fb25120f5d5fe4cb49e54323150f4f1d4ffe55fea34f9e2ed0115dc
+ 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.0.tgz
+ version: 1.0.0
+ - apiVersion: v2
+ created: "2022-11-04T10:24:46.708273+08:00"
+ description: Safe database schema change and version control for DevOps teams.
+ digest: e625364c490607affda669a8145393429335ce18f0250c4c2fffe22d8997f703
+ 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-0.0.1.tgz
+ version: 0.0.1
+generated: "2022-11-04T10:24:46.70735+08:00"
diff --git a/helm-charts/bytebase/Chart.yaml b/helm-charts/bytebase/Chart.yaml
index 4e06bfe62b..a50f40b179 100644
--- a/helm-charts/bytebase/Chart.yaml
+++ b/helm-charts/bytebase/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: bytebase
-version: 0.0.1
+version: 1.0.0
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 7ae1001ad8..4611b51a13 100644
--- a/helm-charts/bytebase/README.md
+++ b/helm-charts/bytebase/README.md
@@ -1,15 +1,68 @@
-# Bytebase Helm Chart
+# Helm Chart for Bytebase
-Install the web-based schema change and version control tool [Bytebase](https://bytebase.com/).
+[Bytebase](https://bytebase.com) is a Database CI/CD tool for DevOps teams, built for Developers and DBAs.
-## Installing
+## TL;DR
-`helm -n <YOUR_NAMESPACE> --set "bytebase.option.port"={PORT} --set "bytebase.option.external-url"={EXTERNAL_URL} --set "bytebase.option.pg"={PGDSN} --set "bytebase.version"={VERSION} install <RELEASE_NAME> helm-charts/bytebase`
+```bash
+$ helm repo add bytebase-repo https://bytebase.github.io/bytebase
+$ helm repo update
+$ helm -n <YOUR_NAMESPACE> \
+--set "bytebase.option.port"={PORT} \
+--set "bytebase.option.external-url"={EXTERNAL_URL} \
+--set "bytebase.option.pg"={PGDSN} \
+--set "bytebase.version"={VERSION} \
+install <RELEASE_NAME> bytebase-repo/bytebase
+```
-## Uninstalling
+## Prerequisites
-`helm delete <RELEASE_NAME>`
+- Kubernetes 1.24+
+- Helm 3.9.0+
-## TODO
-- [ ] Add support for [Litestream](https://litestream.io/guides/kubernetes/).
-- [ ] Create GitHub Pages for [Helm chart repo](https://medium.com/@mattiaperi/create-a-public-helm-chart-repository-with-github-pages-49b180dbb417).
\ No newline at end of file
+## Installing the Chart
+
+```bash
+$ helm -n <YOUR_NAMESPACE> \
+--set "bytebase.option.port"={PORT} \
+--set "bytebase.option.external-url"={EXTERNAL_URL} \
+--set "bytebase.option.pg"={PGDSN} \
+--set "bytebase.version"={VERSION} \
+install <RELEASE_NAME> bytebase-repo/bytebase
+```
+
+For example:
+
+```bash
+$ helm -n bytebase \
+--set "bytebase.option.port"=443 \
+--set "bytebase.option.external-url"="https://bytebase.com" \
+--set "bytebase.option.pg"="postgresql://bytebase:[email protected]/bytebase" \
+--set "bytebase.version"=1.7.0 \
+install bytebase-release bytebase-repo/bytebase
+```
+
+## Uninstalling the Chart
+
+```bash
+$ helm delete --namespace <YOUR_NAMESPACE> <RELEASE_NAME>
+```
+
+## Upgrade Bytebase Version/Configuration
+
+Use `helm upgrade` command to upgrade the bytebase version or configuration.
+
+```bash
+helm -n <YOUR_NAMESPACE> \
+--set "bytebase.option.port"={NEW_PORT} \
+--set "bytebase.option.external-url"={NEW_EXTERNAL_URL} \
+--set "bytebase.option.pg"={NEW_PGDSN} \
+--set "bytebase.version"={NEW_VERSION} \
+upgrade bytebase-release bytebase-repo/bytebase
+```
+
+## Need Help?
+
+- [Bytebase Docs](https://bytebase.com/docs)
+- [Bytebase GitHub Issue Page](https://github.com/bytebase/bytebase/issues/new/choose)
diff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yaml
index 4bd247c3eb..89bb2071ab 100644
--- a/helm-charts/bytebase/values.yaml
+++ b/helm-charts/bytebase/values.yaml
@@ -9,5 +9,5 @@ bytebase:
external-url: https://www.bytebase.com/docs/get-started/install/external-url
pg: postgresql://user:secret@host:port/dbname
data: /var/opt/bytebase
- version: 1.3.2
+ version: 1.7.0
storage: 2Gi