feat(argo-cd): add gateway namespace configuration
Signed-off-by: Tristan Duverger <tristan.duverger@gmail.com>
This commit is contained in:
parent
0b5b4d88ab
commit
742993730f
4 changed files with 8 additions and 3 deletions
|
@ -1046,7 +1046,8 @@ NAME: my-release
|
||||||
| server.gateway.httpRoute.pathType | string | `PathPrefix` (See [values.yaml]) | HTTP reoute path type. Either 'Exact' or `PathPrefix` |
|
| server.gateway.httpRoute.pathType | string | `PathPrefix` (See [values.yaml]) | HTTP reoute path type. Either 'Exact' or `PathPrefix` |
|
||||||
| server.gateway.labels | object | `{}` | Additional gateway labels |
|
| server.gateway.labels | object | `{}` | Additional gateway labels |
|
||||||
| server.gateway.listeners | list | Listen on http. | Gateway listeners |
|
| server.gateway.listeners | list | Listen on http. | Gateway listeners |
|
||||||
| server.gateway.name | string | `""` (calculated with template "argo-cd.server.fullname") (See [values.yaml]) | Name of the new gateway |
|
| server.gateway.name | string | `""` (calculated with template "argo-cd.server.fullname") (See [values.yaml]) | Name of the gateway |
|
||||||
|
| server.gateway.namespace | string | `.Release.Namespace` (See [values.yaml]) | Name of the namespace gateway |
|
||||||
| server.hostNetwork | bool | `false` | Host Network for Server pods |
|
| server.hostNetwork | bool | `false` | Host Network for Server pods |
|
||||||
| server.image.imagePullPolicy | string | `""` (defaults to global.image.imagePullPolicy) | Image pull policy for the Argo CD server |
|
| server.image.imagePullPolicy | string | `""` (defaults to global.image.imagePullPolicy) | Image pull policy for the Argo CD server |
|
||||||
| server.image.repository | string | `""` (defaults to global.image.repository) | Repository to use for the Argo CD server |
|
| server.image.repository | string | `""` (defaults to global.image.repository) | Repository to use for the Argo CD server |
|
||||||
|
|
|
@ -20,6 +20,7 @@ spec:
|
||||||
- group: gateway.networking.k8s.io
|
- group: gateway.networking.k8s.io
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
name: {{ .Values.server.gateway.name | default (include "argo-cd.server.fullname" .) }}
|
name: {{ .Values.server.gateway.name | default (include "argo-cd.server.fullname" .) }}
|
||||||
|
namespace: {{ .Values.server.gateway.namespace | default .Release.Namespace }}
|
||||||
{{- with .Values.server.gateway.httpRoute.gatewaySection }}
|
{{- with .Values.server.gateway.httpRoute.gatewaySection }}
|
||||||
sectionName: {{ . }}
|
sectionName: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -3,7 +3,7 @@ kind: Gateway
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ .Values.server.gateway.name | default (include "argo-cd.server.fullname" .) }}
|
name: {{ .Values.server.gateway.name | default (include "argo-cd.server.fullname" .) }}
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ .Values.server.gateway.namespace | default .Release.Namespace }}
|
||||||
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 }}
|
||||||
{{- with .Values.server.gateway.labels }}
|
{{- with .Values.server.gateway.labels }}
|
||||||
|
|
|
@ -2157,9 +2157,12 @@ 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 of the new gateway
|
# -- Name of the gateway
|
||||||
# @default -- `""` (calculated with template "argo-cd.server.fullname") (See [values.yaml])
|
# @default -- `""` (calculated with template "argo-cd.server.fullname") (See [values.yaml])
|
||||||
name: ""
|
name: ""
|
||||||
|
# -- Name of the namespace gateway
|
||||||
|
# @default -- `.Release.Namespace` (See [values.yaml])
|
||||||
|
namespace: ""
|
||||||
# -- 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