-
Notifications
You must be signed in to change notification settings - Fork 349
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
Use CRDs to detect features in the cluster #1608
Conversation
|
||
return apiList, nil | ||
func (b *Background) availableAPIs(_ context.Context) ([]*metav1.APIResourceList, error) { | ||
return b.dcl.ServerPreferredResources() |
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.
b.dcl.ServerGroups()
returns only the API groups and for instance logging.openshift.io
has multiple kinds: elasticsearch
, kibana
... Hence we should enable ES provisioning only if the elasticsearch
kind is in the cluster.
Codecov Report
@@ Coverage Diff @@
## master #1608 +/- ##
==========================================
- Coverage 87.61% 87.60% -0.01%
==========================================
Files 95 95
Lines 5968 5964 -4
==========================================
- Hits 5229 5225 -4
Misses 562 562
Partials 177 177
Continue to review full report at Codecov.
|
Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
Code Looks good, just one question Why for this particular GroupVersion |
bc the vanilla OCP cluster already has some Kids in |
* Use CRDs to detect features in the cluster Signed-off-by: Pavol Loffay <[email protected]> * Revert Signed-off-by: Pavol Loffay <[email protected]> * Revert Signed-off-by: Pavol Loffay <[email protected]> * Revert Signed-off-by: Pavol Loffay <[email protected]> Signed-off-by: Israel Blancas <[email protected]>
* Merge stash Signed-off-by: Israel Blancas <[email protected]> * Add spark ES E2E test to KUTTL Signed-off-by: Israel Blancas <[email protected]> * Add simple ES prod test to KUTTL Signed-off-by: Israel Blancas <[email protected]> * Add makefile changes Signed-off-by: Israel Blancas <[email protected]> * FFirst version of the ES index cleaner test Signed-off-by: Israel Blancas <[email protected]> * Index cleaner tests migrated to KUTTL Signed-off-by: Israel Blancas <[email protected]> * Small refactor Signed-off-by: Israel Blancas <[email protected]> * Make ServiceMonitor creation optional (#1323) Signed-off-by: Igor Wiedler <[email protected]> Co-authored-by: Juraci Paixão Kröhling <[email protected]> Signed-off-by: Israel Blancas <[email protected]> * Use CRDs to detect features in the cluster (#1608) * Use CRDs to detect features in the cluster Signed-off-by: Pavol Loffay <[email protected]> * Revert Signed-off-by: Pavol Loffay <[email protected]> * Revert Signed-off-by: Pavol Loffay <[email protected]> * Revert Signed-off-by: Pavol Loffay <[email protected]> Signed-off-by: Israel Blancas <[email protected]> * Apply changes suggested in CR Signed-off-by: Israel Blancas <[email protected]> Co-authored-by: Igor <[email protected]> Co-authored-by: Juraci Paixão Kröhling <[email protected]> Co-authored-by: Pavol Loffay <[email protected]>
No description provided.