Update cluster_resources.go - typo

Fix a typo: `exprted` -> `exported`
This commit is contained in:
Edgar Lanting
2022-08-05 13:53:50 +02:00
committed by GitHub
parent f6afe7e7e9
commit a91ef9edfe
+1 -1
View File
@@ -1201,7 +1201,7 @@ func events(ctx context.Context, client *kubernetes.Clientset, namespaces []stri
return eventsByNamespace, errorsByNamespace
}
// not exprted from: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/auth/cani.go#L339
// not exported from: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/auth/cani.go#L339
func convertToPolicyRule(status authorizationv1.SubjectRulesReviewStatus) []rbacv1.PolicyRule {
ret := []rbacv1.PolicyRule{}
for _, resource := range status.ResourceRules {