Closed m1kola closed 4 days ago
It looks like this is related to https://github.com/operator-framework/operator-controller/pull/846#discussion_r1604734413:
2. If we do need it - as far as I see we only set this condition to
False
in case of an error fromr.Storage.Load(ctx, ext)
and never set it toTrue
.
It looks like something is wrong with
ClusterExtension
'sHasValidBundle
condition. I noticed that in this test: https://github.com/operator-framework/operator-controller/blob/cab41aaa6764f9413a58d52efe80dca9b8bdf651/test/e2e/cluster_extension_install_test.go#L82-L94HasValidBundle
reportsFalse
with the following message while other conditions such asResolved
,Installed
andUnpacked
are all reportTrue
:This can be reproduced by adding
spew.Dump(clusterExtension.Status.Conditions)
before this line:https://github.com/operator-framework/operator-controller/blob/cab41aaa6764f9413a58d52efe80dca9b8bdf651/test/e2e/cluster_extension_install_test.go#L85
You should see something like this:
Alternatively, modify the test with the following patch (apply on top of
main
which is currently at cab41aaa6764f9413a58d52efe80dca9b8bdf651):