Skip to content

Commit 2438f53

Browse files
authored
Skip no-op operators when retrieving operator status (#2444)
Signed-off-by: Daniel Fan <yuchen.fan@ibm.com>
1 parent ac1c51c commit 2438f53

File tree

1 file changed

+1
-1
lines changed
  • internal/controller/bootstrap

1 file changed

+1
-1
lines changed

internal/controller/bootstrap/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ func (b *Bootstrap) CheckSubOperatorStatus(instance *apiv3.CommonService) (bool,
22382238

22392239
func (b *Bootstrap) GetOperatorInfo(optList []odlm.Operator, optName string) (*odlm.Operator, error) {
22402240
for _, opt := range optList {
2241-
if opt.Name == optName {
2241+
if opt.Name == optName && opt.InstallMode != "no-op" { // If the operator is no-op mode, skip it
22422242
return &opt, nil
22432243
}
22442244
}

0 commit comments

Comments
 (0)