Open h3nryc0ding opened 3 weeks ago
After reviewing cmd/flux/check.go
, I found that while it's possible to provide components as arguments, these arguments don’t appear to be considered during the check execution itself. The specified components are defined but never actually verified within the code logic:
If this is indeed unintended behavior and not by design, I’d be interested in working on a fix for this issue. Please let me know if further investigation is needed or if this could be opened for contribution.
Describe the bug
When using
flux check
, the command does not properly verify the presence of all specified components. This issue occurs when some Flux components are missing but is not detected byflux check
, leading it to incorrectly report success.Steps to reproduce
Bootstrap Flux with the following command:
Run
flux check
:Delete all but one Flux deployment:
Run
flux check
again:✔ all checks passed
.Run
flux check
with specific components:--components
argument.✔ all checks passed
.Expected behavior
After deleting some default components,
flux check
should fail and report missing components. When components are explicitly passed with the--components
argument,flux check
should verify the presence of each specified component and fail if any are absent.Screenshots and recordings
No response
OS / Distro
macOS 14.6.1
Flux version
flux: v2.4.0
Flux check
Git provider
GitHub
Container Registry provider
DockerHub
Additional context
No response
Code of Conduct