operator-controller icon indicating copy to clipboard operation
operator-controller copied to clipboard

E2E tests for different feature gate states

Open m1kola opened this issue 1 year ago • 1 comments

Now that we have this feature gate:

https://github.com/operator-framework/operator-controller/blob/b8f36268517dc39280fe964d131a6e3ff7ac9335/pkg/features/features.go#L19

We should find a way to run E2E in CI with different states of feature gates.


One option is to use kustomze overlays for different configurations (potentially using components). However this means that we need one overlay for every permutation which might become a bit messy.

We can also look into Kubernetes tests and see what is done there and whether we can re-use any tools/code (we use k8s.io/component-base/featuregate package for feature gates, same as Kubernetes).

m1kola avatar Oct 09 '23 15:10 m1kola