Operator Testing #979
aslakknutsen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dump
Another issue with that is that each Operator v might come with CRD changes.. and CRD is definatly Global state and can only exist once.
I had some ideas around uniqe crd names for our own testing but never tried it. essentially making a crd + sha type name
then we can have multiple operator versions operating on different crd versions etc in the same cluster at once.. but it requires special coding all over. both on operator side and client side
It would have to be a build thing.. and a crd template thing as well
You'd have to change this https://github.com/maistra/istio-workspace/blob/master/config/crd/bases/workspace.maistra.io_sessions.yaml#L12
and every where that's referenced
https://github.com/maistra/istio-workspace/blob/master/controllers/session/session_controller.go#L123
and https://github.com/maistra/istio-workspace/blob/master/controllers/session/session_controller.go#L162-L173 ?
The last part there might be doable to get done on gen level and not source level. Maybe theres a hook or something somewhere where we could have it translate Session to Session+X
Beta Was this translation helpful? Give feedback.
All reactions