Utilize bjw-s's common Helm library. #13

Merged
konrad merged 41 commits from :new-helm-chart into main 2023-11-07 14:47:24 +00:00
3 changed files with 42 additions and 3 deletions
Showing only changes of commit 5197cefe98 - Show all commits

View File

@ -1,6 +1,19 @@
{{- define "vikunja.backend.hardcodedValues" -}}
global:
nameOverride: backend
nameOverride: backend
perfectra1n marked this conversation as resolved Outdated

Is this a special "backend" or the api service? If it's the api, it should be called api.

(I know there are still parts of Vikunja's documentation where it's called "backend" but I'd like to get rid of that anyway)

Is this a special "backend" or the api service? If it's the api, it should be called api. (I know there are still parts of Vikunja's documentation where it's called "backend" but I'd like to get rid of that anyway)

Gotchya, I'll rename that to be api instead. I saw backend in the docs like you said, so I just ran with that.

Gotchya, I'll rename that to be `api` instead. I saw `backend` in the docs like you said, so I just ran with that.
service:
main:
enabled: true
primary: true
type: ClusterIP
ports:
http:
enabled: true
primary: true
port: 3456
protocol: HTTP
{{ end }}

View File

@ -1,8 +1,27 @@
{{- define "vikunja.frontend.hardcodedValues" -}}
global:
nameOverride: frontend
nameOverride: frontend
service:
main:
enabled: true
{{- if not .Values.backend.enabled -}}
primary: true
{{- end }}
type: ClusterIP
ports:
http:
enabled: true
{{- if not .Values.backend.enabled -}}
primary: true
{{- end }}
port: 80
protocol: HTTP
Review

What if the api ingress is using https?

What if the api ingress is using https?
Review

By default, ingress-nginx redirects HTTP to HTTPS and the annotation nginx.ingress.kubernetes.io/force-ssl-redirect: "true" can be used with other Kubernetes Ingress objects to redirect HTTP to HTTPS. It's "normal" in the deployments I've created to have to create that annotation on the Ingress if I've required that redirection (or the other way around :))

By default, `ingress-nginx` redirects HTTP to HTTPS and the annotation `nginx.ingress.kubernetes.io/force-ssl-redirect: "true"` can be used with other Kubernetes Ingress objects to redirect HTTP to HTTPS. It's "normal" in the deployments I've created to have to create that annotation on the Ingress if I've required that redirection (or the other way around :))
targetPort: 8080
env:
- name: VIKUNJA_SERVICE_INTERFACE
value: ":8080"
{{ end }}

View File

@ -46,10 +46,17 @@ frontend:
tls: []
backend:
enabled: true
enabled: false
image:
repository: vikunja/api
pullPolicy: IfNotPresent
persistence:
data:
enabled: true
# existingClaim: # your-claim
accessMode: ReadWriteOnce
size: 10Gi
# storageClass: storage-class
ingress:
konrad marked this conversation as resolved Outdated

But the default value for this one is the one defined in the ingress, why define it here again?

But the default value for this one is the one defined in the ingress, why define it here again?

Fair, forgot to use the ingress value for that variable as well. I went ahead and fixed it. I also included a comment to to the user incase they aren't using an ingress resource (I was even using a Service behind a central Nginx until recently)

fixed!

Fair, forgot to use the `ingress` value for that variable as well. I went ahead and fixed it. I also included a comment to to the user incase they aren't using an `ingress` resource (I was even using a `Service` behind a central Nginx until recently) fixed!
https://kolaente.dev/vikunja/helm-chart/commit/9cd4680e707c57d06e718f8d1e6f524408965a32 and https://kolaente.dev/vikunja/helm-chart/commit/c601e5e449523ffb7feb7d35ca72389075769d9c
main:
enabled: false