- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for addAnnotation (0.22 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/attributes_test.go
attr := &attributesRecord{} // test AddAnnotation attr.AddAnnotation("foo.admission.k8s.io/key1", "value1") attr.AddAnnotation("foo.admission.k8s.io/key2", "value2") annotations := attr.getAnnotations(auditinternal.LevelMetadata) assert.Equal(t, annotations["foo.admission.k8s.io/key1"], "value1") // test overwrite assert.Error(t, attr.AddAnnotation("foo.admission.k8s.io/key1", "value1-overwrite"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 19:44:40 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/internal/normalization/java/impl/ApiMemberSelector.java
} @Override public AnnotationVisitor visitAnnotation(String desc, boolean visible) { AnnotationMember ann = new AnnotationMember(desc, visible); classMember.addAnnotation(ann); return new SortingAnnotationVisitor(ann, super.visitAnnotation(desc, visible)); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 7.4K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/InterceptGroovyCallsGenerator.java
TypeSpec.Builder generatedClass = TypeSpec.classBuilder(className) .addAnnotation(GENERATED_ANNOTATION.asClassName()) .superclass(CALL_INTERCEPTOR_CLASS) .addSuperinterface(SIGNATURE_AWARE_CALL_INTERCEPTOR_CLASS) .addSuperinterface(FILTERABLE_CALL_INTERCEPTOR)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:40 UTC 2024 - 16.4K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/internal/normalization/java/impl/AnnotatableMember.java
super(access, name); this.signature = signature; } public SortedSet<AnnotationMember> getAnnotations() { return ImmutableSortedSet.copyOf(annotations); } public void addAnnotation(AnnotationMember annotationMember) { annotations.add(annotationMember); } public String getSignature() { return signature; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/audit_test.go
func (h fakeHandler) Admit(ctx context.Context, a Attributes, o ObjectInterfaces) error { for k, v := range h.admitAnnotations { a.AddAnnotation(k, v) } return h.admit } func (h fakeHandler) Validate(ctx context.Context, a Attributes, o ObjectInterfaces) error { for k, v := range h.validateAnnotations { a.AddAnnotation(k, v) } return h.validate } func (h fakeHandler) Handles(o Operation) bool { return h.handles }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/api/imagepolicy/v1alpha1/generated.proto
// +optional optional string reason = 2; // AuditAnnotations will be added to the attributes object of the // admission controller request using 'AddAnnotation'. The keys should // be prefix-less (i.e., the admission controller will add an // appropriate prefix). // +optional map<string, string> auditAnnotations = 3;
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go
key := fmt.Sprintf("%sround_0_index_%d", ValidatingAuditAnnotationFailedOpenKeyPrefix, idx) value := hookName if err := versionedAttr.Attributes.AddAnnotation(key, value); err != nil { klog.Warningf("Failed to set admission audit annotation %s to %s for validating webhook %s: %v", key, value, hookName, err) } return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 20:24:12 UTC 2023 - 13K bytes - Viewed (0) -
common-protos/k8s.io/api/imagepolicy/v1alpha1/generated.proto
// +optional optional string reason = 2; // AuditAnnotations will be added to the attributes object of the // admission controller request using 'AddAnnotation'. The keys should // be prefix-less (i.e., the admission controller will add an // appropriate prefix). // +optional map<string, string> auditAnnotations = 3;
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/interfaces.go
// GetKind is the type of object being manipulated. For example: Pod GetKind() schema.GroupVersionKind // GetUserInfo is information about the requesting user GetUserInfo() user.Info // AddAnnotation sets annotation according to key-value pair. The key should be qualified, e.g., podsecuritypolicy.admission.k8s.io/admit-policy, where
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 28 14:03:18 UTC 2021 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 14.4K bytes - Viewed (0)