flant / shell-operator

Shell-operator is a tool for running event-driven scripts in a Kubernetes cluster
https://flant.github.io/shell-operator/
Apache License 2.0
2.39k stars 214 forks source link

feat: Ignore lib directory while processing hooks #621

Closed juev closed 2 months ago

juev commented 2 months ago

Overview

Hook spams like this:

.../hooks/lib/utils.py' is skipped: no executable permissions, chmod +x is required to run this hook"

What this PR does / why we need it

Ignore lib directory while processing hooks. We also additionally check the files in the lib directory; if we find files with executable permissions, we display a warning.

Closes: #620