Use preflight checks to protect commands
masterThe preflight section in dip.yml defines an array of shell commands that Dip runs before any command that interacts with a running container or cluster (e.g., dip compose ..., dip ktl ..., dip run ..., or interaction shorthands).
If any preflight command exits with a non-zero status, Dip aborts the operation. This is useful for verifying credentials, checking for required files, or ensuring environment variables are set.
Note: Preflight is NOT triggered by:
dip down --all(cross-project teardown)dip sshdip infradip provision
preflight:
- ./bin/check-credentials
- test -f .env