Support for operator running outside of roxie control#13
Conversation
porridge
left a comment
There was a problem hiding this comment.
What do image overlays have to do with deployOperator?
|
This PR is supposed to allow the following flow: So, roxie can do the following: It will simply always specify the image refs using overlays. In the usual case, this will be a no-op, because the image refs in the overlays are exactly what the operator would deploy anyway, in case running operator version == to be deployed version, specified with |
…yed or if the operator is managed outside of roxie
…e operator defaults. For supporting the use-case, where you run the operator using `make -C operator run` but still want roxie to deploy.
624e483 to
62af804
Compare
porridge
left a comment
There was a problem hiding this comment.
What about scanner v2?
I'm not sure enumerating every container and image is a good idea:
- the list of deployed deployments may differ between invocations depending on the CR settings (?)
- not very sustainable in the long term..
|
Scanner v2 uses different tags. |
I think there is no other way than listing all images which use the main image tag. This is done also in the operator of the "related images" pinning. |
|
Regarding:
True, that's why I am marking the overlays as optional. They just need to cover all image refs which contain a main image tag. |
porridge
left a comment
There was a problem hiding this comment.
LGTM modulo two nits inline
|
@porridge Dunno, if you would like to review again, I can also just continue with merging. |
porridge
left a comment
There was a problem hiding this comment.
One thing that worries me is that we are coupling roxie to the exact list of containers in ACS... Maybe this is a case for https://issues.redhat.com/browse/ROX-26566
True. I just think that the pros of this PR clearly outweigh the cons (maintaining the container list). It makes it so convenient during development & testing to be able to run the operator locally and still be able to deploy ACS using that operator without any further hassle. |
Looks like @porridge was right with this concern, and I guess using I have a PR where I am removing |
e.g., for letting the engineer use
make -C operator/ runfor quick testing of operator code without waiting for operator images.Manual testing
I am using this command
for retrieving image-per-container listings. I am running the operator locally from a dirty tag with no published images corresponding to it.
(scanner v2 on the central side is just very slow to come up... I checked the scanner-db logs, it is executing the psql initialization -> correct image.)
For
acs-central:For
acs-sensor: