GoogleCloudPlatform / policy-library

A library of constraint templates and sample constraints for Constraint Framework tools
Apache License 2.0
224 stars 127 forks source link

Remove PodSecurityPolicy requirement for gcp_gke_restrict_pod_traffic_v1 #415

Closed jacks-reid closed 3 years ago

jacks-reid commented 3 years ago

This change removes the pod_security_policy_config_enabled == true requirement in the gcp_gke_restrict_pod_traffic_v1.yaml constraint template.

I believe the PodSecurityPolicy requirement should be removed because of its recent deprecation in Kubernetes v1.21 and that users will more closely associate this policy with the enforcement of network policies.

To accomplish this:

jacks-reid commented 3 years ago

Makes sense.

Are these all the changes you had in mind?

morgante commented 3 years ago

@jacks-reid Yep, looks good. Thank you.

I need to get some tests fixed before I can give this a more thorough review though.