Closed vyasgun closed 7 months ago
Specifying --user flag does not populate the knative service yaml with the supplied value.
--user
kn service create s0 --image knativesamples/helloworld --user 1001
should set the value of RunAsUser field in container security context to 1001 but it remains unpopulated.
RunAsUser
gvyas-mac:knative gvyas$ kn version Version: v1.13.0 Build Date: 2024-01-24 16:48:59 Git Revision: 543522a3 Supported APIs: * Serving - serving.knative.dev/v1 (knative-serving v1.13.0) * Eventing - sources.knative.dev/v1 (knative-eventing v1.13.0) - eventing.knative.dev/v1 (knative-eventing v1.13.0)
Nightly 0.12.x 0.11.x 0.10.x 0.9.x
Bug report
Specifying
--user
flag does not populate the knative service yaml with the supplied value.Expected behavior
kn service create s0 --image knativesamples/helloworld --user 1001
should set the value of
RunAsUser
field in container security context to 1001 but it remains unpopulated.Steps to reproduce the problem
kn version
Knative (serving/eventing) version