Documentation
¶
Index ¶
- Constants
- func GetDeviceClassByName(ctx context.Context, c client.Reader, name string) (*resources.DeviceClass, error)
- func GetGatewayClassClassByObjectName(ctx context.Context, c client.Reader, gatewayClassName gatewayv1.ObjectName) (*gatewayv1.GatewayClass, error)
- func GetIngressClassByName(ctx context.Context, version *version.Version, c client.Reader, ...) (client.Object, error)
- func GetNamespaceTenant(ctx context.Context, reader client.Reader, cache client.Client, ...) (*capsulev1beta2.Tenant, *admission.Response)
- func GetPriorityClassByName(ctx context.Context, c client.Reader, name string) (*schedulev1.PriorityClass, error)
- func GetStorageClassByName(ctx context.Context, c client.Reader, name string) (*storagev1.StorageClass, error)
- func IsDefaultIngressClass(class client.Object) bool
- func IsDefaultPriorityClass(class *schedulev1.PriorityClass) bool
- func IsDefaultStorageClass(class client.Object) bool
Constants ¶
View Source
const TRUE string = "true"
Variables ¶
This section is empty.
Functions ¶
func GetDeviceClassByName ¶
func GetDeviceClassByName(ctx context.Context, c client.Reader, name string) (*resources.DeviceClass, error)
Get DeviceClass by name (Does not return error if not found).
func GetGatewayClassClassByObjectName ¶
func GetGatewayClassClassByObjectName(ctx context.Context, c client.Reader, gatewayClassName gatewayv1.ObjectName) (*gatewayv1.GatewayClass, error)
Get GatewayClassClass by name (Does not return error if not found).
func GetIngressClassByName ¶
func GetIngressClassByName(ctx context.Context, version *version.Version, c client.Reader, ingressClassName *string) (client.Object, error)
Get IngressClass by name (Does not return error if not found).
func GetNamespaceTenant ¶
func GetNamespaceTenant( ctx context.Context, reader client.Reader, cache client.Client, ns *corev1.Namespace, user users.AdmissionUser, cfg configuration.Configuration, recorder events.EventRecorder, ) (*capsulev1beta2.Tenant, *admission.Response)
func GetPriorityClassByName ¶
func GetPriorityClassByName(ctx context.Context, c client.Reader, 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.Reader, name string) (*storagev1.StorageClass, error)
Get StorageClass by name (Does not return error if not found).
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.