Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/buildbuddy-enterprise/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: BuildBuddy Enterprise
name: buildbuddy-enterprise
version: 0.0.273 # Chart version
version: 0.0.274 # Chart version
appVersion: 2.65.0 # Version of deployed app
keywords:
- buildbuddy
Expand Down
Binary file removed charts/buildbuddy-enterprise/charts/mysql-1.6.4.tgz
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions charts/buildbuddy-enterprise/requirements.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies:
- name: mysql
repository: https://charts.helm.sh/stable
version: 1.6.4
repository: https://charts.bitnami.com/bitnami
version: 11.1.0
- name: buildbuddy-redis
repository: https://helm.buildbuddy.io
version: 0.0.11
Expand All @@ -26,5 +26,5 @@ dependencies:
- name: grafana
repository: https://grafana.github.io/helm-charts
version: 6.6.2
digest: sha256:59082060763f0c9fe572f51c1e20b50a1c202b4819d51a43d9861bf1ddbe965c
generated: "2024-06-14T21:09:22.039382286Z"
digest: sha256:7a81f038eb0c870127c53ea414aeec8a4f25a6d5437e23f301b2ef57609f987c
generated: "2024-06-17T17:41:52.440341+02:00"
4 changes: 2 additions & 2 deletions charts/buildbuddy-enterprise/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies:
- name: mysql
version: 1.6.4
repository: https://charts.helm.sh/stable
version: 11.1.0
repository: https://charts.bitnami.com/bitnami
condition: mysql.enabled
- name: buildbuddy-redis
alias: redis
Expand Down
2 changes: 1 addition & 1 deletion charts/buildbuddy-enterprise/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ data:
{{- end }}

{{- if .Values.mysql.enabled }}
{{- $_ := set $c.database "data_source" (print "mysql://" .Values.mysql.mysqlUser ":" .Values.mysql.mysqlPassword "@tcp(" .Release.Name "-mysql:3306)/" .Values.mysql.mysqlDatabase) }}
{{- $_ := set $c.database "data_source" (print "mysql://" .Values.mysql.auth.user ":" .Values.mysql.auth.password "@tcp(" .Release.Name "-mysql:3306)/" .Values.mysql.auth.database) }}
{{- else if not .Values.config.database.data_source }}
{{- $_ := set $c.database "data_source" "sqlite3:///tmp/buildbuddy-enterprise.db" }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/buildbuddy-enterprise/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
- name: "init-mysql"
image: "{{ .Values.initContainerImage.repository }}:{{ .Values.initContainerImage.tag }}"
imagePullPolicy: {{ .Values.initContainerImage.imagePullPolicy }}
command: ["sh", "-c", "until curl --max-time 10 http://{{ .Release.Name }}-mysql:3306; do echo waiting for {{ .Release.Name }}-mysql; sleep 5; done;"]
command: ["sh", "-c", "until nc -z {{ .Release.Name }}-mysql 3306; do echo waiting for {{ .Release.Name }}-mysql service; sleep 5; done;"]
{{- end }}
{{- if .Values.extraInitContainers }}
{{- .Values.extraInitContainers | toYaml | nindent 6 }}
Expand Down
34 changes: 13 additions & 21 deletions charts/buildbuddy-enterprise/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,28 +198,20 @@ certmanager:
## Either enable mysql here, or use your own data_source connection string
## in the config block below.
mysql:
enabled: false
mysqlRootPassword: ""
mysqlUser: ""
mysqlPassword: ""
mysqlDatabase: buildbuddy

resources:
requests:
cpu: "2"
memory: "4Gi"

configurationFiles:
mysql.cnf: |-
enabled: true
auth:
rootPassword: ""
username: ""
password: ""
database: buildbuddy
primary:
# See the preset values in https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
resourcesPreset: xlarge
configuration: |-
[mysqld]
max_connections=4000
repository: mysql
imageTag: "8.0.18"
# metrics:
# enabled: true
# annotations:
# prometheus.io/scrape: "true"
# prometheus.io/port: "9104"
secondary:
replicaCount: 0

redis:
enabled: false
Expand Down Expand Up @@ -395,7 +387,7 @@ extraVolumeMounts: []

## Container image that is used to ping mysql until it's up.
initContainerImage:
repository: appropriate/curl
repository: busybox
tag: latest
imagePullPolicy: IfNotPresent

Expand Down
2 changes: 1 addition & 1 deletion charts/buildbuddy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: BuildBuddy Open Source
name: buildbuddy
version: 0.0.233 # Chart version
version: 0.0.234 # Chart version
appVersion: 2.65.0 # Version of deployed app
keywords:
- buildbuddy
Expand Down
2 changes: 1 addition & 1 deletion charts/buildbuddy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- name: "init-mysql"
image: "{{ .Values.initContainerImage.repository }}:{{ .Values.initContainerImage.tag }}"
imagePullPolicy: {{ .Values.initContainerImage.imagePullPolicy }}
command: ["sh", "-c", "until curl --max-time 10 http://{{ .Release.Name }}-mysql:3306; do echo waiting for {{ .Release.Name }}-mysql; sleep 5; done;"]
command: ["sh", "-c", "until nc -z http://{{ .Release.Name }}-mysql 3306; do echo waiting for {{ .Release.Name }}-mysql service; sleep 5; done;"]
{{- end }}
{{- if .Values.extraInitContainers }}
{{- .Values.extraInitContainers | toYaml | nindent 6 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/buildbuddy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ extraVolumeMounts: []

## Container image that is used to ping mysql until it's up.
initContainerImage:
repository: appropriate/curl
repository: busybox
tag: latest
imagePullPolicy: IfNotPresent

Expand Down