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

Properly detect unexpected arguments during uninstall #4553

Merged
merged 1 commit into from Jan 22, 2024

Conversation

twinguy
Copy link
Contributor

@twinguy twinguy commented Jan 21, 2024

This PR fixes #4551.

Let me know if you believe any test cases are needed (similar to install.go) and I can add them.

Signed-off-by: Kenny Meador <kenny.meador@outlook.com>
@twinguy
Copy link
Contributor Author

twinguy commented Jan 21, 2024

Fixes #4551

@stefanprodan stefanprodan added the area/install Install and uninstall related issues and pull requests label Jan 22, 2024
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @twinguy

@stefanprodan stefanprodan added the backport:release/v2.2.x To be backported to release/v2.2.x label Jan 22, 2024
@stefanprodan stefanprodan merged commit 09b157d into fluxcd:main Jan 22, 2024
9 checks passed
@fluxcdbot
Copy link
Member

Successfully created backport PR for release/v2.2.x:

@stefanprodan
Copy link
Member

@twinguy could you please open a PR for doing the same for flux check and flux stats?

nrdufour added a commit to nrdufour/home-ops that referenced this pull request Feb 7, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [fluxcd/flux2](https://github.com/fluxcd/flux2) | Kustomization | patch | `v2.2.2` -> `v2.2.3` |

---

### Release Notes

<details>
<summary>fluxcd/flux2 (fluxcd/flux2)</summary>

### [`v2.2.3`](https://github.com/fluxcd/flux2/releases/tag/v2.2.3)

[Compare Source](fluxcd/flux2@v2.2.2...v2.2.3)

#### Highlights

Flux v2.2.3 is a patch release which comes with various fixes and improvements. Users are encouraged to upgrade for the best experience.

:bulb: For upgrading to Flux v2.2, please see [the procedure documented in 2.2.0](https://github.com/fluxcd/flux2/releases/tag/v2.0.0).

This release updates the Kubernetes dependencies to v1.28.6 and various other dependencies to their latest version to patch upstream CVEs.

All controllers are built with Go 1.21.6 using Alpine Linux 3.19.1 base image.

> \[!NOTE]
> Due to breaking changes in [Helm v3.14.0](https://github.com/helm/helm/releases/tag/v3.14.0), the helm-controller version included in this patch release comes with Helm SDK v3.13.3.
> A preview build of the helm-controller with the latest Helm SDK is available at [helm-controller#879](fluxcd/helm-controller#879).

Fixes:

-   Reconciling empty directories and directories without Kubernetes manifests no longer results in an error. This regressing bug was introduced with the kustomize-controller upgrade to Kustomize v5.3 and has been fixed in this patch release.
-   The regression due to which `Roles` and `ClusterRoles` with aggregated roles were continuous reconciled by kustomize-controller has been fixed.
-   Fix the Git revision displaying when notification-controller sends alerts to Grafana.
-   The HelmRelease status reporting has been improved by ensuring that the stale failure conditions get updated after failure recovery.

See the components changelog for a full list of bug fixes.

#### Components changelog

-   source-controller [v1.2.4](https://github.com/fluxcd/source-controller/blob/v1.2.4/CHANGELOG.md)
-   kustomize-controller [v1.2.2](https://github.com/fluxcd/kustomize-controller/blob/v1.2.2/CHANGELOG.md)
-   notification-controller [v1.2.4](https://github.com/fluxcd/notification-controller/blob/v1.2.4/CHANGELOG.md)
-   helm-controller [v0.37.4](https://github.com/fluxcd/helm-controller/blob/v0.37.4/CHANGELOG.md)
-   image-reflector-controller [v0.31.2](https://github.com/fluxcd/image-reflector-controller/blob/v0.31.2/CHANGELOG.md)
-   image-automation-controller [v0.37.1](https://github.com/fluxcd/image-automation-controller/blob/v0.37.1/CHANGELOG.md)

#### CLI Changelog

-   PR [#&#8203;4589](fluxcd/flux2#4589) - [@&#8203;stefanprodan](https://github.com/stefanprodan) - Update dependencies
-   PR [#&#8203;4585](fluxcd/flux2#4585) - [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump the ci group with 3 updates
-   PR [#&#8203;4583](fluxcd/flux2#4583) - [@&#8203;fluxcdbot](https://github.com/fluxcdbot) - Update toolkit components
-   PR [#&#8203;4575](fluxcd/flux2#4575) - [@&#8203;stefanprodan](https://github.com/stefanprodan) - Update dependencies to Kubernetes v1.28.6
-   PR [#&#8203;4573](fluxcd/flux2#4573) - [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump the ci group with 5 updates
-   PR [#&#8203;4558](fluxcd/flux2#4558) - [@&#8203;twinguy](https://github.com/twinguy) - `flux check` should error on unrecognised args
-   PR [#&#8203;4557](fluxcd/flux2#4557) - [@&#8203;twinguy](https://github.com/twinguy) - `flux stats` should error on unrecognised args
-   PR [#&#8203;4554](fluxcd/flux2#4554) - [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump the ci group with 3 updates
-   PR [#&#8203;4553](fluxcd/flux2#4553) - [@&#8203;twinguy](https://github.com/twinguy) - Properly detect unexpected arguments during uninstall
-   PR [#&#8203;4535](fluxcd/flux2#4535) - [@&#8203;dependabot](https://github.com/dependabot)\[bot] - build(deps): bump github.com/cloudflare/circl from 1.3.6 to 1.3.7
-   PR [#&#8203;4533](fluxcd/flux2#4533) - [@&#8203;darkowlzz](https://github.com/darkowlzz) - tests/int: Add separate resource cleanup step

</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 this update again.

---

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

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: https://git.home/nrdufour/home-ops/pulls/364
Co-authored-by: Renovate <renovate@ptinem.io>
Co-committed-by: Renovate <renovate@ptinem.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/install Install and uninstall related issues and pull requests backport:release/v2.2.x To be backported to release/v2.2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flux uninstall should error on unrecognised args
3 participants