errors

package
v0.13.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedValuesErrorMessage

func AllowedValuesErrorMessage(allowed api.SelectorAllowedListSpec, err string) string

func DefaultAllowedValuesErrorMessage

func DefaultAllowedValuesErrorMessage(allowed api.DefaultAllowedListSpec, err string) string

func IgnoreGone

func IgnoreGone(err error) bool

func NewContainerRegistryForbidden

func NewContainerRegistryForbidden(image string, spec api.AllowedListSpec) error

func NewCrossTenantPVMountError

func NewCrossTenantPVMountError(name string, action string) error

func NewCustomResourceQuotaError

func NewCustomResourceQuotaError(kindGroup string, limit int64) error

func NewDeviceClassForbidden

func NewDeviceClassForbidden(class string, spec api.SelectorAllowedListSpec) error

func NewDeviceClassUndefined

func NewDeviceClassUndefined(spec api.SelectorAllowedListSpec) error

func NewEmptyIngressHostname

func NewEmptyIngressHostname(spec api.AllowedListSpec) error

func NewExternalNameDisabledError

func NewExternalNameDisabledError() error

func NewExternalServiceIPForbidden

func NewExternalServiceIPForbidden(allowedIps []api.AllowedIP) error

func NewGatewayClassError

func NewGatewayClassError(class string, msg error) error

func NewGatewayClassForbidden

func NewGatewayClassForbidden(class string, spec api.DefaultAllowedListSpec) error

func NewGatewayClassUndefined

func NewGatewayClassUndefined(spec api.DefaultAllowedListSpec) error

func NewGatewayError

func NewGatewayError(gateway gatewayv1.ObjectName, msg error) error

func NewImagePullPolicyForbidden

func NewImagePullPolicyForbidden(usedPullPolicy, containerName string, allowedPullPolicies []string) error

func NewIngressClassError

func NewIngressClassError(class string, msg error) error

func NewIngressClassForbidden

func NewIngressClassForbidden(class string, spec api.DefaultAllowedListSpec) error

func NewIngressClassNotValid

func NewIngressClassNotValid(class string, spec api.DefaultAllowedListSpec) error

func NewIngressClassUndefined

func NewIngressClassUndefined(spec api.DefaultAllowedListSpec) error

func NewIngressHostnameCollision

func NewIngressHostnameCollision(hostname string) error

func NewIngressHostnamesNotValid

func NewIngressHostnamesNotValid(invalidHostnames []string, notMatchingHostnames []string, spec api.AllowedListSpec) error

func NewLoadBalancerDisabled

func NewLoadBalancerDisabled() error

func NewMissingContainerRegistryError

func NewMissingContainerRegistryError(image string) error

func NewMissingTenantPVLabelsError

func NewMissingTenantPVLabelsError(name string, action string) error

func NewNamespaceQuotaExceededError

func NewNamespaceQuotaExceededError() error

func NewNoPodMetadata

func NewNoPodMetadata(objectName string) error

func NewNoServicesMetadata

func NewNoServicesMetadata(objectName string) error

func NewNodeAnnotationForbiddenError

func NewNodeAnnotationForbiddenError(forbiddenSpec *capsulev1beta2.ForbiddenListSpec) error

func NewNodeLabelForbiddenError

func NewNodeLabelForbiddenError(forbiddenSpec *capsulev1beta2.ForbiddenListSpec) error

func NewNodePortDisabledError

func NewNodePortDisabledError() error

func NewNonTenantObject

func NewNonTenantObject(objectName string) error

func NewPVSelectorError

func NewPVSelectorError(action string) error

func NewPodPriorityClassForbidden

func NewPodPriorityClassForbidden(priorityClassName string, spec api.DefaultAllowedListSpec) error

func NewPodRuntimeClassForbidden

func NewPodRuntimeClassForbidden(runtimeClassName string, spec api.DefaultAllowedListSpec) error

func NewPriorityClassError

func NewPriorityClassError(class string, msg error) error

func NewPvNotFoundError

func NewPvNotFoundError(name string, action string) error

func NewStorageClassError

func NewStorageClassError(class string, msg error) error

func NewStorageClassForbidden

func NewStorageClassForbidden(className string, storageClasses api.DefaultAllowedListSpec) error

func NewStorageClassNotValid

func NewStorageClassNotValid(storageClasses api.DefaultAllowedListSpec) error

func RecordTypedErrorEvent

func RecordTypedErrorEvent(
	recorder events.EventRecorder,
	regarding runtime.Object,
	related runtime.Object,
	err error,
)

func SelectionListWithDefaultErrorMessage

func SelectionListWithDefaultErrorMessage(allowed api.SelectionListWithDefaultSpec, err string) string

Types

type CaExpiredError

type CaExpiredError struct{}

func (CaExpiredError) Error

func (CaExpiredError) Error() string

type CaNotYetValidError

type CaNotYetValidError struct{}

func (CaNotYetValidError) Error

func (CaNotYetValidError) Error() string

type CrossTenantPVMountError

type CrossTenantPVMountError struct {
	// contains filtered or unexported fields
}

func (*CrossTenantPVMountError) Action

func (e *CrossTenantPVMountError) Action() string

func (CrossTenantPVMountError) Error

func (e CrossTenantPVMountError) Error() string

func (*CrossTenantPVMountError) Reason

func (e *CrossTenantPVMountError) Reason() string

type CustomResourceQuotaError

type CustomResourceQuotaError struct {
	// contains filtered or unexported fields
}

func (CustomResourceQuotaError) Error

func (r CustomResourceQuotaError) Error() string

type DeviceClassForbiddenError

type DeviceClassForbiddenError struct {
	// contains filtered or unexported fields
}

func (DeviceClassForbiddenError) Error

type DeviceClassUndefinedError

type DeviceClassUndefinedError struct {
	// contains filtered or unexported fields
}

func (DeviceClassUndefinedError) Error

type EmptyIngressHostnameError

type EmptyIngressHostnameError struct {
	// contains filtered or unexported fields
}

func (EmptyIngressHostnameError) Error

type EventedError

type EventedError interface {
	error
	Reason() string // UpperCamelCase, short
	Action() string // UpperCamelCase, short (<=128)
}

type ExternalNameDisabledError

type ExternalNameDisabledError struct{}

func (ExternalNameDisabledError) Error

type ExternalServiceIPForbiddenError

type ExternalServiceIPForbiddenError struct {
	// contains filtered or unexported fields
}

func (ExternalServiceIPForbiddenError) Error

type GatewayClassError

type GatewayClassError struct {
	// contains filtered or unexported fields
}

func (GatewayClassError) Error

func (e GatewayClassError) Error() string

type GatewayClassForbiddenError

type GatewayClassForbiddenError struct {
	// contains filtered or unexported fields
}

func (GatewayClassForbiddenError) Error

type GatewayClassUndefinedError

type GatewayClassUndefinedError struct {
	// contains filtered or unexported fields
}

func (GatewayClassUndefinedError) Error

type GatewayError

type GatewayError struct {
	// contains filtered or unexported fields
}

func (GatewayError) Error

func (e GatewayError) Error() string

type ImagePullPolicyForbiddenError

type ImagePullPolicyForbiddenError struct {
	// contains filtered or unexported fields
}

func (ImagePullPolicyForbiddenError) Error

func (f ImagePullPolicyForbiddenError) Error() (err string)

type IngressClassError

type IngressClassError struct {
	// contains filtered or unexported fields
}

func (IngressClassError) Error

func (e IngressClassError) Error() string

type IngressClassForbiddenError

type IngressClassForbiddenError struct {
	// contains filtered or unexported fields
}

func (IngressClassForbiddenError) Error

type IngressClassNotValidError

type IngressClassNotValidError struct {
	// contains filtered or unexported fields
}

func (IngressClassNotValidError) Error

type IngressClassUndefinedError

type IngressClassUndefinedError struct {
	// contains filtered or unexported fields
}

func (IngressClassUndefinedError) Error

type IngressHostnameCollisionError

type IngressHostnameCollisionError struct {
	// contains filtered or unexported fields
}

func (IngressHostnameCollisionError) Error

type IngressHostnameNotValidError

type IngressHostnameNotValidError struct {
	// contains filtered or unexported fields
}

func (IngressHostnameNotValidError) Error

type LoadBalancerDisabledError

type LoadBalancerDisabledError struct{}

func (LoadBalancerDisabledError) Error

type MissingPVTenantLabelsError

type MissingPVTenantLabelsError struct {
	// contains filtered or unexported fields
}

func (*MissingPVTenantLabelsError) Action

func (e *MissingPVTenantLabelsError) Action() string

func (MissingPVTenantLabelsError) Error

func (*MissingPVTenantLabelsError) Reason

func (e *MissingPVTenantLabelsError) Reason() string

type NamespaceQuotaExceededError

type NamespaceQuotaExceededError struct{}

func (NamespaceQuotaExceededError) Error

type NoPodMetadataError

type NoPodMetadataError struct {
	// contains filtered or unexported fields
}

func (NoPodMetadataError) Error

func (n NoPodMetadataError) Error() string

type NoServicesMetadataError

type NoServicesMetadataError struct {
	// contains filtered or unexported fields
}

func (NoServicesMetadataError) Error

func (n NoServicesMetadataError) Error() string

type NodeAnnotationForbiddenError

type NodeAnnotationForbiddenError struct {
	// contains filtered or unexported fields
}

func (NodeAnnotationForbiddenError) Error

type NodeLabelForbiddenError

type NodeLabelForbiddenError struct {
	// contains filtered or unexported fields
}

func (NodeLabelForbiddenError) Error

func (f NodeLabelForbiddenError) Error() string

type NodePortDisabledError

type NodePortDisabledError struct{}

func (NodePortDisabledError) Error

func (NodePortDisabledError) Error() string

type NonTenantObjectError

type NonTenantObjectError struct {
	// contains filtered or unexported fields
}

func (NonTenantObjectError) Error

func (n NonTenantObjectError) Error() string

type PodPriorityClassForbiddenError

type PodPriorityClassForbiddenError struct {
	// contains filtered or unexported fields
}

func (PodPriorityClassForbiddenError) Error

func (f PodPriorityClassForbiddenError) Error() (err string)

type PodRuntimeClassForbiddenError

type PodRuntimeClassForbiddenError struct {
	// contains filtered or unexported fields
}

func (PodRuntimeClassForbiddenError) Error

func (f PodRuntimeClassForbiddenError) Error() (err string)

type PriorityClassError

type PriorityClassError struct {
	// contains filtered or unexported fields
}

func (PriorityClassError) Error

func (e PriorityClassError) Error() string

type PvNotFoundError

type PvNotFoundError struct {
	// contains filtered or unexported fields
}

func (*PvNotFoundError) Action

func (e *PvNotFoundError) Action() string

func (PvNotFoundError) Error

func (e PvNotFoundError) Error() string

func (*PvNotFoundError) Reason

func (e *PvNotFoundError) Reason() string

type PvSelectorError

type PvSelectorError struct {
	// contains filtered or unexported fields
}

func (*PvSelectorError) Action

func (e *PvSelectorError) Action() string

func (PvSelectorError) Error

func (m PvSelectorError) Error() string

func (*PvSelectorError) Reason

func (e *PvSelectorError) Reason() string

type RegistryClassForbiddenError

type RegistryClassForbiddenError struct {
	// contains filtered or unexported fields
}

func (RegistryClassForbiddenError) Error

func (f RegistryClassForbiddenError) Error() (err string)

type RunningInOutOfClusterModeError

type RunningInOutOfClusterModeError struct{}

func (RunningInOutOfClusterModeError) Error

type StorageClassError

type StorageClassError struct {
	// contains filtered or unexported fields
}

func (StorageClassError) Error

func (e StorageClassError) Error() string

type StorageClassForbiddenError

type StorageClassForbiddenError struct {
	// contains filtered or unexported fields
}

func (StorageClassForbiddenError) Error

type StorageClassNotValidError

type StorageClassNotValidError struct {
	// contains filtered or unexported fields
}

func (StorageClassNotValidError) Error

func (s StorageClassNotValidError) Error() (err string)

Jump to

Keyboard shortcuts

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