Documentation
¶
Index ¶
- Constants
- Variables
- func AdmitPackageConfiguration(ctx context.Context, configuration map[string]any, ...) (field.ErrorList, error)
- func ValidatePackageConfiguration(ctx context.Context, mc *manifests.PackageManifestSpecConfig, ...) (field.ErrorList, error)
- func ValidatePackageManifest(ctx context.Context, obj *manifests.PackageManifest) (field.ErrorList, error)
- func ValidatePackageManifestLock(_ context.Context, obj *manifests.PackageManifestLock) (field.ErrorList, error)
- type OpenAPISchemaErrorList
Constants ¶
View Source
const (
OpenapiV3TypeObject = "object"
)
Variables ¶
View Source
var ( ErrDuplicateConfig = errors.New("config raw and object fields are both set") ErrXKubernetesValidations = errors.New("failed to retrieve type information for x-kubernetes-validations") )
Functions ¶
func AdmitPackageConfiguration ¶
func AdmitPackageConfiguration( ctx context.Context, configuration map[string]any, manifest *manifests.PackageManifest, fldPath *field.Path, ) (field.ErrorList, error)
Prunes, Defaults and Validates configuration against the PackageManifests OpenAPISchema so it's ready to be used.
func ValidatePackageConfiguration ¶
func ValidatePackageConfiguration( ctx context.Context, mc *manifests.PackageManifestSpecConfig, configuration map[string]any, fldPath *field.Path, ) (field.ErrorList, error)
Validates configuration against the PackageManifests OpenAPISchema.
func ValidatePackageManifest ¶
func ValidatePackageManifest(ctx context.Context, obj *manifests.PackageManifest) (field.ErrorList, error)
Validates the PackageManifest.
func ValidatePackageManifestLock ¶
func ValidatePackageManifestLock(_ context.Context, obj *manifests.PackageManifestLock) (field.ErrorList, error)
Validates the PackageManifestLock.
Types ¶
Click to show internal directories.
Click to hide internal directories.