Documentation ¶
Index ¶
- Constants
- func DefaultAllowedValuesErrorMessage(allowed api.DefaultAllowedListSpec, err string) string
- func ErroredResponse(err error) *admission.Response
- func GetIngressClassByName(ctx context.Context, version *version.Version, c client.Client, ...) (client.Object, error)
- func GetK8sVersion() (*version.Version, error)
- func GetPriorityClassByName(ctx context.Context, c client.Client, name string) (*schedulev1.PriorityClass, error)
- func GetStorageClassByName(ctx context.Context, c client.Client, name string) (*storagev1.StorageClass, error)
- func InCapsuleGroups(configuration configuration.Configuration, handlers ...webhook.Handler) webhook.Handler
- func IsCapsuleUser(ctx context.Context, req admission.Request, clt client.Client, ...) bool
- func IsDefaultIngressClass(class client.Object) bool
- func IsDefaultPriorityClass(class *schedulev1.PriorityClass) bool
- func IsDefaultStorageClass(class client.Object) bool
- func IsTenantOwner(owners capsulev1beta2.OwnerListSpec, userInfo authenticationv1.UserInfo) bool
- func NodeWebhookSupported(currentVersion *version.Version) (bool, error)
- func TenantByStatusNamespace(ctx context.Context, c client.Client, namespace string) (*capsulev1beta2.Tenant, error)
Constants ¶
View Source
const TRUE string = "true"
Variables ¶
This section is empty.
Functions ¶
func DefaultAllowedValuesErrorMessage ¶
func DefaultAllowedValuesErrorMessage(allowed api.DefaultAllowedListSpec, err string) string
func ErroredResponse ¶
func GetIngressClassByName ¶
func GetIngressClassByName(ctx context.Context, version *version.Version, c client.Client, ingressClassName *string) (client.Object, error)
Get IngressClass by name (Does not return error if not found).
func GetK8sVersion ¶
func GetPriorityClassByName ¶
func GetPriorityClassByName(ctx context.Context, c client.Client, name string) (*schedulev1.PriorityClass, error)
Get PriorityClass by name (Does not return error if not found).
func GetStorageClassByName ¶
func GetStorageClassByName(ctx context.Context, c client.Client, name string) (*storagev1.StorageClass, error)
Get StorageClass by name (Does not return error if not found).
func InCapsuleGroups ¶
func InCapsuleGroups(configuration configuration.Configuration, handlers ...webhook.Handler) webhook.Handler
func IsCapsuleUser ¶
func IsDefaultIngressClass ¶
func IsDefaultPriorityClass ¶
func IsDefaultPriorityClass(class *schedulev1.PriorityClass) bool
IsDefaultPriorityClass checks if the given PriorityClass is cluster default.
func IsDefaultStorageClass ¶
IsDefaultStorageClass checks if the given StorageClass is cluster default.
func IsTenantOwner ¶
func IsTenantOwner(owners capsulev1beta2.OwnerListSpec, userInfo authenticationv1.UserInfo) bool
func NodeWebhookSupported ¶
func TenantByStatusNamespace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.