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 agent mutation of new registry #845

Merged
merged 10 commits into from
Oct 7, 2022

Conversation

Racer159
Copy link
Contributor

@Racer159 Racer159 commented Oct 5, 2022

Description

This is a hotfix related to the image SHASUMs introduced recently to not mutate the zarf registry on a zarf reinit.

Related Issue

Fixes # N/A

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist before merging

  • (Optional) Changes have been linted locally with golangci-lint. (NOTE: We haven't turned on lint checks in the pipeline yet so linting may be hard if it shows a lot of lint errors in places that weren't touched by changes. Thus, linting is optional right now.)

@jeff-mccoy
Copy link
Contributor

Is there a reason we wouldn't just add the correct agent ignore label to the pod all the time vs hardcode a special exemption that would still hit the webhook?

@Racer159
Copy link
Contributor Author

Racer159 commented Oct 6, 2022

We could do that too (this seemed easier at first). Lemme flip it around.

@Racer159
Copy link
Contributor Author

Racer159 commented Oct 6, 2022

@jeff-mccoy done (you were right this time)

@Racer159 Racer159 enabled auto-merge (squash) October 6, 2022 23:08
Copy link
Contributor

@jeff-mccoy jeff-mccoy left a comment

Choose a reason for hiding this comment

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

I think we need to use ignore/skip zarf.dev/agent=ignore here instead. Reason for this is if the agent and registry both died due to node failures, you'd be stuck in a pending state with "patched" waiting for the agent whereas ignore wouldn't depend on the agent existing at all.

@Racer159
Copy link
Contributor Author

Racer159 commented Oct 7, 2022

Changed

@Racer159 Racer159 merged commit 243d8eb into master Oct 7, 2022
@bdfinst bdfinst deleted the hotfix-zarf-agent-registry-reinit branch January 12, 2023 22:33
Noxsios pushed a commit that referenced this pull request Mar 8, 2023
## Description

This is a hotfix related to the image SHASUMs introduced recently to not
mutate the zarf registry on a zarf reinit.

## Related Issue

Fixes # N/A

## Type of change

- [X] Bug fix (non-breaking change which fixes an issue)

## Checklist before merging

- [X] (Optional) Changes have been linted locally with
[golangci-lint](https://github.com/golangci/golangci-lint). (NOTE: We
haven't turned on lint checks in the pipeline yet so linting may be hard
if it shows a lot of lint errors in places that weren't touched by
changes. Thus, linting is optional right now.)

Co-authored-by: Megamind <882485+jeff-mccoy@users.noreply.github.com>
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.

2 participants