feat: allow specifying an ingress class via chart value

While Dokku currently only supports traefik, providing this setting will allow swapping out the ingress to another fairly easily.
This commit is contained in:
Jose Diaz-Gonzalez
2024-01-26 03:23:34 -05:00
parent 928d35ee77
commit f5182aa553
5 changed files with 15 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ spec:
{{- if eq $processName "web" }}
env:
- name: PORT
value: "{{ $.Values.global.primary_port }}"
value: "{{ $.Values.global.network.primary_port }}"
{{- end }}
envFrom:
- secretRef:

View File

@@ -1,6 +1,6 @@
{{- $processName := "PROCESS_NAME" }}
{{- $config := .Values.processes.PROCESS_NAME }}
{{- if $config.web.domains }}
{{- if and $config.web.domains (eq $.Values.global.network.ingress_class "traefik") }}
---
apiVersion: traefik.io/v1alpha1
kind: Middleware

View File

@@ -1,6 +1,6 @@
{{- $processName := "PROCESS_NAME" }}
{{- $config := .Values.processes.PROCESS_NAME }}
{{- if $config.web.domains }}
{{- if and $config.web.domains (eq $.Values.global.network.ingress_class "traefik") }}
{{- range $pdx, $port_map := $config.web.port_maps }}
---
apiVersion: traefik.io/v1alpha1