quarkus-operator-sdk icon indicating copy to clipboard operation
quarkus-operator-sdk copied to clipboard

feat: add dev services

Open scrocquesel opened this issue 3 years ago • 2 comments

Enable a k8s cluster (api server only, k3s, or kind) when a valid configuration is not found.

This use the k8s testcontainer provided by the amazing work done at https://github.com/dajudge/kindcontainer under the hood.

Support hot reload if the config do not change. Currently, the SDK do some optimisation and do not try to redeploy CRD if not changed. But if the config is changed and dev services needs to restart the container, the operator will not found the CRD anymore upon restart.

Support sharing, a second application in dev mode can reuse the same k8s cluster.

I have changed pingpong and mysqlschema to not use k8s mock server. MysqlSchema no longer needs to fake deletion of the CR.

scrocquesel avatar Sep 25 '22 17:09 scrocquesel

I guess this won't work with Quarkus 2.7…

metacosm avatar Sep 26 '22 13:09 metacosm

I guess this won't work with Quarkus 2.7…

Yes, I moving this PR to Quarkus as it best fit in the kubernetes extension. Will see latter how to have a working sample that can compile with both versions. How long 2.7 will be supported ?

scrocquesel avatar Sep 26 '22 15:09 scrocquesel

I close it as you were faster than me aligning with the 2.15

scrocquesel avatar Dec 16 '22 19:12 scrocquesel

Ah yes, sorry! Thank you so much for contributing that feature in Quarkus, @scrocquesel!

metacosm avatar Dec 17 '22 09:12 metacosm