- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for validateAnnotations (0.56 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta.go
var BannedOwners = map[schema.GroupVersionKind]struct{}{ {Group: "", Version: "v1", Kind: "Event"}: {}, } // ValidateAnnotations validates that a set of annotations are correctly defined. func ValidateAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} for k := range annotations {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 07 03:12:31 UTC 2022 - 12K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta_test.go
{ "a": strings.Repeat("b", TotalAnnotationSizeLimitB/2-1), "c": strings.Repeat("d", TotalAnnotationSizeLimitB/2-1), }, } for i := range successCases { errs := ValidateAnnotations(successCases[i], field.NewPath("field")) if len(errs) != 0 { t.Errorf("case[%d] expected success, got %#v", i, errs) } } nameErrorCases := []struct { annotations map[string]string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 07 03:12:31 UTC 2022 - 17.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope.go
} return nil } // validateAnnotations tests the following: // 1. checks if the annotation key is fully qualified // 2. The size of annotations keys + values is less than 32 kB. func validateAnnotations(annotations map[string][]byte) error { var errs []error var totalSize uint64 for k, v := range annotations {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 00:23:50 UTC 2023 - 18.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 16:50:20 UTC 2023 - 47.2K bytes - Viewed (0) -
pkg/apis/apps/validation/validation.go
allErrs = append(allErrs, unversionedvalidation.ValidateLabels(template.Labels, fldPath.Child("labels"))...) allErrs = append(allErrs, apivalidation.ValidateAnnotations(template.Annotations, fldPath.Child("annotations"))...) allErrs = append(allErrs, apivalidation.ValidatePodSpecificAnnotations(template.Annotations, &template.Spec, fldPath.Child("annotations"), opts)...) } return allErrs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 06 22:11:20 UTC 2024 - 41.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter.go
} var errs field.ErrorList if fld == "labels" { errs = metav1validation.ValidateLabels(stringMap, field.NewPath("metadata", "labels")) } else { errs = apivalidation.ValidateAnnotations(stringMap, field.NewPath("metadata", "annotation")) } if len(errs) > 0 { return errs.ToAggregate() } } convertedMetaData[fld] = responseField } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 07 19:37:55 UTC 2023 - 20.6K bytes - Viewed (0) -
pkg/kube/inject/inject.go
func RunTemplate(params InjectionParameters) (mergedPod *corev1.Pod, templatePod *corev1.Pod, err error) { metadata := ¶ms.pod.ObjectMeta meshConfig := params.meshConfig if err := validateAnnotations(metadata.GetAnnotations()); err != nil { log.Errorf("Injection failed due to invalid annotations: %v", err) return nil, nil, err } cluster, network := extractClusterAndNetwork(params)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 20:35:11 UTC 2024 - 28.8K bytes - Viewed (0)