-
Notifications
You must be signed in to change notification settings - Fork 173
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
Zarf image mutation happens twice in some scenarios #1988
Comments
… self-reference) (#1989) ## Description Checks if image.Host has already been patched ## Related Issue Fixes #1988 <!-- or --> Relates to # ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [x] Other (security config, docs update, etc) ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed --------- Signed-off-by: Case Wylie <cmwylie19@defenseunicorns.com> Co-authored-by: Wayne Starr <Racer159@users.noreply.github.com>
Hello. Sorry to comment on a closed issue, but I'm coming across the same potential bug. EnvironmentDevice and OS: VMWare ESXi VM running RHEL 8.8 Using the same package referenced from above (accepting it's a WIP), I'm running into an issue with a ceph job getting the double zarf-hash tagging. The log output looks similar to the one posted above. However, I'm using an external registry.
|
@pat-earl looks like the CI for rook/ceph on the zarf update branch here passed so I suspect this is an issue specific to external registries? Might be worth opening a new issue for visibility into this (and referencing this one for context). Curious if this was working for you on a previous zarf or just hasn't worked in general? |
First time working with zarf. I was originally on v0.29.0 before I saw the pre-req of v0.29.1 and rebuilt the cluster and upgraded zarf related stuff to v0.30.0. I'm going to setup a separate RKE2 environment and try using an internal registry. I'll open a new issue after some further testing. Thanks! |
Environment
Device and OS: macOS, m1 mac, deployment on Ubuntu 20
App version: 0.29.0
Kubernetes distro being used: RKE2 1.26
Steps to reproduce
It might be easier to try and reproduce with this package which is where I experienced the issue. More details on that in the additional context section below.
Expected result
Zarf skips over images it has already mutated and not mutate their tags again.
Actual Result
If a "parent resource" of a pod (deployment, job, etc) has an already mutated image specified then the pod will pass through zarf's mutation and end up with a doubled zarf-hash tag mutation.
Visual Proof (screenshots, videos, text, etc)
Logs from zarf agent showing a patch with 2 zarf-hash tags:
Severity/Priority
Low-medium. This is a weird edge case but could be encountered without any workarounds in some scenarios.
Additional Context
This is probably a really wild edge case. The scenario I ran into this with was a zarf package deploying the rook operator. The operator will spin up several jobs based on the image it is running (which happens to be an already mutated pod in zarf's registry). The resulting pod for that job then experiences the behavior described above.
This package is definitely WIP but if you want to experience the error you should be able to build and deploy - https://github.com/defenseunicorns/uds-package-rook-ceph/blob/docs-values-updates/zarf.yaml
The text was updated successfully, but these errors were encountered: