-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: add registry1 zarf flavors to uds core #63
Conversation
…s files, fix core-istio create task
Internal PR, not to main branch. I think this is closer to the pattern for other src packages.
Co-authored-by: Micah Nagel <micah.nagel@defenseunicorns.com>
I'll work on resolving the merge conflicts from the operator PR, testing bundle publish flavor behavior and setting a default flavor in the tasks tonight and tomorrow morning. Intermittent neuvector deploy is still an issue as they dont actually expose security context in the monitor chart and it sometimes happens to work by continuing past it anyways. Not sure what the immediate fix for this is, but @mjnagel put in a pr to the upstream chart to fix on their side that we can use once it gets added. neuvector/neuvector-helm#355 |
… in the upstream and/or service monitors are in place
…y tests can execute successfully
|
Internal PR between branches, separates upgrade job to different workflow file to avoid skipped jobs on PR display.
…termittent job failures due to registry. consolidate docker login action into setup
@jeff-mccoy here is an example of what we expect the renovate updates to look like more or less. This was in my fork before making the registry1 and upstream values files both have all the image refs rather than relying on it just working in upstream. With the values file changes it will update the upstream-values, registry1-values, and the zarf.yaml images and chart versions in one PR. |
For clarity/transparency we were trying to determine why the fast failure started only working on a click ops cancel and not a job failure in the updated ci. It looks like we have two reasonable options to get it back to that functionality. Option 1:
Option 2: Go back to the previous workflow setup (all calling just the one test workflow) while expanding the matrix. I tested/mocked this in an outdated fork as it was the easiest way to do so and it seems to work, downside is that the actual display of the job names and lack of grouping is a little less readable. The mocked up version of that can be seen here: |
@mjnagel I dug into the matrix functionality a little more. It looks like with a combination of excludes and includes in the matrix definition, relying on order they are processed per the docs seems to work. For example:
Excludes the single upgrade tests and still does both for all while maintaining the fail fast functionality. As you can see in the screenshot, the single upgrades were excluded, install and upgrade test ran for "all" and the failed job short circuited the all the sibling workflows spawned from the matrix config while still failing the pipeline. |
@zachariahmiller I think that makes sense. This slight modification (if it works) would make it a bit simpler I think?
If I read the docs right I think that'll work? May even be able to drop the flavor from the include but feel less confident on that. |
If that works, agreed. As far as dropping flavor, I don't know if it will... With the combo of include and exclude the flavor was required. IIRC exclude worked on partial match, include didn't. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
🤖 I have created a release *beep* *boop* --- ## [0.9.0](v0.8.1...v0.9.0) (2024-01-21) ### Features * add Zarf Flavors to support Iron Bank & upstream images ([#63](#63)) ([232c256](232c256)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [0.9.0](defenseunicorns/uds-core@v0.8.1...v0.9.0) (2024-01-21) ### Features * add Zarf Flavors to support Iron Bank & upstream images ([#63](defenseunicorns/uds-core#63)) ([232c256](defenseunicorns/uds-core@232c256)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Description
Adds zarf flavors for upstream images and IB. Includes refactoring of zarf packages using composability to cleanup the config and keep things dry and refactoring of the values files to image flavors specific + common.
Both flavors deploy successfully on their respective architectures. On arm64 (or at least darwin arm64) when using the registry1(x86) flavor it fails at metrics server regarding the istio init container, which seems to be an issue emulating x86 on mac.
Type of change
Checklist before merging