Skip to content

Commit

Permalink
fix: migration crd no-op (#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalo authored Sep 25, 2024
1 parent 11b8901 commit de98e92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/migration/crd/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ func (c *Controller) Reconcile(ctx context.Context, crd *apiextensionsv1.CustomR
}); !ok && nodeClassGvk.Kind != crd.Spec.Names.Kind {
return reconcile.Result{}, nil
}
if !lo.Contains(crd.Status.StoredVersions, "v1") {
// If v1beta1 is not stored, no-op
if !lo.Contains(crd.Status.StoredVersions, "v1beta1") {
return reconcile.Result{}, nil
}
list := &unstructured.UnstructuredList{}
Expand Down

0 comments on commit de98e92

Please sign in to comment.