v1

package
v0.30.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrPatchRole

func CreateOrPatchRole(ctx context.Context, c kubernetes.Interface, meta metav1.ObjectMeta, transform func(*rbac.Role) *rbac.Role, opts metav1.PatchOptions) (*rbac.Role, kutil.VerbType, error)

func PatchRole

func PatchRole(ctx context.Context, c kubernetes.Interface, cur *rbac.Role, transform func(*rbac.Role) *rbac.Role, opts metav1.PatchOptions) (*rbac.Role, kutil.VerbType, error)

func PatchRoleObject

func PatchRoleObject(ctx context.Context, c kubernetes.Interface, cur, mod *rbac.Role, opts metav1.PatchOptions) (*rbac.Role, kutil.VerbType, error)

func RemoveSubjects added in v0.25.21

func RemoveSubjects(subjects []rbac.Subject, rm ...rbac.Subject) []rbac.Subject

func TryUpdateClusterRole

func TryUpdateClusterRole(ctx context.Context, c kubernetes.Interface, meta metav1.ObjectMeta, transform func(*rbac.ClusterRole) *rbac.ClusterRole, opts metav1.UpdateOptions) (result *rbac.ClusterRole, err error)

func TryUpdateRole

func TryUpdateRole(ctx context.Context, c kubernetes.Interface, meta metav1.ObjectMeta, transform func(*rbac.Role) *rbac.Role, opts metav1.UpdateOptions) (result *rbac.Role, err error)

func TryUpdateRoleBinding

func TryUpdateRoleBinding(ctx context.Context, c kubernetes.Interface, meta metav1.ObjectMeta, transform func(*rbac.RoleBinding) *rbac.RoleBinding, opts metav1.UpdateOptions) (result *rbac.RoleBinding, err error)

func UpsertSubjects added in v0.25.21

func UpsertSubjects(subjects []rbac.Subject, upsert ...rbac.Subject) []rbac.Subject

func WaitUntillRoleBindingDeleted

func WaitUntillRoleBindingDeleted(ctx context.Context, c kubernetes.Interface, meta metav1.ObjectMeta) error

func WaitUntillRoleDeleted

func WaitUntillRoleDeleted(ctx context.Context, c kubernetes.Interface, meta metav1.ObjectMeta) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL