Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ignore container ordering for pod diff #499

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nfoucha
Copy link
Contributor

@nfoucha nfoucha commented Dec 19, 2024

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets N/A
License Apache 2.0

What's in this PR?

This PR adds logic to check if a diff between the current and desired pod only contains container and/or init container ordering information. If so, it will ignore the diff and proceed as if the pod is in sync with the spec.

Why?

This PR fixes an issue where the Istio logic can result in an infinite reconciliation loop due to the ordering of containers and/or init containers not matching the desired pod spec. Prior work addressed other issues related to Istio injection, see #476

Additional context

Testing in #476 missed this case due to environment variance that has since been addressed. This issue is reliably reproducible. This logic has been tested against Istio and non-Istio NiFi deployments.

Checklist

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)
  • Append changelog with changes

@nfoucha nfoucha force-pushed the fix/diff-container-ordering branch from bdd645d to b64faa7 Compare December 19, 2024 15:55
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.

1 participant