From d3e7543814f74cdc1609d1d7ab827fe02e383ec3 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 1 Jun 2026 22:45:23 +0200 Subject: [PATCH] fix(httpRoute): avoid Argo CD drift The following patch avoids a drift in Argo CD. Argo CD detects the missing `group` of the backendRef. --- templates/httpRoute.yaml | 3 ++- unittests/httpRoutes/httpRoute.yaml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/httpRoute.yaml b/templates/httpRoute.yaml index 186e4f4..4801938 100644 --- a/templates/httpRoute.yaml +++ b/templates/httpRoute.yaml @@ -24,7 +24,8 @@ spec: {{- end }} rules: - backendRefs: - - kind: Service + - group: '' + kind: Service name: {{ include "athens-proxy.service.name" . }} namespace: {{ .Release.Namespace }} port: {{ .Values.service.port }} diff --git a/unittests/httpRoutes/httpRoute.yaml b/unittests/httpRoutes/httpRoute.yaml index dfcb382..cebe6a7 100644 --- a/unittests/httpRoutes/httpRoute.yaml +++ b/unittests/httpRoutes/httpRoute.yaml @@ -92,6 +92,7 @@ tests: - contains: path: spec.rules[0].backendRefs content: + group: '' kind: Service name: athens-proxy-unittest namespace: testing