Skip to content
Prev Previous commit
Next Next commit
add watched by odlm label
Signed-off-by: Ben Luzarraga <[email protected]>
  • Loading branch information
bluzarraga committed Feb 3, 2025
commit d680360b5702f3867a92de3033e3301b39bbf145
1 change: 1 addition & 0 deletions controllers/operandrequestnoolm/reconcile_operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func (r *Reconciler) reconcileOpReqCM(ctx context.Context, requestInstance *oper
cm.Annotations[registryKey.Namespace+"."+registryKey.Name+"/config"] = "true"
cm.Annotations[requestInstance.Namespace+"."+requestInstance.Name+"."+operand.Name+"/request"] = opt.Channel
cm.Annotations[requestInstance.Namespace+"."+requestInstance.Name+"."+operand.Name+"/operatorNamespace"] = namespace
cm.Labels["operator.ibm.com/watched-by-odlm"] = "true"

if opt.InstallMode == operatorv1alpha1.InstallModeNoop {
requestInstance.SetNoSuitableRegistryCondition(registryKey.String(), opt.Name+" is in maintenance status", operatorv1alpha1.ResourceTypeOperandRegistry, corev1.ConditionTrue, &r.Mutex)
Expand Down