feat(argo-cd): support references in spec
Signed-off-by: Tristan Duverger <tristan.duverger@gmail.com>
This commit is contained in:
parent
59c226c2ca
commit
a8d4216c23
4 changed files with 23 additions and 19 deletions
|
@ -18,7 +18,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
default:
|
default:
|
||||||
{{- with .Values.server.gateway.gke.GCPBackendPolicy.spec.default }}
|
{{- with .Values.server.gateway.gke.GCPBackendPolicy.spec.default }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- tpl (toYaml .) $ | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
targetRef:
|
targetRef:
|
||||||
group: ""
|
group: ""
|
||||||
|
|
|
@ -18,7 +18,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
default:
|
default:
|
||||||
{{- with .Values.server.gateway.gke.GCPGatewayPolicy.spec.default }}
|
{{- with .Values.server.gateway.gke.GCPGatewayPolicy.spec.default }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- tpl (toYaml .) $ | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
targetRef:
|
targetRef:
|
||||||
group: gateway.networking.k8s.io
|
group: gateway.networking.k8s.io
|
||||||
|
|
|
@ -18,7 +18,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
default:
|
default:
|
||||||
{{- with .Values.server.gateway.gke.HealthCheckPolicy.spec.default }}
|
{{- with .Values.server.gateway.gke.HealthCheckPolicy.spec.default }}
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- tpl (toYaml .) $ | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
targetRef:
|
targetRef:
|
||||||
group: ""
|
group: ""
|
||||||
|
|
|
@ -2162,8 +2162,6 @@ server:
|
||||||
## 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`
|
||||||
controller: None
|
controller: None
|
||||||
# Argo CD server Gateway API HTTPRoute configuration
|
|
||||||
# NOTE: Alpha feature, gRPC & TLS pass-through will not work
|
|
||||||
# -- Additional gateway labels
|
# -- Additional gateway labels
|
||||||
labels: {}
|
labels: {}
|
||||||
# -- Additional gateway annotations
|
# -- Additional gateway annotations
|
||||||
|
@ -2171,8 +2169,7 @@ server:
|
||||||
# networking.gke.io/certmap: "CERTIFICATE_MAP"
|
# networking.gke.io/certmap: "CERTIFICATE_MAP"
|
||||||
gatewayClassName: ""
|
gatewayClassName: ""
|
||||||
# @default -- `""` (See [values.yaml])
|
# @default -- `""` (See [values.yaml])
|
||||||
# gatewayClassName: gke-l7-global-external-managed
|
## Example: gatewayClassName: gke-l7-global-external-managed
|
||||||
# gatewayClassName: gke-l7-rilb
|
|
||||||
listeners:
|
listeners:
|
||||||
- name: http
|
- name: http
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
|
@ -2188,34 +2185,41 @@ server:
|
||||||
# from: Same
|
# from: Same
|
||||||
gke:
|
gke:
|
||||||
GCPGatewayPolicy:
|
GCPGatewayPolicy:
|
||||||
# -- Additional gateway labels
|
# -- Additional gateway policy labels
|
||||||
labels: {}
|
labels: {}
|
||||||
# -- Additional gateway annotations
|
# -- Additional gateway policy annotations
|
||||||
annotations: {}
|
annotations: {}
|
||||||
spec:
|
spec:
|
||||||
|
# @default -- `{}`
|
||||||
|
## Note: default spec for GCPGatewayPolicy
|
||||||
default: {}
|
default: {}
|
||||||
GCPBackendPolicy:
|
GCPBackendPolicy:
|
||||||
# -- Additional gateway labels
|
# -- Additional backend policy labels
|
||||||
labels: {}
|
labels: {}
|
||||||
# -- Additional gateway annotations
|
# -- Additional backend policy annotations
|
||||||
annotations: {}
|
annotations: {}
|
||||||
spec:
|
spec:
|
||||||
|
# @default -- `{}` (See [values.yaml])
|
||||||
|
## Note: default spec for GCPBackendPolicy
|
||||||
default: {}
|
default: {}
|
||||||
HealthCheckPolicy:
|
HealthCheckPolicy:
|
||||||
# -- Additional gateway labels
|
# -- Additional heath check policy labels
|
||||||
labels: {}
|
labels: {}
|
||||||
# -- Additional gateway annotations
|
# -- Additional heath check policy annotations
|
||||||
annotations: {}
|
annotations: {}
|
||||||
spec:
|
spec:
|
||||||
|
# @default -- `` (See [values.yaml])
|
||||||
|
## Note: default spec for HealthCheckPolicy. Logs enabled and Heath check on argo server service
|
||||||
default:
|
default:
|
||||||
logConfig:
|
logConfig:
|
||||||
enabled: true
|
enabled: true
|
||||||
config:
|
config:
|
||||||
type: HTTP
|
type: HTTP
|
||||||
httpHealthCheck:
|
httpHealthCheck:
|
||||||
port: '{{ .Values.server.service.servicePortHttp }}'
|
port: 80
|
||||||
requestPath: "/"
|
requestPath: "/"
|
||||||
|
# Argo CD server Gateway API HTTPRoute configuration
|
||||||
|
# NOTE: Alpha feature, gRPC & TLS pass-through will not work
|
||||||
httpRoute:
|
httpRoute:
|
||||||
# -- Enable a Gateway HTTP route resources for the Argo CD server
|
# -- Enable a Gateway HTTP route resources for the Argo CD server
|
||||||
enabled: "{{ .Values.server.gateway.enabled | default false }}"
|
enabled: "{{ .Values.server.gateway.enabled | default false }}"
|
||||||
|
|
Loading…
Reference in a new issue