Skip to content

Commit b0f73af

Browse files
committed
Don't create ClusterOperator during precreation step if it's present in overrides
Using the installer, if a cluster operator is in overrides list, it is still created during the precreation step. When both the cluster operator and the deployment of an operator are overridden, the CVO (and the installer) waits for ever the end of the end of the provisioning.
1 parent dc6f4f0 commit b0f73af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/cvo/sync_worker.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,11 @@ func (w *SyncWorker) apply(ctx context.Context, payloadUpdate *payload.Update, w
678678
if task.Manifest.GVK != configv1.SchemeGroupVersion.WithKind("ClusterOperator") {
679679
continue
680680
}
681+
ov, ok := getOverrideForManifest(work.Overrides, task.Manifest)
682+
if ok && ov.Unmanaged {
683+
klog.V(4).Infof("Skipping precreation of %s as unmanaged", task)
684+
continue
685+
}
681686
if err := w.builder.Apply(ctx, task.Manifest, payload.PrecreatingPayload); err != nil {
682687
klog.V(2).Infof("Unable to precreate resource %s: %v", task, err)
683688
continue

0 commit comments

Comments
 (0)