Skip to content

Commit 16dc10d

Browse files
committed
tiny changes
Signed-off-by: Marco Ma <qingjin_ma@163.com>
1 parent 1937f1a commit 16dc10d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/util/controller_finder.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,13 @@ func (r *ControllerFinder) getDeployment(namespace string, ref *rolloutv1beta1.O
408408

409409
func (r *ControllerFinder) getStatefulSetLikeWorkload(namespace string, ref *rolloutv1beta1.ObjectRef) (*Workload, error) {
410410
ok, _ := verifyGroupKind(ref, ControllerKindSts.Kind, []string{ControllerKindSts.Group})
411+
if !ok {
412+
ok, _ = verifyGroupKind(ref, ControllerKruiseKindSts.Kind, []string{ControllerKruiseKindSts.Group, ControllerKruiseOldKindSts.Group})
413+
}
414+
if !ok {
415+
ok, _ = verifyGroupKind(ref, ControllerKruiseOldKindSts.Kind, []string{ControllerKruiseOldKindSts.Group})
416+
}
417+
411418
if !ok {
412419
return nil, nil
413420
}

0 commit comments

Comments
 (0)