common

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultImagePublishContentLibraryLabelKey = "imageregistry.vmware.com/default"
)

Variables

This section is empty.

Functions

func BuildValidationResponse

func BuildValidationResponse(
	ctx *pkgctx.WebhookRequestContext,
	validationWarnings admission.Warnings,
	validationErrs []string,
	err error,
	additionalValidationErrors ...string) (response admission.Response)

BuildValidationResponse creates the response from one or more validation errors and any errors returned attempting to validate the ingress data.

func ConvertFieldErrorsToStrings added in v1.10.0

func ConvertFieldErrorsToStrings(fieldErrs field.ErrorList) []string

ConvertFieldErrorsToStrings returns a list of error messages from the field.ErrorList's non nil errors.

func RetrieveDefaultImagePublishContentLibrary added in v1.10.0

func RetrieveDefaultImagePublishContentLibrary(ctx context.Context, c ctrlclient.Client, namespace string) (
	*imgregv1a1.ContentLibrary, error)

RetrieveDefaultImagePublishContentLibrary returns the default content library with the "imageregistry.vmware.com/default" label. A NotFound error is returned if no default content library was found. A BadRequest error is returned if more than one default content libraries were found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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