ref(argo-cd): using default value for gateway name
Signed-off-by: Tristan Duverger <tristan.duverger@gmail.com>
This commit is contained in:
parent
a8d4216c23
commit
44377b3664
3 changed files with 5 additions and 3 deletions
|
@ -19,7 +19,7 @@ spec:
|
||||||
parentRefs:
|
parentRefs:
|
||||||
- group: gateway.networking.k8s.io
|
- group: gateway.networking.k8s.io
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
name: {{ tpl .Values.server.gateway.name . }}
|
name: {{ .Values.server.gateway.name | default (include "argo-cd.server.fullname" .) }}
|
||||||
{{- with .Values.server.gateway.httpRoute.gatewaySection }}
|
{{- with .Values.server.gateway.httpRoute.gatewaySection }}
|
||||||
sectionName: {{ . }}
|
sectionName: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ tpl .Values.server.gateway.name . }}
|
name: {{ .Values.server.gateway.name | default (include "argo-cd.server.fullname" .) }}
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
|
|
@ -2157,7 +2157,9 @@ server:
|
||||||
# -- enable a gateway resource for ArgoCD
|
# -- enable a gateway resource for ArgoCD
|
||||||
## Note: you can already have an existing Gateway and just wanted to add a route and backend policy to that Gateway, let false in that case
|
## Note: you can already have an existing Gateway and just wanted to add a route and backend policy to that Gateway, let false in that case
|
||||||
enabled: false
|
enabled: false
|
||||||
name: '{{ include "argo-cd.server.fullname" . }}'
|
# -- Name of the new gateway
|
||||||
|
# @default -- `""` (calculated with template "argo-cd.server.fullname") (See [values.yaml])
|
||||||
|
name: ""
|
||||||
# -- Specific implementation for gateway controller. Only `None` and `gke` are supported.
|
# -- Specific implementation for gateway controller. Only `None` and `gke` are supported.
|
||||||
## With `None`, the gateway is supposed to already exist and no specific object will be created
|
## With `None`, the gateway is supposed to already exist and no specific object will be created
|
||||||
## Additional configuration might be required in related configuration sections for `gke`
|
## Additional configuration might be required in related configuration sections for `gke`
|
||||||
|
|
Loading…
Reference in a new issue