Documentation ¶
Overview ¶
Package hierarchyconfig defines validation done on HierarchyConfig Resources
Index ¶
- Constants
- func ClusterScopedResourceInHierarchyConfigError(config client.Object, gk schema.GroupKind) status.Error
- func IllegalHierarchyModeError(config client.Object, gk schema.GroupKind, mode v1.HierarchyModeType) status.Error
- func UnsupportedResourceInHierarchyConfigError(config client.Object, gk schema.GroupKind) status.Error
Constants ¶
const ClusterScopedResourceInHierarchyConfigErrorCode = "1046"
ClusterScopedResourceInHierarchyConfigErrorCode is the error code for ClusterScopedResourceInHierarchyConfigError
const IllegalHierarchyModeErrorCode = "1042"
IllegalHierarchyModeErrorCode is the error code for IllegalHierarchyModeError
const UnsupportedResourceInHierarchyConfigErrorCode = "1041"
UnsupportedResourceInHierarchyConfigErrorCode is the error code for UnsupportedResourceInHierarchyConfigError
Variables ¶
This section is empty.
Functions ¶
func ClusterScopedResourceInHierarchyConfigError ¶
func ClusterScopedResourceInHierarchyConfigError(config client.Object, gk schema.GroupKind) status.Error
ClusterScopedResourceInHierarchyConfigError reports that a Resource defined in a HierarchyConfig has Cluster scope which means it's not feasible to interpret the resource in a hierarchical manner
func IllegalHierarchyModeError ¶
func IllegalHierarchyModeError(config client.Object, gk schema.GroupKind, mode v1.HierarchyModeType) status.Error
IllegalHierarchyModeError reports that a HierarchyConfig is defined with a disallowed hierarchyMode.
Types ¶
This section is empty.