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