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

flux check should error on unrecognised args #4558

Merged
merged 1 commit into from Jan 26, 2024

Conversation

twinguy
Copy link
Contributor

@twinguy twinguy commented Jan 23, 2024

flux cli does not properly detect unexpected argument on flux check command.

@twinguy twinguy force-pushed the detect-bad-args-check-command branch from a0e5610 to 3c15125 Compare January 23, 2024 02:41
@stefanprodan
Copy link
Member

@twinguy can you please rebase

@stefanprodan
Copy link
Member

@twinguy please rebase instead of merge, you need to do it with the git CLI and force push so it's only one commit.

@twinguy twinguy force-pushed the detect-bad-args-check-command branch from e0921a9 to 5ebca77 Compare January 24, 2024 03:55
@twinguy
Copy link
Contributor Author

twinguy commented Jan 24, 2024

@stefanprodan can you please confirm this rebase is correct? If not, I can just close this PR and open a new one since the changes are minor. Thanks!!

Signed-off-by: Kenny Meador <kenny.meador@outlook.com>
@stefanprodan stefanprodan added the backport:release/v2.2.x To be backported to release/v2.2.x label Jan 25, 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

@stefanprodan stefanprodan merged commit cdbad4d into fluxcd:main Jan 26, 2024
8 checks passed
@fluxcdbot
Copy link
Member

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

@twinguy twinguy deleted the detect-bad-args-check-command branch January 26, 2024 14:05
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
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.

None yet

3 participants