From 504c8556456c8a8593d0409c23476f9876ad725f Mon Sep 17 00:00:00 2001 From: yerkennz Date: Thu, 6 Aug 2026 18:41:36 +0500 Subject: [PATCH] fix: [CPCAP-13880] add labels to ingress and httproute --- operator/charts/patroni-services/templates/_helpers.tpl | 5 +++++ .../templates/powa-ui/powa-gateway-deployment.yaml | 1 + .../patroni-services/templates/powa-ui/powa-http-route.yaml | 1 + .../templates/powa-ui/powa-ingress-deployment.yaml | 1 + 4 files changed, 8 insertions(+) diff --git a/operator/charts/patroni-services/templates/_helpers.tpl b/operator/charts/patroni-services/templates/_helpers.tpl index 42556e1b..197c251b 100644 --- a/operator/charts/patroni-services/templates/_helpers.tpl +++ b/operator/charts/patroni-services/templates/_helpers.tpl @@ -94,6 +94,11 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/technology: "go" {{- end -}} +{{/* Ingress/HTTPRoute labels */}} +{{- define "ingress.labels" -}} +deployment.netcracker.com/ingress-audience-type: "ops-user" +deployment.netcracker.com/ingress-type: "private-network" +{{- end -}} {{/* Create the name of the service account to use diff --git a/operator/charts/patroni-services/templates/powa-ui/powa-gateway-deployment.yaml b/operator/charts/patroni-services/templates/powa-ui/powa-gateway-deployment.yaml index 375d765d..04663848 100644 --- a/operator/charts/patroni-services/templates/powa-ui/powa-gateway-deployment.yaml +++ b/operator/charts/patroni-services/templates/powa-ui/powa-gateway-deployment.yaml @@ -6,6 +6,7 @@ metadata: name: powa-ui-httproute labels: {{ include "kubernetes.labels" . | nindent 4 }} + {{ include "ingress.labels" . | nindent 4 }} spec: parentRefs: - name: {{ include "gateway.name" . }} diff --git a/operator/charts/patroni-services/templates/powa-ui/powa-http-route.yaml b/operator/charts/patroni-services/templates/powa-ui/powa-http-route.yaml index 6f0dedf7..316c3464 100644 --- a/operator/charts/patroni-services/templates/powa-ui/powa-http-route.yaml +++ b/operator/charts/patroni-services/templates/powa-ui/powa-http-route.yaml @@ -6,6 +6,7 @@ metadata: name: powa-ui-frontend-redirect labels: {{ include "kubernetes.labels" . | nindent 4 }} + {{ include "ingress.labels" . | nindent 4 }} spec: parentRefs: - name: {{ include "gateway.name" . }} diff --git a/operator/charts/patroni-services/templates/powa-ui/powa-ingress-deployment.yaml b/operator/charts/patroni-services/templates/powa-ui/powa-ingress-deployment.yaml index 86a6cfbf..45925cce 100644 --- a/operator/charts/patroni-services/templates/powa-ui/powa-ingress-deployment.yaml +++ b/operator/charts/patroni-services/templates/powa-ui/powa-ingress-deployment.yaml @@ -6,6 +6,7 @@ metadata: labels: name: powa-ui-ingress {{ include "kubernetes.labels" . | nindent 4 }} + {{ include "ingress.labels" . | nindent 4 }} annotations: {{- if .Values.tls.enabled }} nginx.ingress.kubernetes.io/backend-protocol: HTTPS