Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for AddAnnotation (0.23 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top