Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client[T runtime.Object] interface { Get(ctx context.Context, name string, opts metav1.GetOptions) (T, error) Create(ctx context.Context, obj T, opts metav1.CreateOptions) (T, error) Update(ctx context.Context, obj T, opts metav1.UpdateOptions) (T, error) }
Client is a wrapper interface of client
type CompareFunc ¶
CompareFunc compares required and existing, returns the updated required and whether updated is needed
type PermissionApplier ¶
type PermissionApplier struct {
// contains filtered or unexported fields
}
func NewPermissionApplier ¶
func NewPermissionApplier( client kubernetes.Interface, roleLister rbacv1listers.RoleLister, roleBindingLister rbacv1listers.RoleBindingLister, clusterRoleLister rbacv1listers.ClusterRoleLister, clusterRoleBindingLister rbacv1listers.ClusterRoleBindingLister, ) *PermissionApplier
func (*PermissionApplier) Apply ¶
func (m *PermissionApplier) Apply( ctx context.Context, recorder events.Recorder, manifests resourceapply.AssetFunc, files ...string) []resourceapply.ApplyResult
Click to show internal directories.
Click to hide internal directories.