Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AddAnnotationWithLevel (0.99 sec)

  1. 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)
  2. 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