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: update helm chart (#2577)
h3n4l56628eb9be70
diff --git a/helm-charts/bytebase/Chart.yaml b/helm-charts/bytebase/Chart.yamlindex 7fbe6bb9a4..233d9b3e2a 100644--- a/helm-charts/bytebase/Chart.yaml+++ b/helm-charts/bytebase/Chart.yaml@@ -1,10 +1,12 @@apiVersion: v2name: bytebase-description: Web-based, zero-config, dependency-free database schema change and version control tool for teams.-type: applicationversion: 0.0.1-appVersion: "0.9.0"+description: Safe database schema change and version control for DevOps teams.+type: applicationhome: https://bytebase.com/-icon: https://bytebase.com/_nuxt/img/logo-icon.ca8220c.svgsources:- https://github.com/bytebase/bytebase+icon: https://www.bytebase.com/_nuxt/img/logo-full.79b60e4.svg+maintainers:+ - name: Bytebase+ email: [email protected]diff --git a/helm-charts/bytebase/README.md b/helm-charts/bytebase/README.mdindex 2a5aae44e5..70ed8ce28e 100644--- a/helm-charts/bytebase/README.md+++ b/helm-charts/bytebase/README.md@@ -4,7 +4,7 @@ Install the web-based schema change and version control tool [Bytebase](https://## Installing-`helm -n <YOUR_NAMESPACE> install <RELEASE_NAME> helm-charts/bytebase`+`helm -n <YOUR_NAMESPACE> --set bytebase.option.port={PORT} --set bytebase.option.host={HOST} --set bytebase.option.pg={PGDSN} --set bytebase.version={VERSION} install <RELEASE_NAME> helm-charts/bytebase`## Uninstallingdiff --git a/helm-charts/bytebase/templates/service.yaml b/helm-charts/bytebase/templates/service.yamlindex 0b7e1d1ae9..23972031b8 100644--- a/helm-charts/bytebase/templates/service.yaml+++ b/helm-charts/bytebase/templates/service.yaml@@ -1,14 +1,16 @@+{{- $port := .Values.bytebase.option.port -}}apiVersion: v1kind: Servicemetadata:- name: bytebase+ name: bytebase-entrypointnamespace: {{ template "bytebase.namespace" . }}labels:- app: bytebase+ app.kubernetes.io/managed-by: helmspec:- ports:- - port: 80- name: web- clusterIP: None+ type: LoadBalancerselector:- app: bytebase\ No newline at end of file+ app: bytebase+ ports:+ - protocol: TCP+ port: {{ $port }}+ targetPort: {{ $port }}diff --git a/helm-charts/bytebase/templates/statefulset.yaml b/helm-charts/bytebase/templates/statefulset.yamlindex bed2504e89..4522bfe0c7 100644--- a/helm-charts/bytebase/templates/statefulset.yaml+++ b/helm-charts/bytebase/templates/statefulset.yaml@@ -1,8 +1,16 @@+{{- $host := .Values.bytebase.option.host -}}+{{- $port := .Values.bytebase.option.port -}}+{{- $pg := .Values.bytebase.option.pg -}}+{{- $data := .Values.bytebase.option.data -}}+{{- $version := .Values.bytebase.version -}}apiVersion: apps/v1kind: StatefulSetmetadata:name: bytebasenamespace: {{ template "bytebase.namespace" . }}+ labels:+ app.kubernetes.io/managed-by: helm+ app: bytebasespec:selector:matchLabels:@@ -16,22 +24,43 @@ spec:spec:containers:- name: bytebase- image: "bytebase/bytebase:{{ .Chart.AppVersion }}"+ image: "bytebase/bytebase:{{ $version }}"+ args:+ [+ "--data",+ {{ $data | quote }},+ "--host",+ {{ $host | quote }},+ "--port",+ {{ $port | quote }},+ "--pg",+ {{ $pg | quote}},+ ]ports:- - containerPort: 80+ - containerPort: {{ $port }}name: webvolumeMounts:- - mountPath: /var/opt/bytebase- name: sqlite+ - mountPath: {{ $data }}+ name: bytebasereadinessProbe:httpGet:path: /api/actuator/infoport: webinitialDelaySeconds: 2periodSeconds: 2+ livenessProbe:+ httpGet:+ path: /healthz+ port: {{ $port }}+ initialDelaySeconds: 300+ periodSeconds: 300+ timeoutSeconds: 60+ volumes:+ - name: data+ emptyDir: {}volumeClaimTemplates:- metadata:- name: sqlite+ name: bytebasespec:accessModes:- ReadWriteOncediff --git a/helm-charts/bytebase/values.yaml b/helm-charts/bytebase/values.yamlindex cb70baf59f..c1cc2d8999 100644--- a/helm-charts/bytebase/values.yaml+++ b/helm-charts/bytebase/values.yaml@@ -3,4 +3,10 @@# Declare variables to be passed into your templates.bytebase:- storage: 256Mi\ No newline at end of file+ option:+ host: http://localhost+ port: 8080+ pg: postgresql://user:secret@host:port/dbname+ data: /var/opt/bytebase+ version: 1.3.2+ storage: 2Gi