mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-20 08:04:52 +00:00
10 lines
705 B
Go
10 lines
705 B
Go
// Package cache implements a ManifestWork Executor Validator with caching capabilities.
|
|
// It stores the result of whether the executor has operation permission(SubjectAccessReview)
|
|
// on a specific resource in a 2-level cache data structure, the first-level cache is the
|
|
// executor key, and the second-level cache is the description (dimension) of the operated
|
|
// resource. At the same time, it also contains a controller, which watches the RBAC
|
|
// resources(role, roleBinding, clusterRole, clusterRoleBinding) related to the executors
|
|
// used by the ManifestWorks in the cluster, and refresh the cache results of the
|
|
// corresponding executor when these RBAC resources have any changes.
|
|
package cache
|