blob: 2f6e7a13d6dce9df3f2411e4a1f864c5d579d4b1 [file] [log] [blame]
Giorgi Lekveishvili35982662024-04-05 13:05:40 +04001{{- if .Values.awsSecurityGroupPolicies.enabled -}}
2{{- range .Values.awsSecurityGroupPolicies.policies -}}
3apiVersion: vpcresources.k8s.aws/v1beta1
4kind: SecurityGroupPolicy
5metadata:
6 name: {{ .name }}
7 namespace: {{ template "jenkins.namespace" $ }}
8spec:
9 podSelector:
10 {{- toYaml .podSelector | nindent 6}}
11 securityGroups:
12 groupIds:
13 {{- toYaml .securityGroupIds | nindent 6}}
14---
15{{- end -}}
16{{- end -}}