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: add wait for deployments when updating credentials #2580

Closed
wants to merge 2 commits into from

Conversation

phillebaba
Copy link
Member

Description

This change waits for deployments to update using kstatus when updating credentials. The reason this is necessary is to make sure that all pods have received the updated configuration before the update command returns. Otherwise it would be possible to assume that the configuration has been applied when it has not. Sadly Helm is not able to do this itself as it will not wait for old pods to delete before returning.

Related Issue

Relates to #2566

Checklist before merging

@phillebaba phillebaba requested review from dgershman and a team as code owners June 4, 2024 13:57
Copy link

netlify bot commented Jun 4, 2024

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 4c08d19
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/6661793008e629000884a590

@phillebaba phillebaba marked this pull request as draft June 4, 2024 13:57
@phillebaba
Copy link
Member Author

I realize that this change does some duplicate work of #2497 while not introducing new features that require a bit more consensus. It would be for the best to come up with a standard method of using kstatus in the PR as it is also required in other projects like defenseunicorns/lula#229.

@phillebaba phillebaba closed this Jun 6, 2024
lucasrod16 pushed a commit to defenseunicorns/pkg that referenced this pull request Jun 7, 2024
## Description

This change adds a new Kubernetes package meant for related logic. It
also adds functions which allows users to easily wait for resources to
be properly reconciled.

## Related Issue

Relates to #zarf-dev/zarf#2580
Relates to #defenseunicorns/lula#229
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.

None yet

1 participant