Skip to content

fix: respect ignore differences for individual array elements in CRDs#28220

Open
nitishfy wants to merge 2 commits into
argoproj:masterfrom
nitishfy:nitish/ignore-diff-revert
Open

fix: respect ignore differences for individual array elements in CRDs#28220
nitishfy wants to merge 2 commits into
argoproj:masterfrom
nitishfy:nitish/ignore-diff-revert

Conversation

@nitishfy

Copy link
Copy Markdown
Member

Revert #25294

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Title of the PR
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

Signed-off-by: nitishfy <justnitish06@gmail.com>
@nitishfy nitishfy requested a review from a team as a code owner June 10, 2026 09:28
@bunnyshell

bunnyshell Bot commented Jun 10, 2026

Copy link
Copy Markdown

🔴 Preview Environment stopped on Bunnyshell

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🔵 /bns:start to start the environment
  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to remove the environment

Signed-off-by: Nitish Kumar <justnitish06@gmail.com>
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

Comment thread controller/sync_test.go
f.comparisonResult.reconciliationResult.Target = []*unstructured.Unstructured{target}

gvk := schema.GroupVersionKind{Group: "projectcontour.io", Version: "v1", Kind: "HTTPProxy"}
fmt.Printf("LookupResource result: %+v\n", oapiResources.LookupResource(gvk))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

probably needs to be cleaned?

Comment thread controller/sync.go
// Strategic merge patch can fail (and even panic) for resources whose schema
// has incomplete or nil subschemas for some fields, e.g. CRDs with free-form
// objects such as the Argo CD Application CRD. This is a known bug in the
// strategic merge patch handling of k8s.io/apimachinery prior to v0.35

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we verify this claim? Which bug in apimachinery is this related to exactly? I checked #25199 but it doesn't have anything specifically about the apimachinery bug. Please provide some validation and references.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's this one: kubernetes/kubernetes@5af2870

I agree we should verify this; I have created a failing testcase which this PR should pass now. We shouldn't need to do any of this recover stuff

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.

3 participants