From 304b7c96ccce7d0144a94d40485a9350941338fe Mon Sep 17 00:00:00 2001 From: RocketProto <142548912+rocketproto@users.noreply.github.com> Date: Wed, 23 Aug 2023 18:43:37 +0930 Subject: [PATCH] fix: (#496) decoupled BASE_URL --- charts/planka/templates/deployment.yaml | 4 +++- charts/planka/values.yaml | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/planka/templates/deployment.yaml b/charts/planka/templates/deployment.yaml index d9b56cd..1af5407 100644 --- a/charts/planka/templates/deployment.yaml +++ b/charts/planka/templates/deployment.yaml @@ -64,7 +64,9 @@ spec: name: planka-postgresql-svcbind-custom-user key: uri - name: BASE_URL - {{- if .Values.ingress.enabled }} + {{- if .Values.baseUrl }} + value: {{ .Values.baseUrl }} + {{- else if .Values.ingress.enabled }} value: {{ printf "https://%s" (first .Values.ingress.hosts).host }} {{- else }} value: http://localhost:3000 diff --git a/charts/planka/values.yaml b/charts/planka/values.yaml index 67e4843..7d6e319 100644 --- a/charts/planka/values.yaml +++ b/charts/planka/values.yaml @@ -17,6 +17,10 @@ fullnameOverride: "" # Generate a secret using openssl rand -base64 45 secretkey: "" +# Base url for Planka. Will override `ingress.hosts[0].host` +# Defaults to `http://localhost:3000` if ingress is disabled. +baseUrl: "" + serviceAccount: # Specifies whether a service account should be created create: true @@ -50,6 +54,7 @@ ingress: # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" hosts: + # Used to set planka BASE_URL if no `baseurl` is provided. - host: planka.local paths: - path: /