helper

package
v1.47.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIGroupMatches

func APIGroupMatches(limit apisconfig.ResourceLimit, group string) bool

APIGroupMatches returns `true` if the given group has a match in the given limit.

func ConvertAdmissionControllerConfiguration added in v1.32.0

func ConvertAdmissionControllerConfiguration(obj runtime.Object) (*apisconfig.AdmissionControllerConfiguration, error)

ConvertAdmissionControllerConfiguration converts the given object to an internal AdmissionControllerConfiguration version.

func ConvertAdmissionControllerConfigurationExternal added in v1.36.0

func ConvertAdmissionControllerConfigurationExternal(obj runtime.Object) (*apisconfigv1alpha1.AdmissionControllerConfiguration, error)

ConvertAdmissionControllerConfigurationExternal converts the given object to an external AdmissionControllerConfiguration version.

func ResourceMatches

func ResourceMatches(limit apisconfig.ResourceLimit, resource string) bool

ResourceMatches returns `true` if the given resource has a match in the given limit.

func ServiceAccountMatches

func ServiceAccountMatches(subject rbacv1.Subject, userInfo authenticationv1.UserInfo) bool

ServiceAccountMatches returns `true` if the given service account in the subject has a match in the given userConfig. Supports `apisconfig.WildcardAll` in subject name.

func UserGroupMatches

func UserGroupMatches(subject rbacv1.Subject, userInfo authenticationv1.UserInfo) bool

UserGroupMatches returns `true` if the given group in the subject has a match in the given userConfig. Always returns true if `apisconfig.WildcardAll` is used in subject.

func UserMatches

func UserMatches(subject rbacv1.Subject, userInfo authenticationv1.UserInfo) bool

UserMatches returns `true` if the given user in the subject has a match in the given userConfig.

func VersionMatches

func VersionMatches(limit apisconfig.ResourceLimit, version string) bool

VersionMatches returns `true` if the given version has a match in the given limit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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