Documentation ¶
Index ¶
- func ConvertToRBACClusterRole(originClusterRole *authorizationapi.ClusterRole) (*rbac.ClusterRole, error)
- func ConvertToRBACClusterRoleBinding(originClusterRoleBinding *authorizationapi.ClusterRoleBinding) (*rbac.ClusterRoleBinding, error)
- func ConvertToRBACRole(originRole *authorizationapi.Role) (*rbac.Role, error)
- func ConvertToRBACRoleBinding(originRoleBinding *authorizationapi.RoleBinding) (*rbac.RoleBinding, error)
- func PrepareForUpdateClusterRole(newClusterRole, existingClusterRole *rbac.ClusterRole) bool
- func PrepareForUpdateClusterRoleBinding(newClusterRoleBinding, existingClusterRoleBinding *rbac.ClusterRoleBinding) bool
- func PrepareForUpdateRole(newRole, existingRole *rbac.Role) bool
- func PrepareForUpdateRoleBinding(newRoleBinding, existingRoleBinding *rbac.RoleBinding) bool
- type OriginClusterRoleBindingToRBACClusterRoleBindingController
- type OriginClusterRoleToRBACClusterRoleController
- type OriginRoleBindingToRBACRoleBindingController
- type OriginRoleToRBACRoleController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToRBACClusterRole ¶
func ConvertToRBACClusterRole(originClusterRole *authorizationapi.ClusterRole) (*rbac.ClusterRole, error)
ConvertToRBACClusterRole performs the conversion and guarantees the returned object is safe to mutate.
func ConvertToRBACClusterRoleBinding ¶
func ConvertToRBACClusterRoleBinding(originClusterRoleBinding *authorizationapi.ClusterRoleBinding) (*rbac.ClusterRoleBinding, error)
ConvertToRBACClusterRoleBinding performs the conversion and guarantees the returned object is safe to mutate.
func ConvertToRBACRole ¶
func ConvertToRBACRole(originRole *authorizationapi.Role) (*rbac.Role, error)
ConvertToRBACRole performs the conversion and guarantees the returned object is safe to mutate.
func ConvertToRBACRoleBinding ¶
func ConvertToRBACRoleBinding(originRoleBinding *authorizationapi.RoleBinding) (*rbac.RoleBinding, error)
ConvertToRBACRoleBinding performs the conversion and guarantees the returned object is safe to mutate.
func PrepareForUpdateClusterRole ¶
func PrepareForUpdateClusterRole(newClusterRole, existingClusterRole *rbac.ClusterRole) bool
PrepareForUpdateClusterRole compares newClusterRole with existingClusterRole to determine if an update is required. newClusterRole must be safe to modify as it is mutated during the comparison which must ignore fields that will never match. Returns true if an update is required, in which case newClusterRole should be passed to Update.
func PrepareForUpdateClusterRoleBinding ¶
func PrepareForUpdateClusterRoleBinding(newClusterRoleBinding, existingClusterRoleBinding *rbac.ClusterRoleBinding) bool
PrepareForUpdateClusterRoleBinding compares newClusterRoleBinding with existingClusterRoleBinding to determine if an update is required. newClusterRoleBinding must be safe to modify as it is mutated during the comparison which must ignore fields that will never match. Returns true if an update is required, in which case newClusterRoleBinding should be passed to Update.
func PrepareForUpdateRole ¶
PrepareForUpdateRole compares newRole with existingRole to determine if an update is required. newRole must be safe to modify as it is mutated during the comparison which must ignore fields that will never match. Returns true if an update is required, in which case newRole should be passed to Update.
func PrepareForUpdateRoleBinding ¶
func PrepareForUpdateRoleBinding(newRoleBinding, existingRoleBinding *rbac.RoleBinding) bool
PrepareForUpdateRoleBinding compares newRoleBinding with existingRoleBinding to determine if an update is required. newRoleBinding must be safe to modify as it is mutated during the comparison which must ignore fields that will never match. Returns true if an update is required, in which case newRoleBinding should be passed to Update.
Types ¶
type OriginClusterRoleBindingToRBACClusterRoleBindingController ¶
type OriginClusterRoleBindingToRBACClusterRoleBindingController struct {
// contains filtered or unexported fields
}
func NewOriginToRBACClusterRoleBindingController ¶
func NewOriginToRBACClusterRoleBindingController(rbacClusterRoleBindingInformer rbacinformers.ClusterRoleBindingInformer, originClusterPolicyBindingInformer origininformers.ClusterPolicyBindingInformer, rbacClient rbacclient.ClusterRoleBindingsGetter) *OriginClusterRoleBindingToRBACClusterRoleBindingController
type OriginClusterRoleToRBACClusterRoleController ¶
type OriginClusterRoleToRBACClusterRoleController struct {
// contains filtered or unexported fields
}
func NewOriginToRBACClusterRoleController ¶
func NewOriginToRBACClusterRoleController(rbacClusterRoleInformer rbacinformers.ClusterRoleInformer, originClusterPolicyInformer origininformers.ClusterPolicyInformer, rbacClient rbacclient.ClusterRolesGetter) *OriginClusterRoleToRBACClusterRoleController
type OriginRoleBindingToRBACRoleBindingController ¶
type OriginRoleBindingToRBACRoleBindingController struct {
// contains filtered or unexported fields
}
func NewOriginToRBACRoleBindingController ¶
func NewOriginToRBACRoleBindingController(rbacRoleBindingInformer rbacinformers.RoleBindingInformer, originPolicyBindingInformer origininformers.PolicyBindingInformer, rbacClient rbacclient.RoleBindingsGetter) *OriginRoleBindingToRBACRoleBindingController
type OriginRoleToRBACRoleController ¶
type OriginRoleToRBACRoleController struct {
// contains filtered or unexported fields
}
func NewOriginToRBACRoleController ¶
func NewOriginToRBACRoleController(rbacRoleInformer rbacinformers.RoleInformer, originPolicyInformer origininformers.PolicyInformer, rbacClient rbacclient.RolesGetter) *OriginRoleToRBACRoleController