-
Notifications
You must be signed in to change notification settings - Fork 263
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
kn Tekton Task Image Isn't Executable As Script #949
Comments
/assign |
kn image We'd need to override base image with a proper one to support such use cases OR generate two images, current one and another with proper base image and tag them accordingly? cc: @rhuss |
@danielhelfand : meanwhile you can use the latest kn image with shell from here, I've tested the mentioned scenario with this image and it works fine. |
This should be resolveable by making the image's base something with If other users of |
@navidshaikh Thanks for looking into this and the alternative image |
tbh, I wouldn't mind to change to a base image with shell, as we are talking here about a short running client executables that does not have the same strong security constraints like long running server processes. So adding a shell makes definitely sense, also to allow the usage of shell based kn plugins that are mounted or added to a container. So my proposal would be to switch to a richer base image, like alpine or ubi. Not so keen though to use a base image which is labeled with |
for the distroless image can we please use non root, "gcr.io/distroless/static:nonroot" |
|
@navidshaikh can you please close this, as it was fixed by #974 |
Sure @itsmurugappan , let me verify quickly with nightly image. |
@danielhelfand : I was able to successfully run the mentioned task with nightly kn image :
We're using |
@navidshaikh: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Bug report
Trying to use the
kn
Tekton Task's image with a script in a step, such as below, fails with the error also shown below:Expected behavior
Able to execute
kn
in a Tekton step script.Steps to reproduce the problem
Execute a simple Task with
kn
:The text was updated successfully, but these errors were encountered: