- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validateKMSConfigName (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption.go
} func validateKMSConfiguration(c *apiserver.KMSConfiguration, fieldPath *field.Path, kmsProviderNames sets.Set[string], reload bool) field.ErrorList { allErrs := field.ErrorList{} allErrs = append(allErrs, validateKMSConfigName(c, fieldPath.Child("name"), kmsProviderNames, reload)...) allErrs = append(allErrs, validateKMSTimeout(c, fieldPath.Child("timeout"))...) allErrs = append(allErrs, validateKMSEndpoint(c, fieldPath.Child("endpoint"))...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 20:54:24 UTC 2023 - 13.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption_test.go
field.Invalid(nameField, "foo", fmt.Sprintf(duplicateKMSConfigNameErrFmt, "foo")), }, }} for _, tt := range testCases { t.Run(tt.desc, func(t *testing.T) { got := validateKMSConfigName(tt.in, nameField, tt.kmsProviderNames, tt.reload) if d := cmp.Diff(tt.want, got); d != "" { t.Fatalf("KMS Provider validation mismatch (-want +got):\n%s", d) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 18 20:54:24 UTC 2023 - 33.7K bytes - Viewed (0)