forked from github-mirrorer/taskchampion-sync-server
Add more specific settings for HTTPRoute (#203)
* Adding Helm chart * Update maintainer * Updating filesystem settings to prevent issues * CREATE_CLIENTS is now true by default * Add name override options * Validation for postges * Fix plain connection string in pod env * Simplifying secret management * Fix port quoting * Init container to run sql file * Fix port type * Fix secret management * Working now * Fixing Postgres connection issue * Upgrade postgres init container * Auto add UUIDs when starting postgres * feat: Use standard value names for adding HTTPReoute * fix: Remove merge issues * chore: bump version
This commit is contained in:
@ -5,19 +5,53 @@ metadata:
|
||||
name: {{ include "taskchampion-sync-server.fullname" . }}
|
||||
labels:
|
||||
{{- include "taskchampion-sync-server.labels" . | nindent 4 }}
|
||||
{{- with .Values.httpRoute.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
parentRefs:
|
||||
{{- if .Values.httpRoute.parentRefs }}
|
||||
{{- range .Values.httpRoute.parentRefs }}
|
||||
- name: {{ .name }}
|
||||
{{- if .namespace }}
|
||||
namespace: {{ .namespace }}
|
||||
{{- end }}
|
||||
{{- if .sectionName }}
|
||||
sectionName: {{ .sectionName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- else if .Values.httpRoute.gateway }}
|
||||
- name: {{ .Values.httpRoute.gateway }}
|
||||
{{- if .Values.httpRoute.host }}
|
||||
{{- end }}
|
||||
{{- $hostnames := .Values.httpRoute.hostnames }}
|
||||
{{- if and (not $hostnames) .Values.httpRoute.host }}
|
||||
{{- $hostnames = list .Values.httpRoute.host }}
|
||||
{{- end }}
|
||||
{{- if $hostnames }}
|
||||
hostnames:
|
||||
- {{ .Values.httpRoute.host }}
|
||||
{{- range $hostnames }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- if .Values.httpRoute.rules }}
|
||||
{{- range .Values.httpRoute.rules }}
|
||||
- matches:
|
||||
- path:
|
||||
type: {{ .path.type | default "PathPrefix" }}
|
||||
value: {{ .path.value | default "/" }}
|
||||
backendRefs:
|
||||
- name: {{ include "taskchampion-sync-server.fullname" $ }}
|
||||
port: {{ .backendPort | default 8080 }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: {{ .Values.httpRoute.path }}
|
||||
value: {{ .Values.httpRoute.path | default "/" }}
|
||||
backendRefs:
|
||||
- name: {{ include "taskchampion-sync-server.fullname" . }}
|
||||
port: {{ .Values.httpRoute.port }}
|
||||
port: {{ .Values.httpRoute.port | default 8080 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user