1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-01 07:27:46 +00:00

fix role revision index for rolebindings that bind to clusterroles

This commit is contained in:
Ryan Sanna
2021-09-14 14:20:32 -07:00
parent 5920d081be
commit 2acdb9ce74

View File

@@ -90,8 +90,7 @@ func (p *policyRuleIndex) addRolesToHash(digest hash.Hash, subjectName string) {
digest.Write(null)
case "ClusterRole":
digest.Write([]byte(rb.RoleRef.Name))
digest.Write([]byte(rb.Namespace))
digest.Write([]byte(p.revisions.roleRevision(rb.Namespace, rb.RoleRef.Name)))
digest.Write([]byte(p.revisions.roleRevision("", rb.RoleRef.Name)))
digest.Write(null)
}
}