chainsaw: [Bug] Script not available in docker container

chainsaw version Version

v0.1.3

Description

Script is not available when Chainsaw is launched from the container image.

Steps to reproduce

  1. docker pull ghcr.io/kyverno/chainsaw
  2. Mount test files
  3. Run chainsaw

Test step that fails:

  steps:
  - try:
    - script: 
        content: |
          kubectl annotate namespace ${NAMESPACE} "egress"="internet"

Expected behavior

Script got executed (in this case, ephemeral namespace should be annotated)

Screenshots

No response

Logs

-c kubectl annotate namespace ${NAMESPACE} "egress"="internet"    
l.go:53:| 09:57:14 | egress-with-annotation | step-1   | SCRIPT    | ERROR |        
=== ERROR        
exec: "sh": executable file not found in $PATH

Slack discussion

https://kubernetes.slack.com/archives/C067LUFL43U/p1707224714140559

Troubleshooting

  • I have searched other issues in this repository and mine is not recorded.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (18 by maintainers)

Most upvoted comments

@sandert98 @shubham-cmyk is working on a fix 😃

@sandert98 i reproduced the issue, this might be related to our goreleaser config