-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Regression in Env Injector breaks postgres deployments managed by CloudNativePg #605
Comments
We were having exactly the same problem and it took a lot of time to figure out why the security context of the pods was empty even though it was configured in the deployment and replicaset 😅 Downgrading fixed the issue for now, but I hope it can be addressed in a future release. |
Hey guys, Think i found the issue:
Iv updated that to be:
This respects the original pod securityContext unless we force I've posted a message on the dev slack to try see if i can get a dev environment going for this, but if anyone is interested:
to make a new image:
|
This is broken for us as well and keeping us from being able to move to workload identity. Could we get some attention on this? |
Components and versions
[X] Env-Injector (webhook), version:
1.5.0
[X] Helm Release (2.5.0)
Describe the bug
The latest release (1.5.0) of the env injector causes a problem when running postgres clusters with the Cloudnative Postgres Operator. These postgres clusters work fine when using the previous release (1.4.0) which was installed with Helm Release (2.4.2)
To Reproduce
Error: container has runAsNonRoot and image has non-numeric user (nonroot), cannot verify user is non-root (pod: "postgres-1-initdb-5pq6x_bynubian-dev-02(edf17686-61ad-4165-b280-2a19c9400eda)", container: bootstrap-controller)
Expected behavior
The pods started by the CloudNative Operator should start.
Additional context
Reverting the akv2k8s helm chart back to 2.4.2 which also reverts the env injector to 1.4.0 fixes the issue and postgres deployments are possible again
The text was updated successfully, but these errors were encountered: