- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for AddAnnotation (0.2 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) -
staging/src/k8s.io/apiserver/pkg/admission/attributes.go
if value.level.Less(maxLevel) || value.level == maxLevel { cp[key] = value.value } } return cp } // AddAnnotation adds an annotation to attributesRecord with Metadata audit level func (record *attributesRecord) AddAnnotation(key, value string) error { return record.AddAnnotationWithLevel(key, value, auditinternal.LevelMetadata) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 07 17:53:14 UTC 2019 - 6.2K 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) -
pkg/apis/imagepolicy/types.go
// may truncate excessively long errors when displaying to the user. Reason string // 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). AuditAnnotations map[string]string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 08:53:21 UTC 2019 - 2.6K 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) -
platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/transform/RulesVisitor.java
Boolean isRulesBlock = method.getCode().getNodeMetaData(AST_NODE_METADATA_KEY); if (isRulesBlock != null) { AnnotationNode markerAnnotation = new AnnotationNode(ANNOTATION_CLASS_NODE); node.addAnnotation(markerAnnotation); } } @Override public void visitBlockStatement(BlockStatement block) { block.setNodeMetaData(AST_NODE_METADATA_KEY, true);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 8.6K bytes - Viewed (0)