Skip to content

feat: Print skip reasons in live plan output - #4715

Open
vishnukothakapu wants to merge 1 commit into
kptdev:mainfrom
vishnukothakapu:feature/live-plan-skip-reason
Open

feat: Print skip reasons in live plan output#4715
vishnukothakapu wants to merge 1 commit into
kptdev:mainfrom
vishnukothakapu:feature/live-plan-skip-reason

Conversation

@vishnukothakapu

Copy link
Copy Markdown

Description of the change
This PR updates the CLI output logic in commands/alpha/live/plan/command.go and the event parsing in pkg/live/planner/cluster.go to properly capture and print the skip reason for resources that are skipped during actuation.

Previously, skipped events with a reason attached to the Error field were incorrectly classified as hard errors. They are now appropriately marked as Skip with a SkipReason, and the kpt live plan output prints this reason right below the resource.

Motivation for the change
When managing complex applications, resources may be intentionally skipped during actuation due to specific annotations or missing references. Without a descriptive message explaining why the resource was skipped, developers and operators are left guessing if it was a configuration error, an intentional lifecycle hook, or a bug. This change improves transparency and developer experience by surfacing the skip reason provided by cli-utils.

Fixes
Fixes #4714

This change captures the skip reason generated by cli-utils and prints it in the output of the kpt live plan command, improving the developer experience.

Assisted-by: Antigravity:Gemini 3.1 Pro (High)
Signed-off-by: Vishnu Kothakapu <vishnukothakapu27@gmail.com>
@vishnukothakapu
vishnukothakapu requested review from a team August 25, 2026 18:49
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Aug 25, 2026
@netlify

netlify Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit 65bd73b
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/6a8de3b78754620008c6f789
😎 Deploy Preview https://deploy-preview-4715--kptdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@dosubot dosubot Bot added area/live enhancement New feature or request labels Aug 25, 2026
@dosubot dosubot Bot added the lgtm label Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/live enhancement New feature or request lgtm size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide descriptive reasons for skipped resources in the live plan

2 participants