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

[FIX] use discovery api instead of reading CRD #147

Merged
merged 3 commits into from
Oct 25, 2024
Merged

Conversation

skrishnan-sap
Copy link
Contributor

@skrishnan-sap skrishnan-sap commented Oct 24, 2024

CHANGES:

  • use discovery API to check existence of ServiceMonitor capability rather than fetching the CustomResourceDefinition
  • remove unused apiextensions typed client
  • adjust tests - common_test enhanced to supply discoverable resources
  • refactor ServiceMonitor reconciliation to reduce complexity (sonar)

Controller image for testing: ghcr.io/skrishnan-sap/cap-operator/controller:sha-444fa21

@skrishnan-sap skrishnan-sap marked this pull request as ready for review October 24, 2024 12:37
@Pavan-SAP

This comment was marked as resolved.

@skrishnan-sap

This comment was marked as resolved.

Pavan-SAP

This comment was marked as resolved.

@Pavan-SAP

This comment was marked as resolved.

Copy link

@skrishnan-sap
Copy link
Contributor Author

updated test image - ghcr.io/skrishnan-sap/cap-operator/controller:sha-444fa21

Copy link
Member

@Pavan-SAP Pavan-SAP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skrishnan-sap skrishnan-sap merged commit 49e0e2e into main Oct 25, 2024
7 checks passed
@skrishnan-sap skrishnan-sap deleted the use-discovery branch October 25, 2024 12:21
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