Skip to content

Commit 3355943

Browse files
fix(argo-cd): make gateway API backend protocol selection work for server
When using gateway API (https://gateway-api.sigs.k8s.io/) to configure a Gateway and an HTTPRoute to access Argo CD server, backend protocol selection (https://gateway-api.sigs.k8s.io/guides/backend-protocol/) relies on the appProtocol field of the backend service port (https://gateway-api.sigs.k8s.io/reference/spec/#backendref). Valid values for this field are described in KEP-3726 (https://github.com/kubernetes/enhancements/tree/master/keps/sig-network/3726-standard-application-protocols). Signed-off-by: Yann Soubeyrand <8511577+yann-soubeyrand@users.noreply.github.com>
1 parent eb1e669 commit 3355943

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

charts/argo-cd/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: v3.2.0
33
kubeVersion: ">=1.25.0-0"
44
description: A Helm chart for Argo CD, a declarative, GitOps continuous delivery tool for Kubernetes.
55
name: argo-cd
6-
version: 9.1.1
6+
version: 9.1.2
77
home: https://github.com/argoproj/argo-helm
88
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
99
sources:
@@ -26,5 +26,5 @@ annotations:
2626
fingerprint: 2B8F22F57260EFA67BE1C5824B11F800CD9D2252
2727
url: https://argoproj.github.io/argo-helm/pgp_keys.asc
2828
artifacthub.io/changes: |
29-
- kind: removed
30-
description: Remove `server.rbac.log.enforce.enable` flag in `configs.cm`
29+
- kind: fixed
30+
description: Make gateway API backend protocol selection work for server.

charts/argo-cd/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,7 @@ NAME: my-release
13221322
| server.service.nodePortHttp | int | `30080` | Server service http port for NodePort service type (only if `server.service.type` is set to "NodePort") |
13231323
| server.service.nodePortHttps | int | `30443` | Server service https port for NodePort service type (only if `server.service.type` is set to "NodePort") |
13241324
| server.service.servicePortHttp | int | `80` | Server service http port |
1325+
| server.service.servicePortHttpAppProtocol | string | `"kubernetes.io/h2c"` | Server service http port appProtocol |
13251326
| server.service.servicePortHttpName | string | `"http"` | Server service http port name, can be used to route traffic via istio |
13261327
| server.service.servicePortHttps | int | `443` | Server service https port |
13271328
| server.service.servicePortHttpsAppProtocol | string | `""` | Server service https port appProtocol |

charts/argo-cd/templates/argocd-server/service.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ spec:
4444
{{- if eq .Values.server.service.type "NodePort" }}
4545
nodePort: {{ .Values.server.service.nodePortHttp }}
4646
{{- end }}
47+
{{- with .Values.server.service.servicePortHttpAppProtocol }}
48+
appProtocol: {{ . }}
49+
{{- end }}
4750
- name: {{ .Values.server.service.servicePortHttpsName }}
4851
protocol: TCP
4952
port: {{ .Values.server.service.servicePortHttps }}
@@ -56,4 +59,3 @@ spec:
5659
{{- end }}
5760
selector:
5861
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.server.name) | nindent 4 }}
59-

charts/argo-cd/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,6 +2307,9 @@ server:
23072307
servicePortHttpName: http
23082308
# -- Server service https port name, can be used to route traffic via istio
23092309
servicePortHttpsName: https
2310+
# -- Server service http port appProtocol
2311+
## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#application-protocol
2312+
servicePortHttpAppProtocol: "kubernetes.io/h2c"
23102313
# -- Server service https port appProtocol
23112314
## Ref: https://kubernetes.io/docs/concepts/services-networking/service/#application-protocol
23122315
servicePortHttpsAppProtocol: ""

0 commit comments

Comments
 (0)