Some environments enforce PodSecurityPolicy checks
and deployment fails if objects PodSecurityPolicy, ClusterRole and ClusterRoleBinding are not declared.
This commit adds PodSecurityPolicy, ClusterRole and ClusterRoleBinding
objects and adds new configuration option podSecurityPolicy, which is
disabled by default.
Which issue this PR fixes
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.
What this PR does / why we need it:
Some environments enforce PodSecurityPolicy checks and deployment fails if objects PodSecurityPolicy, ClusterRole and ClusterRoleBinding are not declared.
This commit adds PodSecurityPolicy, ClusterRole and ClusterRoleBinding objects and adds new configuration option
podSecurityPolicy
, which is disabled by default.Which issue this PR fixes
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.