-
Notifications
You must be signed in to change notification settings - Fork 10
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(discovery): port kubeApi discovery to v3 #325
Conversation
8fe2722
to
d339c5a
Compare
In 2.4, the NAMESPACES env var was expected to be simply a comma-separated list of namespaces that Cryostat should try to set up an informer for. If the env var was not set then it would default to an empty list - no discovery. I think in 3.0 we want to preserve that same behaviour, however with one addition: a special character that signifies "your own namespace", as in the namespace that the Cryostat Pod is running within. I suggest |
b377af3
to
7d48118
Compare
Oh thank you! This behaviour with |
Sure, I think for the individual Cryostat container level it makes sense to default to empty lists there. We can apply default values in the Helm chart, in Operator CRs, and maybe also in Operator default webhooks. |
19daf77
to
bd4ad8e
Compare
4d97568
to
e3686da
Compare
/build_test |
Workflow started at 4/24/2024, 2:05:13 PM. View Actions Run. |
No OpenAPI schema changes detected. |
No GraphQL schema changes detected. |
CI build and push: At least one test failed ❌ (JDK17) |
/build_test |
Workflow started at 4/24/2024, 2:25:51 PM. View Actions Run. |
No GraphQL schema changes detected. |
No OpenAPI schema changes detected. |
CI build and push: All tests pass ✅ (JDK17) |
Phew tests failure and spotbugs errors are fixed now^^ I did manual tests with container, jdp and custom discovery as this PR also affects them. They are all fine. |
Welcome to Cryostat3! 👋
Before contributing, make sure you have:
main
branch[chore, ci, docs, feat, fix, test]
To recreate commits with GPG signature
git fetch upstream && git rebase --force --gpg-sign upstream/main
Fixes: #238
Description of the change:
Port KubeDiscoveryAPI from v2 to v3.
Motivation for the change:
See #238
How to manually test:
Build the application and push to quay.io:
Install the application with Helm Chart (cryostatio/cryostat-helm#128):
Deploy/Scale/Teardown sample applications: