Skip to content

Commit ae7f530

Browse files
authored
Merge pull request #15 from diggerhq/fix/default-values-that-broke-1.5
fix the default values that broke 1.5
2 parents 619f07f + 68e40ad commit ae7f530

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ To configure the Digger backend deployment with the Helm chart, you'll need to s
5555
- `digger.annotations`: Add the needed annotations based on your ingress controller configuration.
5656
- `digger.ingress.host`: The hostname to use for the Ingress resource (e.g., `digger-backend.test`).
5757
- `digger.ingress.path`: The path for the Ingress resource (e.g., `/`).
58+
- `digger.ingress.className`: the classname to use for ingress (only considered for kuberetes >= 1.18)
5859
- `digger.ingress.tls.secretName`: The name of the TLS secret to use for Ingress encryption (e.g., `digger-backend-tls`).
5960

6061
- `digger.secret.*`: Various secrets needed for the application, such as `HTTP_BASIC_AUTH_PASSWORD` and `BEARER_AUTH_TOKEN`. You can provide them directly or reference an existing Kubernetes secret by setting `useExistingSecret` to `true` and specifying `existingSecretName`.

charts/digger-backend/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.5
18+
version: 0.1.6
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "v0.4.2"
24+
appVersion: "v0.6.42"

charts/digger-backend/templates/backend-deployment.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,25 @@ spec:
3535
secretKeyRef:
3636
name: {{ .Values.postgres.secret.existingSecretName }}
3737
key: postgres-password
38+
{{- else if .Values.digger.postgres.existingSecretName }}
39+
valueFrom:
40+
secretKeyRef:
41+
name: {{ .Values.digger.postgres.existingSecretName }}
42+
key: {{ .Values.digger.postgres.existingSecretKey }}
3843
{{- else }}
3944
valueFrom:
4045
secretKeyRef:
4146
name: {{ include "digger-backend.fullname" . }}-postgres-secret
4247
key: postgres-password
4348
{{- end }}
44-
{{- if and .Values.digger.postgres.existingSecretName (not .Values.postgres.enabled) }}
45-
valueFrom:
46-
secretKeyRef:
47-
name: {{ .Values.digger.postgres.existingSecretName }}
48-
key: {{ .Values.digger.postgres.existingSecretKey }}
49-
{{- end }}
5049
- name: HTTP_BASIC_AUTH
5150
value: "1"
5251
- name: DATABASE_URL
5352
{{- if .Values.postgres.enabled }}
5453
value: "postgres://postgres:$(POSTGRES_PASSWORD)@{{ include "digger-backend.fullname" . }}-postgres:5432/postgres?sslmode=disable"
5554
{{- else }}
56-
value: "postgres://{{ .Values.digger.postgres.user }}:$(POSTGRES_PASSWORD)@{{ .Values.digger.postgres.host }}:{{ .Values.digger.postgres.port }}/{{ .Values.digger.postgres.database }}?sslmode=disable"
55+
{{- $pg := .Values.digger.postgres }}
56+
value: "postgres://{{ $pg.user }}:$(POSTGRES_PASSWORD)@{{ $pg.host }}:{{ $pg.port }}/{{ $pg.database }}?sslmode=disable"
5757
{{- end }}
5858
- name: ALLOW_DIRTY
5959
value: "{{ .Values.digger.postgres.allow_dirty }}"

charts/digger-backend/values.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ digger:
66
# tag: digger backend image tag
77
image:
88
repository: registry.digger.dev/diggerhq/digger_backend
9-
tag: "v0.4.9"
9+
tag: "v0.6.42"
1010

1111
# livenessProbe and startupProbe settings
1212
# https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
@@ -44,12 +44,12 @@ digger:
4444
# secretName: name of k8s secret for tls certs (default: "digger-backend-tls")
4545
ingress:
4646
enabled: true
47-
className: "test"
47+
className: ""
4848
annotations:
4949
{}
5050
# kubernetes.io/ingress.class: nginx
5151
# kubernetes.io/tls-acme: 'true'
52-
host: "example.org"
52+
host: ""
5353
path: /
5454
tls:
5555
secretName: "digger-backend-tls"
@@ -85,10 +85,8 @@ digger:
8585
# configure this section if you want to use an external postgres database
8686

8787
postgres:
88-
# if the DB connection string is already in a secret
89-
# DB connection string should be in a key names DATABASE_URL
90-
# compatible with https://github.com/kloeckner-i/db-operator, for example
91-
existingSecretName: "new-pg-creds"
88+
# specify the secret name and key to pull the existing postgres database password from
89+
existingSecretName: ""
9290
existingSecretKey: "postgres-password"
9391

9492
# to define connection details in chart:
@@ -102,7 +100,7 @@ digger:
102100
# configure this section if you want to deploy a postgres db
103101
# WARNING: use only for test purposes, no persistency has been configured
104102
postgres:
105-
enabled: true
103+
enabled: false
106104
image: postgres
107105
tag: "14"
108106
resources:

0 commit comments

Comments
 (0)