-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can't integrate rocks to securityContext.runAsNonRoot
: true
#243
Comments
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-6537.
|
I have also explored the option to disable the runAsNonRoot option for
Sadly this option is not supported for |
I encounter the same issue while integrating the
|
Bug Description
While working on
net-istio-webhook
extension rock for knative we had encountered a problem where we can't run rocks insecurityContext.runAsNonRoot
:true
Kubernetes deployment.Rocks like
net-istio-webhook
are deployed as part of KnativeServing CR.This is how
securityContext
for the webhook deployment looks like.This problem is known problem in rockcraft project tracked here: canonical/rockcraft#659
To Reproduce
Use (or build) the rock presented in this PR.
Use the rock in the config file for knative-serving. One way to do it is just change the linked field in the config before deploying. Simplest way is to run bundle integration test from the root folder of knative-operators.
After some time the test should be green. After that you can check the pods in the knnative-serving namespace
The pod for net-istio-webhook is in
ConfigurationError
state. You can inspect the events of the podYou should see simillar error message.
Environment
Juju: 3.4.5
Kubernetes: 1.29
Relevant Log Output
Additional Context
No response
The text was updated successfully, but these errors were encountered: