Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AddWarning (0.17 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    		r.delegate.ServeHTTP(w, req)
    		return
    	}
    
    	deprecated := crdInfo.deprecated[requestInfo.APIVersion]
    	for _, w := range crdInfo.warnings[requestInfo.APIVersion] {
    		warning.AddWarning(req.Context(), "", w)
    	}
    
    	verb := strings.ToUpper(requestInfo.Verb)
    	resource := requestInfo.Resource
    	subresource := requestInfo.Subresource
    	scope := metrics.CleanScope(requestInfo)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    	sync.Mutex
    	warnings sets.Set[string]
    }
    
    func newWarningRecorder() *warningRecorder {
    	return &warningRecorder{warnings: sets.New[string]()}
    }
    
    func (r *warningRecorder) AddWarning(_, text string) {
    	r.Lock()
    	defer r.Unlock()
    	r.warnings.Insert(text)
    	return
    }
    
    func (r *warningRecorder) hasWarning(text string) bool {
    	r.Lock()
    	defer r.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)
  3. pkg/registry/core/pod/strategy_test.go

    			}
    		})
    	}
    }
    
    type warningRecorder struct {
    	warnings []string
    }
    
    var _ warning.Recorder = &warningRecorder{}
    
    func (w *warningRecorder) AddWarning(_, text string) {
    	w.warnings = append(w.warnings, text)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
Back to top