Skip to content

Commit d1c7468

Browse files
committed
typo in check condition
Signed-off-by: Allen Li <liyuchen223@gmail.com>
1 parent 5f9bb3c commit d1c7468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/common/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ func GetApprovalModeinNs(r client.Reader, ns string) (approvalMode string, err e
517517

518518
// GetCatalogSource gets CatalogSource will be used by operators
519519
func GetCatalogSource(packageName, ns string, r client.Reader) (CatalogSourceName, CatalogSourceNS string) {
520-
if os.Getenv("NO_OLM") != "true" {
520+
if os.Getenv("NO_OLM") == "true" {
521521
klog.V(2).Infof("set catalogsource name and namespace to empty in no olm environment")
522522
return "", ""
523523
}

0 commit comments

Comments
 (0)