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