Skip to content

Allow the kapp --preflight flag in deploy rawOptions - #1876

Open
cvas22 wants to merge 1 commit into
carvel-dev:developfrom
cvas22:feat/1381-allow-preflight-flag
Open

cvas22 wants to merge 1 commit into
carvel-dev:developfrom
cvas22:feat/1381-allow-preflight-flag

Conversation

@cvas22

@cvas22 cvas22 commented Oct 23, 2026

Copy link
Copy Markdown

Adds --preflight to the kapp flags that an App's spec.deploy[].kapp.rawOptions may set for deploy, so the kapp preflight checks (for example --preflight=PermissionValidation=true) can be enabled from the App CR. The bundled kapp (v0.65.4) already supports the flag; kapp-controller only rejected it as an unknown flag.

The flag is allowed for deploy only, because kapp registers it only on that command. delete and inspect still reject it.

Test: TestPreflightFlagAllowedOnlyForDeploy in pkg/deploy. I ran go test ./pkg/deploy ./pkg/exec; I did not run the e2e tests against a cluster.

Refs #1381 (as suggested in the discussion there, enabling the permission check from the App spec; the issue also asks about a dedicated App field, which this does not add).

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants