From 320a099010fc4875cce1bcb45fd8d3bde6cee7d0 Mon Sep 17 00:00:00 2001 From: rdash99 Date: Thu, 4 Apr 2024 15:57:26 +0100 Subject: [PATCH] test: lock down database pod --- .../templates/database/database-network.yaml | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/charts/guacamole/templates/database/database-network.yaml b/charts/guacamole/templates/database/database-network.yaml index 87a4286..a08751d 100644 --- a/charts/guacamole/templates/database/database-network.yaml +++ b/charts/guacamole/templates/database/database-network.yaml @@ -18,20 +18,17 @@ spec: - Egress ingress: - - {} -{{/* - from:*/}} -{{/* - podSelector:*/}} -{{/* matchLabels:*/}} -{{/* app: {{ include "guacamole.labels.app" . }}*/}} -{{/* component: web*/}} -{{/* release: {{ .Release.Name }}*/}} -{{/* - podSelector:*/}} -{{/* matchLabels:*/}} -{{/* cnpg.io/cluster: {{ include "guacamole.fullname" . }}-database*/}} -{{/* - podSelector:*/}} -{{/* matchLabels:*/}} -{{/* app: {{ include "guacamole.labels.app" . }}*/}} -{{/* component: controller*/}} -{{/* release: {{ .Release.Name }}*/}} - egress: - - {} \ No newline at end of file + - from: + - podSelector: + matchLabels: + app: {{ include "guacamole.labels.app" . }} + component: web + release: {{ .Release.Name }} + - podSelector: + matchLabels: + cnpg.io/cluster: {{ include "guacamole.fullname" . }}-database + - podSelector: + matchLabels: + app: {{ include "guacamole.labels.app" . }} + component: controller + release: {{ .Release.Name }} \ No newline at end of file