Skip to content

Clear the status of the subpackage Kptfile on subpackage clones and upgrades - #1118

Merged
liamfallon merged 5 commits into
kptdev:mainfrom
Nordix:clear-kptfile-status
Jul 16, 2026
Merged

Clear the status of the subpackage Kptfile on subpackage clones and upgrades#1118
liamfallon merged 5 commits into
kptdev:mainfrom
Nordix:clear-kptfile-status

Conversation

@liamfallon

Copy link
Copy Markdown
Contributor

Clear the status of the subpackage Kptfile on subpackage clones and upgrades


Description

  • What changed: The status of a Kptfile in a cloned or upgraded package is cleared on subpackage clones and upgrades
  • Why it’s needed: The status in the upstream Kptfile belongs to the upstram PR, the cloend subpackage has a new lifecycle and a new status
  • How it works: The status is cleared

Related Issue(s)


Type of Change

  • Bug fix
  • New feature
  • Enhancement
  • Refactor
  • Documentation
  • Tests
  • Other: ________

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.

Signed-off-by: liamfallon <liam.fallon@est.tech>
Signed-off-by: liamfallon <liam.fallon@est.tech>
@liamfallon
liamfallon requested review from a team July 16, 2026 07:40
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 16, 2026
@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for kpt-porch ready!

Name Link
🔨 Latest commit eea8b82
🔍 Latest deploy log https://app.netlify.com/projects/kpt-porch/deploys/6a58b2cc805bc40008623460
😎 Deploy Preview https://deploy-preview-1118--kpt-porch.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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the subpackage clone/upgrade flow to clear the status field in a subpackage’s Kptfile, ensuring the cloned/upgraded subpackage starts a fresh lifecycle instead of inheriting upstream render status (aligning with #1109).

Changes:

  • Clear subpackage Kptfile status during subpackage clone/upgrade before writing it into the parent package.
  • Update the subpackage Kptfile write path in applySubpackageTask (with a noted error-message issue to fix).

Comment thread pkg/task/generictaskhandler.go
Comment thread pkg/task/generictaskhandler.go
Signed-off-by: liamfallon <liam.fallon@est.tech>
@sonarqubecloud

Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for this clarity

@dosubot dosubot Bot added the lgtm #ededed label Jul 16, 2026
aravindtga
aravindtga previously approved these changes Jul 16, 2026
Signed-off-by: liamfallon <liam.fallon@est.tech>
kushnaidu
kushnaidu previously approved these changes Jul 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread pkg/task/generictaskhandler_test.go Outdated
Comment thread pkg/task/generictaskhandler_test.go
Comment thread pkg/task/generictaskhandler_test.go Outdated
Signed-off-by: liamfallon <liam.fallon@est.tech>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice to have unit tests along with the change. thank you

@liamfallon
liamfallon merged commit 896914c into kptdev:main Jul 16, 2026
25 checks passed
@liamfallon
liamfallon deleted the clear-kptfile-status branch July 20, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm #ededed size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Porch independant subpackage renderstatus

6 participants