Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix bytebase helm chart #7481

Merged
merged 4 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 17 additions & 1 deletion helm-charts/bytebase/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,20 @@ Allow the release namespace to be overridden for multi-namespace deployments in
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- end -}}
{{- 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 }}
2 changes: 1 addition & 1 deletion helm-charts/bytebase/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 2 additions & 4 deletions helm-charts/bytebase/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/bytebase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ bytebase:
port: 8080
existingPgURLSecret: ""
existingPgURLSecretKey: ""
pg: postgresql://user:secret@host:port/dbname
pg:
h3n4l marked this conversation as resolved.
Show resolved Hide resolved
data: /var/opt/bytebase
external-url: "https://www.bytebase.com/docs/get-started/install/external-url"
disable-sample: false
Expand Down