after every ModuleCRDsEnsure task, the value of CRDsEnsured is checked and the main queue is checked for any other pending ModuleCRDsEnsure task, if both conditions are false, CRDsEnsured is set to true and global values patch is applied to save discovered GVKs to .global.discovery.apiVersion key'
the aforementioned patch is applied only in case a custom ModuleLoader is in use, so as not to break global patches for the vanilla addon-operator;
if a new ModuleCRDsEnsure task is added to the queue (after re-enabling a module, for example), the CRDsEnsured values is set to false and the process repeats.
What this PR does / why we need it
This pr implements the functionality of saving GVK values from discovered CRDs to the .global.discovery.apiVersions key by means of applying a global values patch after all modules' CRDs get applied in the cluster.
It should allow developers to check more precisely and straightforward if required CRs are installed in the cluster.
Overview
.global.discovery.apiVersion
key'What this PR does / why we need it
This pr implements the functionality of saving GVK values from discovered CRDs to the
.global.discovery.apiVersions
key by means of applying a global values patch after all modules' CRDs get applied in the cluster. It should allow developers to check more precisely and straightforward if required CRs are installed in the cluster.Special notes for your reviewer