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

feat: detect if CRDs for GVRs are present before adding providers for them #53

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Aug 17, 2022

This PR aims to address #41. With this merged, the framework will be able to detect if a CRD for a particular GVR is available in the cluster before adding a provider (in this PR only k8sObjectCount is affected) which would continuously return errors like these:

the server could not find the requested resource

due to resource not having a definition available in the cluster.

@pmalek pmalek added the area/feature New feature or request label Aug 17, 2022
@pmalek pmalek self-assigned this Aug 17, 2022
@pmalek pmalek requested a review from a team as a code owner August 17, 2022 14:17
@pmalek pmalek force-pushed the detect-if-crds-for-GVRs-are-present branch from caa1108 to a7f0e7c Compare August 17, 2022 15:55
pkg/telemetry/manager_test.go Outdated Show resolved Hide resolved
pkg/telemetry/workflowsk8s_test.go Outdated Show resolved Hide resolved
@pmalek pmalek force-pushed the detect-if-crds-for-GVRs-are-present branch from a7f0e7c to d7cca0f Compare August 17, 2022 16:03
@pmalek pmalek requested a review from shaneutt August 17, 2022 16:03
@pmalek pmalek merged commit 35a2a9a into main Aug 17, 2022
@pmalek pmalek deleted the detect-if-crds-for-GVRs-are-present branch August 17, 2022 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

k8sObjectCount: consider detecting what resource versions are available before adding a provider for it.
2 participants