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

Use CRDs to detect features in the cluster #1608

Merged
merged 4 commits into from
Nov 3, 2021

Conversation

pavolloffay
Copy link
Member

No description provided.


return apiList, nil
func (b *Background) availableAPIs(_ context.Context) ([]*metav1.APIResourceList, error) {
return b.dcl.ServerPreferredResources()
Copy link
Member Author

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
Copy link

codecov bot commented Nov 3, 2021

Codecov Report

Merging #1608 (f2e139a) into master (9478838) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
pkg/autodetect/main.go 86.62% <100.00%> (-0.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9478838...f2e139a. Read the comment docs.

Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
Signed-off-by: Pavol Loffay <[email protected]>
@rubenvp8510
Copy link
Collaborator

rubenvp8510 commented Nov 3, 2021

Code Looks good, just one question

Why for this particular GroupVersion logging.openshift.io we need to look for elasticsearch kind, and in the others, e.g Kafka, we don't need it?

@pavolloffay
Copy link
Member Author

bc the vanilla OCP cluster already has some Kids in logging.openshift.io.

@pavolloffay pavolloffay merged commit 368c89c into jaegertracing:master Nov 3, 2021
iblancasa pushed a commit to iblancasa/jaeger-operator that referenced this pull request Nov 3, 2021
* 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]>
rubenvp8510 pushed a commit that referenced this pull request Nov 4, 2021
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants