Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update var name
Signed-off-by: Allen Li <[email protected]>
  • Loading branch information
qpdpQ committed Oct 10, 2024
commit c5bf98455cce61d4b73f08be50d0e75029e00ffa
6 changes: 3 additions & 3 deletions controllers/operator/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -835,11 +835,11 @@ func (m *ODLMOperator) GetValueRefFromConfigMap(ctx context.Context, instanceTyp
}
return "", errors.Wrapf(err, "failed to get Configmap %s/%s", cmNs, cmName)
}
labelvalue := instanceType + "." + instanceNs + "." + instanceName
labelvalue = util.GetFirstNCharacter(labelvalue, 63)
labelValue := instanceType + "." + instanceNs + "." + instanceName
labelValue = util.GetFirstNCharacter(labelValue, 63)
// Set the Value Reference label for the ConfigMap
util.EnsureLabelsForConfigMap(cm, map[string]string{
constant.ODLMReferenceLabel: labelvalue,
constant.ODLMReferenceLabel: labelValue,
constant.ODLMWatchedLabel: "true",
})
// Update the ConfigMap with the Value Reference label
Expand Down