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

feature: support zarf image modification in reconciliation #500

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? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets N/A
License Apache 2.0

What's in this PR?

This PR checks to see if the pod spec includes an indication that it has been manipulated by Zarf. If so, it will discern the original image string from the Zarf modified one and compare that against the incoming spec.

Why?

Without this change, the current and incoming pod specs will always be out of sync despite using identical images (albeit from different registries due to the air-gapped design of Zarf) resulting in an infinite reconciliation loop.

Additional context

This was tested in conjunction with #499 to ensure compatibility with the Istio diff logic changes.

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

To Do

  • This PR does not support additional containers/init containers currently, only the Nifi container.

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