Skip to content
Prev Previous commit
Next Next commit
typo in check condition
Signed-off-by: Allen Li <[email protected]>
  • Loading branch information
qpdpQ committed Feb 4, 2025
commit d1c746865a914a0ba2d1a45d5f11783564114df0
2 changes: 1 addition & 1 deletion controllers/common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ func GetApprovalModeinNs(r client.Reader, ns string) (approvalMode string, err e

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