From d14e5c1729c8521dc2d078ad631fd83474df363c Mon Sep 17 00:00:00 2001 From: Spyros Synodinos Date: Thu, 26 Sep 2024 12:51:03 +0300 Subject: [PATCH] changes fix --- .../teleport-kube-agent/templates/_helpers.tpl | 2 +- .../templates/networkpolicy.yaml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 helm/teleport-kube-agent/templates/networkpolicy.yaml diff --git a/helm/teleport-kube-agent/templates/_helpers.tpl b/helm/teleport-kube-agent/templates/_helpers.tpl index 987f574..2ef4c56 100644 --- a/helm/teleport-kube-agent/templates/_helpers.tpl +++ b/helm/teleport-kube-agent/templates/_helpers.tpl @@ -33,7 +33,7 @@ if serviceAccount is not defined or serviceAccount.name is empty, use .Release.N {{- if .Values.teleportVersionOverride -}} {{- .Values.teleportVersionOverride -}} {{- else -}} - {{- .Chart.Version -}} + {{- .Chart.AppVersion -}} {{- end -}} {{- end -}} diff --git a/helm/teleport-kube-agent/templates/networkpolicy.yaml b/helm/teleport-kube-agent/templates/networkpolicy.yaml new file mode 100644 index 0000000..9dd8b40 --- /dev/null +++ b/helm/teleport-kube-agent/templates/networkpolicy.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: {{ .Release.Name }} + namespace: {{ .Release.Namespace }} + labels: + app: {{ .Release.Name }} +spec: + egress: + - {} + ingress: + - {} + podSelector: + matchLabels: + app: {{ .Release.Name }} + policyTypes: + - Egress + - Ingress