Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for AddWarning (0.37 sec)

  1. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileProblemsIntegrationTest.groovy

            generator.addWarning()
            generator.addWarning()
            return generator.save()
        }
    
        TestFile writeJavaCausingTwoCompilationErrorsAndTwoWarnings(String className) {
            def generator = new ProblematicClassGenerator(className)
            generator.addError()
            generator.addError()
            generator.addWarning()
            generator.addWarning()
            return generator.save()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:15:29 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    				break loop
    			default:
    				warning.AddWarning(r.Context(), "a", "1")
    			}
    		}
    		// the request has just timed out, write to catch read/write races
    		warning.AddWarning(r.Context(), "agent", "text")
    
    		// give time for the timeout response to be written, then try to
    		// write a response header to catch the "Header after Handler finished" panic
    		<-clientDoneCh
    
    		warning.AddWarning(r.Context(), "agent", "text")
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. pkg/registry/batch/job/storage/storage_test.go

    	test := genericregistrytest.New(t, storage.Job.Store)
    	test.TestDelete(validNewJob())
    }
    
    type dummyRecorder struct {
    	agent string
    	text  string
    }
    
    func (r *dummyRecorder) AddWarning(agent, text string) {
    	r.agent = agent
    	r.text = text
    	return
    }
    
    func (r *dummyRecorder) getWarning() string {
    	return r.text
    }
    
    var _ warning.Recorder = &dummyRecorder{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. pkg/registry/core/serviceaccount/storage/token.go

    		}
    	}
    
    	if r.maxExpirationSeconds > 0 && req.Spec.ExpirationSeconds > r.maxExpirationSeconds {
    		//only positive value is valid
    		warning.AddWarning(ctx, "", fmt.Sprintf("requested expiration of %d seconds shortened to %d seconds", req.Spec.ExpirationSeconds, r.maxExpirationSeconds))
    		req.Spec.ExpirationSeconds = r.maxExpirationSeconds
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go

    								celmetrics.Metrics.ObserveAudit(ctx, decision.Elapsed, definition.Name, binding.Name, "active")
    							case admissionregistrationv1.Warn:
    								warning.AddWarning(ctx, "", fmt.Sprintf("Validation failed for ValidatingAdmissionPolicy '%s' with binding '%s': %s", definition.Name, binding.Name, decision.Message))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    			klog.Warningf("Failed to set admission audit annotation %s to %s for mutating webhook %s: %v", key, v, h.Name, err)
    		}
    	}
    	for _, w := range result.Warnings {
    		warning.AddWarning(ctx, "", w)
    	}
    
    	if !result.Allowed {
    		return false, &webhookutil.ErrWebhookRejection{Status: webhookerrors.ToStatusErr(h.Name, result.Result)}
    	}
    
    	if len(result.Patch) == 0 {
    		return false, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. pkg/registry/core/pod/strategy.go

    					// typical WarningsOnCreate path to emit the warning before syncing the
    					// annotations & fields.
    					fldPath := field.NewPath("metadata", "annotations").Key(key)
    					warning.AddWarning(ctx, "", fmt.Sprintf(`%s: deprecated since v1.30; use the "appArmorProfile" field instead`, fldPath))
    				}
    			}
    
    			return true
    		})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go

    				currentFldPath = currentFldPath.Child(compiled.NormalizedRuleFieldPath)
    			}
    
    			addErr := func(e *field.Error) {
    				if !compiled.UsesOldSelf && correlation.shouldRatchetError() {
    					warning.AddWarning(ctx, "", e.Error())
    				} else {
    					errs = append(errs, e)
    				}
    			}
    
    			if compiled.MessageExpression != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top