-
Notifications
You must be signed in to change notification settings - Fork 32
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
🌱 Revert "🐛 Check cluster is running for non-standalone Make targets (#… #465
Conversation
)" This reverts commit b30eb4a.
HI @joelanford
Not because. As far as I can see, the check is wrong and not helpful for anything. Do you see any reason to keep it? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #465 +/- ##
=======================================
Coverage 38.23% 38.23%
=======================================
Files 15 15
Lines 1224 1224
=======================================
Hits 468 468
Misses 706 706
Partials 50 50 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
The check didn't fail AND reason it's needed: The other targets that are calling this, they fail cryptically if there is no cluster available. Check the original PR for example. With this check you can at least get a nice error when those targets don't find the cluster they expect. |
no noise, only makes noise if cluster not found. |
Hi @bentito
So, is the cluster not found in our e2e tests? |
Something is not right with the check - that is for sure. I currently do not have a cluster and the check returns 0 exit code (example below). Also I agree that this would not be showing up in CI from the example above.
|
Yeah seem like the logic got borked somewhere along the way: #466 fixes it: with that change it looks like this: catalogd main $ make check-cluster
catalogd main $ kind delete clusters catalogd
Deleted nodes: ["catalogd-control-plane"]
Deleted clusters: ["catalogd"]
catalogd main $ make check-cluster
Error: Could not get current Kubernetes context. Maybe use 'run' or 'e2e' targets first?
make: *** [check-cluster] Error 1 |
Hi @bentito Why do we need this check in the first place? |
anyway #466 was merged so I will close this one |
Reverts #437
If we see the logs https://github.com/operator-framework/catalogd/actions/runs/11819448861/job/32929383546 (ci job of PR where the change was introduced), we can see that this check is wrong and is always failing:
PS.: I don't think there's a need for this check. Proof of that is that besides it does not work, nothing changed. Therefore, I do not see value in this one.
Instead, I would prefer the targets of this project to be as similar as possible to those of https://github.com/operator-framework/operator-controller so that life for us contributors is easier.