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: better error message on helm fail #2914

Merged
merged 7 commits into from
Aug 22, 2024
Merged

Conversation

AustinAbro321
Copy link
Contributor

Description

In a recent change, we stopped giving the helm install error as a warning to users.

I considered keeping it a warning or appending it to the other errors. The warning looked nicer, but only because newlines look weird with how are error messages are formatted in pterm. Changed the error message to be paragraphed and went with that.
warning:
warning-zarf-helm
error:
all-error
error (paragraph formatting):
image

Related Issue

Fixes: #2907

Checklist before merging

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@AustinAbro321 AustinAbro321 requested review from a team as code owners August 21, 2024 15:38
Copy link

netlify bot commented Aug 21, 2024

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 3e8ce90
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/66c7701d35d6ed0008d98416

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@AustinAbro321 AustinAbro321 changed the title feat: warn on helm fail feat: better error message on helm fail Aug 21, 2024
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Files Patch % Lines
src/internal/packager/helm/chart.go 0.00% 5 Missing ⚠️
src/cmd/root.go 0.00% 2 Missing ⚠️
Files Coverage Δ
src/cmd/root.go 0.00% <0.00%> (ø)
src/internal/packager/helm/chart.go 14.41% <0.00%> (-0.07%) ⬇️

schristoff
schristoff previously approved these changes Aug 21, 2024
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
@schristoff schristoff added this pull request to the merge queue Aug 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 22, 2024
@AustinAbro321 AustinAbro321 added this pull request to the merge queue Aug 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 22, 2024
@AustinAbro321 AustinAbro321 added this pull request to the merge queue Aug 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 22, 2024
@AustinAbro321 AustinAbro321 added this pull request to the merge queue Aug 22, 2024
Merged via the queue into main with commit e90d5c8 Aug 22, 2024
27 checks passed
@AustinAbro321 AustinAbro321 deleted the warn-on-helm-fail branch August 22, 2024 17:51
mjnagel pushed a commit to defenseunicorns/uds-core that referenced this pull request Aug 23, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| ghcr.io/zarf-dev/packages/init | patch | `v0.38.2` -> `v0.38.3` |
| [zarf-dev/zarf](https://github.com/zarf-dev/zarf) | patch |
`v0.38.2` -> `v0.38.3` |

---

### Release Notes

<details>
<summary>zarf-dev/zarf (zarf-dev/zarf)</summary>

### [`v0.38.3`](https://github.com/zarf-dev/zarf/releases/tag/v0.38.3)

[Compare
Source](https://github.com/zarf-dev/zarf/compare/v0.38.2...v0.38.3)

#### What's Changed

- fix: linter warnings in new Golang CI version by
[@&#8203;phillebaba](https://github.com/phillebaba) in
[zarf-dev/zarf#2883
- chore(deps): bump github.com/go-git/go-git/v5 from 5.11.0 to 5.12.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[zarf-dev/zarf#2871
- chore(deps): bump github/codeql-action from 3.26.0 to 3.26.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[zarf-dev/zarf#2881
- test: move oci compose tests that don't need cluster by
[@&#8203;AustinAbro321](https://github.com/AustinAbro321) in
[zarf-dev/zarf#2878
- chore(deps): bump github.com/mikefarah/yq/v4 from 4.44.2 to 4.44.3 by
[@&#8203;dependabot](https://github.com/dependabot) in
[zarf-dev/zarf#2870
- refactor: findImages to return errors immediately by
[@&#8203;phillebaba](https://github.com/phillebaba) in
[zarf-dev/zarf#2851
- test: add workflow to make sure importing Zarf works by
[@&#8203;phillebaba](https://github.com/phillebaba) in
[zarf-dev/zarf#2874
- refactor: remove unnecessary retry logic from data injection by
[@&#8203;phillebaba](https://github.com/phillebaba) in
[zarf-dev/zarf#2867
- docs: explain no wait & helm hooks interaction by
[@&#8203;AustinAbro321](https://github.com/AustinAbro321) in
[zarf-dev/zarf#2895
- refactor: store managed secrets and add tests by
[@&#8203;phillebaba](https://github.com/phillebaba) in
[zarf-dev/zarf#2892
- chore(deps): bump github/codeql-action from 3.26.1 to 3.26.2 by
[@&#8203;dependabot](https://github.com/dependabot) in
[zarf-dev/zarf#2888
- chore(deps): bump actions/setup-go from 5.0.0 to 5.0.2 by
[@&#8203;dependabot](https://github.com/dependabot) in
[zarf-dev/zarf#2901
- fix: update injector by
[@&#8203;AustinAbro321](https://github.com/AustinAbro321) in
[zarf-dev/zarf#2910
- chore(deps): bump github/codeql-action from 3.26.2 to 3.26.4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[zarf-dev/zarf#2916
- fix: update creds not breaking when internal git server not deployed
by [@&#8203;AustinAbro321](https://github.com/AustinAbro321) in
[zarf-dev/zarf#2904
- feat: better error message on helm fail by
[@&#8203;AustinAbro321](https://github.com/AustinAbro321) in
[zarf-dev/zarf#2914
- ci: increase lint timeout by
[@&#8203;AustinAbro321](https://github.com/AustinAbro321) in
[zarf-dev/zarf#2919
- fix: evaulate templates on schema check by
[@&#8203;AustinAbro321](https://github.com/AustinAbro321) in
[zarf-dev/zarf#2911
- chore: update workflow to use new key by
[@&#8203;AustinAbro321](https://github.com/AustinAbro321) in
[zarf-dev/zarf#2920
- ci: permission at job level by
[@&#8203;AustinAbro321](https://github.com/AustinAbro321) in
[zarf-dev/zarf#2922

**Full Changelog**:
zarf-dev/zarf@v0.38.2...v0.38.3

</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:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@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.

Warnings are suppressed in v0.38.2
2 participants