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

Deploy does not wait on Package CR readiness #140

Closed
mjnagel opened this issue Jun 3, 2024 · 0 comments · Fixed by #144
Closed

Deploy does not wait on Package CR readiness #140

mjnagel opened this issue Jun 3, 2024 · 0 comments · Fixed by #144
Labels
possible-bug 🐛 Something may not be working

Comments

@mjnagel
Copy link
Contributor

mjnagel commented Jun 3, 2024

Environment

N/A - not environment specific, but encountered on RKE2.

Steps to reproduce

  1. Deploy with a known bad Package configuration (example: add an erroneous client scope)
  2. Watch gitlab deploys "happily".

Expected result

Deployment should fail if Package CR is not ready.

Actual Result

Since helm/zarf do not wait on the Package, and there is no action in the zarf.yaml to wait on it, it's status is ignored for the deployment.

Severity/Priority

Low/Medium

Additional Context

In uds-core we added onDeploy.after actions to most packages to validate they are fully healthy before proceeding, example - https://github.com/defenseunicorns/uds-core/blob/main/src/grafana/common/zarf.yaml#L21-L31. Unsure, but expect this is an issue on other SWF repos as well.

@mjnagel mjnagel added the possible-bug 🐛 Something may not be working label Jun 3, 2024
Racer159 added a commit that referenced this issue Jun 5, 2024
## Description

Adds a wait action for the GL package CR. This is consistent with the
pattern in uds-core however it runs _after_ the GitLab chart installs
(meaning the GitLab chart may still fail waiting on resources like
secrets to exist) however this will catch other issues such as failed
updates to resources or missing resources the chart doesn't directly
depend on like netpols.

## Related Issue

Fixes #140 

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] 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/uds-package-gitlab/blob/main/CONTRIBUTING.md#developer-workflow)
followed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible-bug 🐛 Something may not be working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant