-
Notifications
You must be signed in to change notification settings - Fork 295
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
🌱 Fail startup if no CRDs are detected #2629
🌱 Fail startup if no CRDs are detected #2629
Conversation
/cherry-pick release-1.9 |
@chrischdi: once the present PR merges, I will cherry-pick it on top of release-1.9 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cherry-pick release-1.8 |
@chrischdi: once the present PR merges, I will cherry-pick it on top of release-1.8 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
main.go
Outdated
if err := setupSupervisorControllers(ctx, controllerCtx, mgr, tracker); err != nil { | ||
return fmt.Errorf("setupSupervisorControllers: %w", err) | ||
} | ||
} else { | ||
setupLog.Info(fmt.Sprintf("CRD for %s not loaded, skipping.", gvr.String())) | ||
} | ||
|
||
// Continuing startup does not make sense without having managers added. | ||
if !isSupervisorCRDLoaded && !isNonSupervisorCRDLoaded { | ||
return errors.New("neither supervisor nor non-supervisor CRD detected") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return errors.New("neither supervisor nor non-supervisor CRD detected") | |
return errors.New("neither supervisor nor non-supervisor CRDs detected") |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2629 +/- ##
==========================================
- Coverage 64.83% 64.79% -0.05%
==========================================
Files 118 118
Lines 8580 8580
==========================================
- Hits 5563 5559 -4
- Misses 2588 2592 +4
Partials 429 429 ☔ View full report in Codecov by Sentry. |
/cherry-pick release-1.7 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.7 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
58ac2ac
to
79781ed
Compare
Thx! /lgtm |
LGTM label has been added. Git tree hash: 06c18e38ed78aa76032d9527d2208bf5e65f894b
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@sbueringer: #2629 failed to apply on top of branch "release-1.7":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@chrischdi: new pull request created: #2631 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@chrischdi: #2629 failed to apply on top of branch "release-1.8":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
Makes CAPV fail on startup if no CRD's exist and mode detection won't add any manager.
/assign @sbueringer
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #