kubernetes/staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption.go

const moreThanOneElementErr

const keyLenErrFmt

const unsupportedSchemeErrFmt

const unsupportedKMSAPIVersionErrFmt

const atLeastOneRequiredErrFmt

const invalidURLErrFmt

const mandatoryFieldErrFmt

const base64EncodingErr

const zeroOrNegativeErrFmt

const nonZeroErrFmt

const encryptionConfigNilErr

const invalidKMSConfigNameErrFmt

const duplicateKMSConfigNameErrFmt

const eventsGroupErr

const extensionsGroupErr

const starResourceErr

const overlapErr

const nonRESTAPIResourceErr

const resourceNameErr

const resourceAcrossGroupErr

const duplicateResourceErr

var aesKeySizes

var secretBoxKeySizes

// ValidateEncryptionConfiguration validates a v1.EncryptionConfiguration.
func ValidateEncryptionConfiguration(c *apiserver.EncryptionConfiguration, reload bool) field.ErrorList {}

var anyGroupAnyResource

func validateResourceOverlap(resources []string, fieldPath *field.Path) field.ErrorList {}

func validateResourceNames(resources []string, fieldPath *field.Path) field.ErrorList {}

func validateSingleProvider(provider apiserver.ProviderConfiguration, fieldPath *field.Path) field.ErrorList {}

func validateKeys(keys []apiserver.Key, fieldPath *field.Path, expectedLen []int) field.ErrorList {}

func validateKey(key apiserver.Key, fieldPath *field.Path, expectedLen []int) field.ErrorList {}

func validateKMSConfiguration(c *apiserver.KMSConfiguration, fieldPath *field.Path, kmsProviderNames sets.Set[string], reload bool) field.ErrorList {}

func validateKMSCacheSize(c *apiserver.KMSConfiguration, fieldPath *field.Path) field.ErrorList {}

func validateKMSTimeout(c *apiserver.KMSConfiguration, fieldPath *field.Path) field.ErrorList {}

func validateKMSEndpoint(c *apiserver.KMSConfiguration, fieldPath *field.Path) field.ErrorList {}

func validateKMSAPIVersion(c *apiserver.KMSConfiguration, fieldPath *field.Path) field.ErrorList {}

func validateKMSConfigName(c *apiserver.KMSConfiguration, fieldPath *field.Path, kmsProviderNames sets.Set[string], reload bool) field.ErrorList {}

func hasCapital(input string) bool {}