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

feat: show overrides for deployers #674

Merged
merged 35 commits into from
Jul 2, 2024
Merged

feat: show overrides for deployers #674

merged 35 commits into from
Jul 2, 2024

Conversation

TristanHoladay
Copy link
Collaborator

Description

Adds user friendly path and view for discovering configurable overrides when deploying a bundle.

Related Issue

Relates to #655

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

@TristanHoladay TristanHoladay marked this pull request as ready for review June 24, 2024 19:53
@TristanHoladay
Copy link
Collaborator Author

TristanHoladay commented Jun 25, 2024

pre-deploy view:
Screenshot from 2024-06-26 21-05-56

uds inspect --list-variables ... :
Screenshot from 2024-06-24 20-45-08

src/pkg/bundle/deploy.go Outdated Show resolved Hide resolved
src/pkg/bundle/deploy.go Outdated Show resolved Hide resolved
src/pkg/bundle/deploy.go Outdated Show resolved Hide resolved
src/pkg/bundle/deploy.go Outdated Show resolved Hide resolved
src/pkg/bundle/deploy.go Outdated Show resolved Hide resolved
src/pkg/bundle/deploy.go Outdated Show resolved Hide resolved
decleaver
decleaver previously approved these changes Jul 2, 2024
Copy link
Collaborator

@decleaver decleaver left a comment

Choose a reason for hiding this comment

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

good stuff! appreciate the updates

@UncleGedd UncleGedd self-requested a review July 2, 2024 13:39
Copy link
Collaborator

@UncleGedd UncleGedd left a comment

Choose a reason for hiding this comment

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

Love the changes to filterOverrides (now removeOverides). I think we still have the issue of that not being a pure function. When we pass in loadedVariables and modify it, we're modifying the underlying map, which is eventually passed to deploy. Hard to tell if there's actually a bug here, but IMO it's unexpected behavior. Here's a small example showing what I mean: https://go.dev/play/p/bc0uUlOK3o0

Let's go over the rest this morning

src/pkg/bundle/deploy.go Outdated Show resolved Hide resolved
@UncleGedd UncleGedd self-requested a review July 2, 2024 17:04
@UncleGedd UncleGedd requested a review from decleaver July 2, 2024 17:05
Copy link
Collaborator

@decleaver decleaver left a comment

Choose a reason for hiding this comment

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

👍

@UncleGedd UncleGedd merged commit 1933d60 into main Jul 2, 2024
15 checks passed
@UncleGedd UncleGedd deleted the feat-view-overrides branch July 2, 2024 17:06
mjnagel referenced this pull request in defenseunicorns/uds-core Jul 24, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[defenseunicorns/uds-cli](https://togithub.com/defenseunicorns/uds-cli)
| minor | `0.12.0` -> `0.13.1` |
|
[defenseunicorns/uds-cli](https://togithub.com/defenseunicorns/uds-cli)
| minor | `v0.12.0` -> `v0.13.1` |

---

### Release Notes

<details>
<summary>defenseunicorns/uds-cli (defenseunicorns/uds-cli)</summary>

###
[`v0.13.1`](https://togithub.com/defenseunicorns/uds-cli/releases/tag/v0.13.1)

[Compare
Source](https://togithub.com/defenseunicorns/uds-cli/compare/v0.13.0...v0.13.1)

#### What's Changed

- fix: nightly release typo and add checksums by
[@&#8203;UncleGedd](https://togithub.com/UncleGedd) in
[https://github.com/defenseunicorns/uds-cli/pull/828](https://togithub.com/defenseunicorns/uds-cli/pull/828)
- fix: split override envs properly by
[@&#8203;mjnagel](https://togithub.com/mjnagel) in
[https://github.com/defenseunicorns/uds-cli/pull/829](https://togithub.com/defenseunicorns/uds-cli/pull/829)

**Full Changelog**:
defenseunicorns/uds-cli@nightly-unstable...v0.13.1

###
[`v0.13.0`](https://togithub.com/defenseunicorns/uds-cli/releases/tag/v0.13.0)

[Compare
Source](https://togithub.com/defenseunicorns/uds-cli/compare/v0.12.0...v0.13.0)

##### What's Changed

- chore(deps): update github/codeql-action action to v3.25.11 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/744](https://togithub.com/defenseunicorns/uds-cli/pull/744)
- chore(deps): update actions/create-github-app-token action to v1.10.3
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/747](https://togithub.com/defenseunicorns/uds-cli/pull/747)
- chore(deps): update module github.com/prometheus/common to v0.55.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/666](https://togithub.com/defenseunicorns/uds-cli/pull/666)
- chore(deps): update homebrew/actions digest to
[`c9f08ac`](https://togithub.com/defenseunicorns/uds-cli/commit/c9f08ac)
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/746](https://togithub.com/defenseunicorns/uds-cli/pull/746)
- fix(deps): update module github.com/charmbracelet/lipgloss to v0.11.0
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/712](https://togithub.com/defenseunicorns/uds-cli/pull/712)
- chore: add schema validation docs by
[@&#8203;UncleGedd](https://togithub.com/UncleGedd) in
[https://github.com/defenseunicorns/uds-cli/pull/748](https://togithub.com/defenseunicorns/uds-cli/pull/748)
- feat: show overrides for deployers by
[@&#8203;TristanHoladay](https://togithub.com/TristanHoladay) in
[https://github.com/defenseunicorns/uds-cli/pull/674](https://togithub.com/defenseunicorns/uds-cli/pull/674)
- chore: adds an ADR for bundle OCI media types by
[@&#8203;UncleGedd](https://togithub.com/UncleGedd) in
[https://github.com/defenseunicorns/uds-cli/pull/750](https://togithub.com/defenseunicorns/uds-cli/pull/750)
- fix: make dev deploy help msg better by
[@&#8203;UncleGedd](https://togithub.com/UncleGedd) in
[https://github.com/defenseunicorns/uds-cli/pull/756](https://togithub.com/defenseunicorns/uds-cli/pull/756)
- chore: caching refactor by
[@&#8203;decleaver](https://togithub.com/decleaver) in
[https://github.com/defenseunicorns/uds-cli/pull/751](https://togithub.com/defenseunicorns/uds-cli/pull/751)
- feat: make runner output prettier in CI by
[@&#8203;UncleGedd](https://togithub.com/UncleGedd) in
[https://github.com/defenseunicorns/uds-cli/pull/758](https://togithub.com/defenseunicorns/uds-cli/pull/758)
- chore: refactor overrides by
[@&#8203;TristanHoladay](https://togithub.com/TristanHoladay) in
[https://github.com/defenseunicorns/uds-cli/pull/753](https://togithub.com/defenseunicorns/uds-cli/pull/753)
- chore(deps): update actions/download-artifact action to v4.1.8 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/764](https://togithub.com/defenseunicorns/uds-cli/pull/764)
- feat: name and version flags on create + generates CLI docs by
[@&#8203;UncleGedd](https://togithub.com/UncleGedd) in
[https://github.com/defenseunicorns/uds-cli/pull/768](https://togithub.com/defenseunicorns/uds-cli/pull/768)
- chore(deps): update actions/setup-node action to v4.0.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/769](https://togithub.com/defenseunicorns/uds-cli/pull/769)
- chore(deps): update anchore/sbom-action action to v0.16.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/771](https://togithub.com/defenseunicorns/uds-cli/pull/771)
- chore(deps): update docker/setup-buildx-action action to v3.4.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/762](https://togithub.com/defenseunicorns/uds-cli/pull/762)
- fix(deps): update module golang.org/x/mod to v0.19.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/763](https://togithub.com/defenseunicorns/uds-cli/pull/763)
- chore(deps): update actions/upload-artifact action to v4.3.4 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/765](https://togithub.com/defenseunicorns/uds-cli/pull/765)
- chore: ensure stdout for inspect \[FLAGS] by
[@&#8203;TristanHoladay](https://togithub.com/TristanHoladay) in
[https://github.com/defenseunicorns/uds-cli/pull/759](https://togithub.com/defenseunicorns/uds-cli/pull/759)
- fix(deps): update module github.com/charmbracelet/lipgloss to v0.11.1
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/774](https://togithub.com/defenseunicorns/uds-cli/pull/774)
- chore(deps): update actions/setup-go action to v5.0.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/773](https://togithub.com/defenseunicorns/uds-cli/pull/773)
- chore(deps): update actions/dependency-review-action action to v4.3.4
by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/779](https://togithub.com/defenseunicorns/uds-cli/pull/779)
- chore(deps): update github/codeql-action action to v3.25.12 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/781](https://togithub.com/defenseunicorns/uds-cli/pull/781)
- chore: more overrides refactors by
[@&#8203;TristanHoladay](https://togithub.com/TristanHoladay) in
[https://github.com/defenseunicorns/uds-cli/pull/761](https://togithub.com/defenseunicorns/uds-cli/pull/761)
- feat: upgrade Maru to 0.2.2 by
[@&#8203;UncleGedd](https://togithub.com/UncleGedd) in
[https://github.com/defenseunicorns/uds-cli/pull/783](https://togithub.com/defenseunicorns/uds-cli/pull/783)
- chore(deps): update zarf to v0.36.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/defenseunicorns/uds-cli/pull/777](https://togithub.com/defenseunicorns/uds-cli/pull/777)
- fix: task schema generation using maru and removing runner tests by
[@&#8203;decleaver](https://togithub.com/decleaver) in
[https://github.com/defenseunicorns/uds-cli/pull/778](https://togithub.com/defenseunicorns/uds-cli/pull/778)

**Full Changelog**:
defenseunicorns/uds-cli@v0.12.0...v0.13.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/defenseunicorns/uds-core).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Micah Nagel <micah.nagel@defenseunicorns.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.

3 participants