Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for barValue (0.12 sec)

  1. pkg/apis/resource/validation/validation_resourceclaim_test.go

    	goodName := "foo"
    	badName := "!@#$%^"
    	goodNS := "ns"
    	goodClaimSpec := resource.ResourceClaimSpec{
    		ResourceClassName: goodName,
    		AllocationMode:    validMode,
    	}
    	now := metav1.Now()
    	badValue := "spaces not allowed"
    	badAPIGroup := "example.com/v1"
    	goodAPIGroup := "example.com"
    
    	scenarios := map[string]struct {
    		claim        *resource.ResourceClaim
    		wantFailures field.ErrorList
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/scheduler/apis/config"
    )
    
    var (
    	ignoreBadValueDetail = cmpopts.IgnoreFields(field.Error{}, "BadValue", "Detail")
    )
    
    func TestValidateDefaultPreemptionArgs(t *testing.T) {
    	cases := map[string]struct {
    		args     config.DefaultPreemptionArgs
    		wantErrs field.ErrorList
    	}{
    		"valid args (default)": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  3. src/text/template/exec.go

    // setTopVar overwrites the top-nth variable on the stack. Used by range iterations.
    func (s *state) setTopVar(n int, value reflect.Value) {
    	s.vars[len(s.vars)-n].value = value
    }
    
    // varValue returns the value of the named variable.
    func (s *state) varValue(name string) reflect.Value {
    	for i := s.mark() - 1; i >= 0; i-- {
    		if s.vars[i].name == name {
    			return s.vars[i].value
    		}
    	}
    	s.errorf("undefined variable: %s", name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/conversion.go

    		if !ok {
    			return err
    		}
    		if out.Annotations == nil {
    			out.Annotations = make(map[string]string)
    		}
    		out.Annotations[v1.NonConvertibleAnnotationPrefix+"/"+fieldErr.Field] = reflect.ValueOf(fieldErr.BadValue).String()
    	}
    	if err := Convert_apps_ReplicaSetStatus_To_v1_ReplicationControllerStatus(&in.Status, &out.Status, s); err != nil {
    		return err
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:30:55 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top