-
Notifications
You must be signed in to change notification settings - Fork 350
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
Camel K doesn't install on a restricted namespace #4786
Comments
@oscerd most of the work has been done for openshift on restricted configurations. I will take care of adding the part here on general kubernetes security configuration from the namespace. |
By default, we don't apply any security context on the operator. We should work the other way around, setting context with minimum required privileges by default. |
I think it is not strictly necessary here. I mean, the main problem would be setting up Kind to run on such configuration. What's important is that we do have at least a test that verify that the default installation provide the required security settings. |
I'll try later on that. Thanks @gansheer and sorry for not trying the nightly release. |
No Problem, that was actually some left-over from the original feature.
The helm, olm and kustomize install e2e tests are missing the check. I will consolidate them. |
What happened?
On a restricted namespace Camel K won't open installed.
Steps to reproduce
If you install the latest minikube
minikube start --addons registry --driver=docker --alsologtostderr
and then create a restricted namespace
kubectl create namespace test-restricted
and then apply the required bits to restrict the namespace
kubectl label --overwrite ns test-restricted pod-security.kubernetes.io/enforce=restricted pod-security.kubernetes.io/warn=restricted
With Kamel 2.0.1 trying to do the installation
kamel install --namespace=test-restricted --olm=false
The operator will return the following
Reproduced on Minikube 1.31.2
It's not uncommon to have some security restrictions on particular namespace.
Relevant log output
Camel K version
2.0.1
The text was updated successfully, but these errors were encountered: