Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions lib/resourcemerge/rbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func EnsureClusterRole(modified *bool, existing *rbacv1.ClusterRole, required rb
*modified = true
existing.Rules = required.Rules
}
if !equality.Semantic.DeepEqual(existing.AggregationRule, required.AggregationRule) {
*modified = true
existing.AggregationRule = required.AggregationRule
}
}

// EnsureRoleBinding ensures that the existing matches the required.
Expand Down
4 changes: 4 additions & 0 deletions lib/resourcemerge/rbacv1beta1.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func EnsureClusterRolev1beta1(modified *bool, existing *rbacv1beta1.ClusterRole,
*modified = true
existing.Rules = required.Rules
}
if !equality.Semantic.DeepEqual(existing.AggregationRule, required.AggregationRule) {
*modified = true
existing.AggregationRule = required.AggregationRule
}
}

// EnsureRoleBindingv1beta1 ensures that the existing matches the required.
Expand Down