helper

package
v1.107.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIGroupMatches

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

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

func ResourceMatches

func ResourceMatches(limit admissioncontrollerconfig.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 `admissioncontrollerconfig.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 `admissioncontrollerconfig.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 admissioncontrollerconfig.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