validate

package
v1.23.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterScoped

func ClusterScoped(obj ast.FileObject) status.Error

ClusterScoped validates the given FileObject as a cluster-scoped resource to ensure it does not have a namespace or a namespace selector.

func ClusterScopedForNamespaceReconciler

func ClusterScopedForNamespaceReconciler(obj ast.FileObject) status.Error

ClusterScopedForNamespaceReconciler immediately throws an error for any given cluster-scoped resource because a namespace reconciler should only manage namespace-scoped resources.

func NamespaceScoped

func NamespaceScoped(obj ast.FileObject) status.Error

NamespaceScoped validates the given FileObject as a namespace-scoped resource to ensure it does not have both namespace and namespace selector.

func NamespaceSelectors

func NamespaceSelectors(objs *fileobjects.Scoped) status.MultiError

NamespaceSelectors validates that all NamespaceSelectors have a unique name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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