Skip to content

Commit

Permalink
Fix new clustermetadata helper
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Aug 15, 2024
1 parent 17f4f19 commit 5160156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func ClusterMetadataFromConfigMap(cm *core.ConfigMap, clusterUIDVerifier string)
hasher.Write(data)
messageMAC := hasher.Sum(nil)
expectedMAC := cm.BinaryData["mac"]
if hmac.Equal(messageMAC, expectedMAC) {
if !hmac.Equal(messageMAC, expectedMAC) {
return nil, fmt.Errorf("configmap %s/%s fails validation", cm.Namespace, cm.Name)
}

Expand Down

0 comments on commit 5160156

Please sign in to comment.