Why:
On namespaces with security policy, Postgres cannot be deployed as the security context cannot be customized on the CRD.
Postgres CRD allow only to setup a custom user with spiloRunAsUser, this PR will set RunAsNonRoot to true when spiloRunAsUser is set.
Example of security policies that block the deployment of Postgres:
Why: On namespaces with security policy, Postgres cannot be deployed as the security context cannot be customized on the CRD. Postgres CRD allow only to setup a custom user with spiloRunAsUser, this PR will set RunAsNonRoot to true when spiloRunAsUser is set.
Example of security policies that block the deployment of Postgres: