Skip to content

Remove diffStripRegEx workaround in create-setters-simple test#1268

Open
aravindtga wants to merge 1 commit into
kptdev:mainfrom
Nordix:remove-create-setters-simple-workaround
Open

Remove diffStripRegEx workaround in create-setters-simple test#1268
aravindtga wants to merge 1 commit into
kptdev:mainfrom
Nordix:remove-create-setters-simple-workaround

Conversation

@aravindtga

Copy link
Copy Markdown
Contributor

Description

  • What changed: Removed the diffStripRegEx workaround from the create-setters-simple example test and updated the expected diff to reflect the correct results.
  • Why it's needed: The workaround was a temporary fix for Create setters KRM function incorrectly matches setter values in internal.config.kubernetes.io annotations kpt#4462, where create-setters incorrectly matched setter values inside internal annotation paths. The fix has been released in create-setters v0.1.4, so the workaround is no longer needed.
  • How it works: Deleted the now-unnecessary .expected/config.yaml and updated .expected/diff.patch to only contain the 3 legitimate setter results (removing the 2 spurious package-path matches).

Related Issue(s)

Type of Change

  • Tests
  • Other: Remove temporary workaround

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:
- Kiro to identify the correct expected diff output and verify test results.

Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
@netlify

netlify Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deploy Preview for krm-function-catalog canceled.

Name Link
🔨 Latest commit 12d8924
🔍 Latest deploy log https://app.netlify.com/projects/krm-function-catalog/deploys/6a3e77fc6a1f4b00084d048c

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

Removes a now-obsolete e2e test workaround in the create-setters-simple example by deleting the .expected/config.yaml diff-stripping configuration and updating the expected diff output to match current create-setters behavior.

Changes:

  • Updated examples/create-setters-simple/.expected/diff.patch to expect only the legitimate setter matches (removing the previously spurious package-path matches).
  • Removed examples/create-setters-simple/.expected/config.yaml which existed solely to strip those spurious diff lines.

Reviewed changes

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

File Description
examples/create-setters-simple/.expected/diff.patch Updates the expected diff to reflect the corrected create-setters output (3 legitimate results only).
examples/create-setters-simple/.expected/config.yaml Removes the temporary diffStripRegEx workaround configuration that is no longer needed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aravindtga aravindtga marked this pull request as ready for review June 26, 2026 13:49
@aravindtga aravindtga requested a review from a team June 26, 2026 13:50
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove diffStripRegEx workaround in create-setters-simple test after new create-setters release

2 participants