Skip to content

chore(discovery): replace Endpoints with EndpointSlices#1094

Merged
andrewazores merged 2 commits intocryostatio:mainfrom
andrewazores:endpoint-slices
Jun 12, 2025
Merged

chore(discovery): replace Endpoints with EndpointSlices#1094
andrewazores merged 2 commits intocryostatio:mainfrom
andrewazores:endpoint-slices

Conversation

@andrewazores
Copy link
Member

@andrewazores andrewazores commented Apr 22, 2025

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits: git commit -S -m "YOUR_COMMIT_MESSAGE"

Depends on cryostatio/cryostat#740
See also cryostatio/cryostat-helm#226

Description of the change:

Adjusts RBAC for Cryostat's usage of EndpointSlices in place of the old Endpoints objects.

How to manually test:

  1. for ns in apps cryostat cryostat-operator; do oc new-project $ns; done
  2. make cert_manager
  3. IMAGE_NAMESPACE=quay.io/andrewazores OPERATOR_VERSION=4.1.0-endpointslices-1 DEPLOY_NAMESPACE=cryostat-operator make deploy. This was built with CORE_IMG=quay.io/andrewazores/cryostat:endpointslices-7, which is the corresponding Cryostat PR
  4. oc project cryostat ; TARGET_NAMESPACES=apps make create_cryostat_cr
  5. oc project apps ; make sample_app ; oc scale deployment quarkus-test --replicas=3
  6. Open the Cryostat UI, go to Topology, and ensure that all three replicas are discovered. Try scaling the deployment up/down, or adding another sample app, etc.

I have also built an operator bundle: https://quay.io/repository/andrewazores/cryostat-operator-bundle?tab=tags
(4.1.0-endpointslices-1) and confirmed that make test-scorecard seems to run and pass as expected with these changes. It will not work in PR CI here until the corresponding Cryostat CR is merged and the upstream snapshot image is published, so that the new implementation is tested alongside the updated RBAC.

@andrewazores andrewazores added chore Refactor, rename, cleanup, etc. safe-to-test labels Apr 22, 2025
@andrewazores
Copy link
Member Author

/build_test

@github-actions
Copy link

/build_test : At least one test failed ❌.
View Actions Run.

2 similar comments
@github-actions
Copy link

/build_test : At least one test failed ❌.
View Actions Run.

@github-actions
Copy link

/build_test : At least one test failed ❌.
View Actions Run.

@andrewazores andrewazores marked this pull request as ready for review April 22, 2025 17:38
@andrewazores andrewazores requested a review from ebaron April 22, 2025 17:38
@andrewazores andrewazores requested a review from a team May 14, 2025 15:35
@github-actions
Copy link

This PR/issue depends on:

@andrewazores
Copy link
Member Author

/build_test

@andrewazores
Copy link
Member Author

@github-actions
Copy link

/build_test completed successfully ✅.
View Actions Run.

@andrewazores andrewazores merged commit b1956c7 into cryostatio:main Jun 12, 2025
7 checks passed
@andrewazores andrewazores deleted the endpoint-slices branch June 12, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Refactor, rename, cleanup, etc. safe-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant