operator-framework / operator-controller

A new and improved management framework for extending Kubernetes with Operators
https://operator-framework.github.io/operator-controller/
Apache License 2.0
46 stars 52 forks source link

(rough sketch dumps) Follow ups from catalogd-integration #187

Closed anik120 closed 3 months ago

anik120 commented 1 year ago
joelanford commented 1 year ago

For any test that requires access to images hosted in an image registry, set up test suite to configure a local registry and use that registry for tests instead of reaching out to remote registry.

For the vast majority of these tests, I would much prefer to see this be "build image, kind load image, use imagePullPolicy IfNotPresent". This means there's no need for an actual image registry.

joelanford commented 1 year ago

Eventually blocks can return error instead of taking in Gomega object in it's function signature.

AFAIK, they can return anything. And then you can assert on whatever is returned.

anik120 commented 1 year ago

For any test that requires access to images hosted in an image registry, set up test suite to configure a local registry and use that registry for tests instead of reaching out to remote registry.

For the vast majority of these tests, I would much prefer to see this be "build image, kind load image, use imagePullPolicy IfNotPresent". This means there's no need for an actual image registry.

That works too. But that also means we'll have to figure out how we can give access to the test clusters' context to the test suite, etc

joelanford commented 1 year ago

That works too. But that also means we'll have to figure out how we can give access to the test clusters' context to the test suite, etc

We've got this setup working in the rukpak repo. It takes some effort, but once its setup it works really well.

joelanford commented 1 year ago

Another potential follow-on: https://github.com/operator-framework/operator-controller/pull/182/files#r1178493885

varshaprasad96 commented 1 year ago

Another potential follow-on: https://github.com/operator-framework/operator-controller/pull/182/files#r1178493885

We probably may have to refactor this in a different way if this gets in (if that's what we want to eventually do). cc: @perdasilva