From 028673ab064906da9ed7294213f62fee771f7330 Mon Sep 17 00:00:00 2001 From: Jordan McClintock Date: Fri, 1 Nov 2024 19:42:57 +0000 Subject: [PATCH] make mirroring netpol toggleable --- charts/config/templates/uds-package.yaml | 2 ++ charts/config/values.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/charts/config/templates/uds-package.yaml b/charts/config/templates/uds-package.yaml index 24ffd35b..b71316f3 100644 --- a/charts/config/templates/uds-package.yaml +++ b/charts/config/templates/uds-package.yaml @@ -446,6 +446,7 @@ spec: description: "Gitlab Pages Storage" # Gitaly + {{ if .Values.mirroring.enabled }} - direction: Egress selector: app: gitaly @@ -453,6 +454,7 @@ spec: ports: {{- .Values.mirroring.ports | toYaml | nindent 10 }} description: Gitaly repository mirroring + {{- end }} # Custom rules for unanticipated scenarios {{- range .Values.custom }} diff --git a/charts/config/values.yaml b/charts/config/values.yaml index 53330e18..cd968d6c 100644 --- a/charts/config/values.yaml +++ b/charts/config/values.yaml @@ -55,6 +55,7 @@ runner: # https: 443 # git: 9418 mirroring: + enabled: false ports: - 443