Skip to content

Commit

Permalink
Fix typo: oject -> Object
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronDewes committed Jun 10, 2024
1 parent c70bb07 commit ef8625c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/hyperconverged-cluster-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func getCacheOption(operatorNamespace string, isMonitoringAvailable, isOpenshift
},
}

cacheOptionsByOjectForMonitoring := map[client.Object]cache.ByObject{
cacheOptionsByObjectForMonitoring := map[client.Object]cache.ByObject{
&monitoringv1.ServiceMonitor{}: {
Label: labelSelector,
Field: namespaceSelector,
Expand All @@ -247,7 +247,7 @@ func getCacheOption(operatorNamespace string, isMonitoringAvailable, isOpenshift
},
}

cacheOptionsByOjectForOpenshift := map[client.Object]cache.ByObject{
cacheOptionsByObjectForOpenshift := map[client.Object]cache.ByObject{
&openshiftroutev1.Route{}: {
Field: namespaceSelector,
},
Expand All @@ -267,10 +267,10 @@ func getCacheOption(operatorNamespace string, isMonitoringAvailable, isOpenshift
}

if isMonitoringAvailable {
maps.Copy(cacheOptions.ByObject, cacheOptionsByOjectForMonitoring)
maps.Copy(cacheOptions.ByObject, cacheOptionsByObjectForMonitoring)
}
if isOpenshift {
maps.Copy(cacheOptions.ByObject, cacheOptionsByOjectForOpenshift)
maps.Copy(cacheOptions.ByObject, cacheOptionsByObjectForOpenshift)
}

return cacheOptions
Expand Down

0 comments on commit ef8625c

Please sign in to comment.