Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 1ce4e0e

Browse files
MatousJobanekncdc
andauthored
Update controllers/configmap_controller.go
Co-authored-by: Andy Goldstein <[email protected]>
1 parent 732ef3d commit 1ce4e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/configmap_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (r *ConfigMapReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
9292
log.Info("List: got", "itemCount", len(configMapList.Items))
9393
found := false
9494
for _, cm := range configMapList.Items {
95-
if "" != logicalcluster.From(&cm).String() {
95+
if !logicalcluster.From(&cm).Empty() {
9696
log.Info("List: got", "clusterName", logicalcluster.From(&cm).String(), "namespace", cm.Namespace, "name", cm.Name)
9797
} else {
9898
if cm.Name == configMap.Name && cm.Namespace == configMap.Namespace {

0 commit comments

Comments
 (0)