Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AddAnnotationWithLevel (0.31 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/attributes.go

    // 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)
    }
    
    func (record *attributesRecord) AddAnnotationWithLevel(key, value string, level auditinternal.Level) error {
    	if err := checkKeyFormat(key); err != nil {
    		return err
    	}
    	if level.Less(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)
  2. staging/src/k8s.io/apiserver/pkg/admission/interfaces.go

    	// equal to Metadata.
    	AddAnnotation(key, value string) error
    
    	// AddAnnotationWithLevel sets annotation according to key-value pair with additional intended audit level.
    	// An Annotation gets logged into audit event if the request's audit level is greater or equal to the
    	// intended audit level.
    	AddAnnotationWithLevel(key, value string, level auditinternal.Level) error
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 28 14:03:18 UTC 2021
    - 8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/testcase.go

    // AddAnnotation adds an annotation key value pair to FakeAttributes
    func (f *FakeAttributes) AddAnnotation(k, v string) error {
    	return f.AddAnnotationWithLevel(k, v, auditinternal.LevelMetadata)
    }
    
    // AddAnnotationWithLevel adds an annotation key value pair to FakeAttributes
    func (f *FakeAttributes) AddAnnotationWithLevel(k, v string, _ auditinternal.Level) error {
    	f.mutex.Lock()
    	defer f.mutex.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 47.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    func (f *FakeAttributes) AddAnnotation(k, v string) error {
    	return f.AddAnnotationWithLevel(k, v, auditinternal.LevelMetadata)
    }
    
    // AddAnnotationWithLevel adds an annotation key value pair to FakeAttributes
    func (f *FakeAttributes) AddAnnotationWithLevel(k, v string, _ auditinternal.Level) error {
    	f.mutex.Lock()
    	defer f.mutex.Unlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    			return
    		}
    	default:
    		klog.Warningf("unsupported patch type for mutating webhook annotation: %v", patchType)
    		return
    	}
    	if err := w.attr.Attributes.AddAnnotationWithLevel(w.patchAnnotationKey, value, auditinternal.LevelRequest); err != nil {
    		// NOTE: we don't log actual patch in kube-apiserver log to avoid potentially
    		// leaking information
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top