Skip to content

fix #4714: surface skip reason during kpt live plan - #4721

Closed
adi-coderr wants to merge 2 commits into
kptdev:mainfrom
adi-coderr:fix-live-plan-skip
Closed

fix #4714: surface skip reason during kpt live plan#4721
adi-coderr wants to merge 2 commits into
kptdev:mainfrom
adi-coderr:fix-live-plan-skip

Conversation

@adi-coderr

Copy link
Copy Markdown

Description

  • What changed: Surfaced the specific skip reason in the CLI output during kpt live plan when a resource evaluates to a skipped action, and updated the corresponding unit tests to reflect the new expected stdout.
  • Why it's needed: Previously, skipped resources only displayed a yellow = sign without any context, leaving developers and operators guessing if it was a configuration error, an intentional lifecycle hook, or a bug. This also resolves an existing TODO in commands/alpha/live/plan/command.go.
  • How it works: Modified the stdout logic for kptplanner.Skip cases to extract and print the specific skip reason from the action context. Updated the expected stdout assertions in commands/alpha/live/plan/command_test.go to match the newly added strings.

Type of Change

  • Bug fix
  • Enhancement
  • Tests

Checklist

  • Code follows project style guidelines
  • Self-reviewed changes
  • Tests added/updated
  • Documentation added/updated
  • All tests and gating checks pass

AI Disclosure

  • I have used AI in the creation of this PR.

If so, please describe how:

  • Leveraged AI to analyze the cli-utils lifecycle hooks, isolate the specific kptplanner.Skip edge cases (such as deletion detachments) for manual validation, and structure the localized end-to-end testing environment.

Resolves the TODO in live plan to provide context when resources are skipped
by mapping skipped statuses with their associated error messages from cli-utils.

Signed-off-by: Aditya <ntgmuch01@gmail.com>
@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit 7e51c01
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/6a970276ba006b00087f916c
😎 Deploy Preview https://deploy-preview-4721--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.

Signed-off-by: Aditya <ntgmuch01@gmail.com>
@efiacor

efiacor commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Hi @adi-coderr
Thanks for your submission but this may be duplicated here - #4715
Closing this for now. Please feel free to pick up another issue from the list.

@efiacor efiacor closed this Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants