Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 144 for expvar (0.28 sec)

  1. pkg/kubelet/kubelet_pods_test.go

    			ns:                 "test1",
    			enableServiceLinks: &falseValue,
    			container:          &v1.Container{Env: []v1.EnvVar{}},
    			nilLister:          false,
    			staticPod:          false,
    			unsyncedServices:   true,
    			expectedEnvs:       []kubecontainer.EnvVar{},
    			expectedError:      true,
    		},
    		{
    			name:               "if services aren't synced, static pods should succeed", // if there is no service
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  2. src/runtime/security_test.go

    	}
    }
    
    func TestSUID(t *testing.T) {
    	// This test is relatively simple, we build a test program which opens a
    	// file passed via the TEST_OUTPUT envvar, prints the value of the
    	// GOTRACEBACK envvar to stdout, and prints "hello" to stderr. We then chown
    	// the program to "nobody" and set u+s on it. We execute the program, only
    	// passing it two files, for stdin and stdout, and passing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 18:10:14 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. internal/config/identity/openid/jwt.go

    )
    
    func updateClaimsExpiry(dsecs string, claims map[string]interface{}) error {
    	expStr := claims["exp"]
    	if expStr == "" {
    		return ErrTokenExpired
    	}
    
    	// No custom duration requested, the claims can be used as is.
    	if dsecs == "" {
    		return nil
    	}
    
    	if _, err := auth.ExpToInt64(expStr); err != nil {
    		return err
    	}
    
    	defaultExpiryDuration, err := GetDefaultExpiration(dsecs)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/envcmd/env_test.go

    				t.Skipf("skipping %#q on Windows: contains unescapable character %q", s, c)
    			}
    		}
    
    		var b bytes.Buffer
    		if runtime.GOOS == "windows" {
    			b.WriteString("@echo off\n")
    		}
    		PrintEnv(&b, []cfg.EnvVar{{Name: "var", Value: s}}, false)
    		var want string
    		if runtime.GOOS == "windows" {
    			fmt.Fprintf(&b, "echo \"%%var%%\"\n")
    			want += "\"" + s + "\"\r\n"
    		} else {
    			fmt.Fprintf(&b, "printf '%%s\\n' \"$var\"\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/etcd/local_test.go

    	cfg := &kubeadmapi.ClusterConfiguration{
    		KubernetesVersion: "v1.7.0",
    		Etcd: kubeadmapi.Etcd{
    			Local: &kubeadmapi.LocalEtcd{
    				DataDir: "/var/lib/etcd",
    				ExtraEnvs: []kubeadmapi.EnvVar{
    					{
    						EnvVar: v1.EnvVar{Name: "Foo", Value: "Bar"},
    					},
    				},
    			},
    		},
    	}
    	endpoint := &kubeadmapi.APIEndpoint{}
    
    	// Executes GetEtcdPodSpec
    	spec := GetEtcdPodSpec(cfg, endpoint, "", []etcdutil.Member{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 14:07:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. plugin/pkg/admission/serviceaccount/admission_test.go

    		t.Errorf("Unexpected error: %v", err)
    	}
    
    	pod2 := &api.Pod{
    		Spec: api.PodSpec{
    			Containers: []api.Container{
    				{
    					Name: "container-1",
    					Env: []api.EnvVar{
    						{
    							Name: "env-1",
    							ValueFrom: &api.EnvVarSource{
    								SecretKeyRef: &api.SecretKeySelector{
    									LocalObjectReference: api.LocalObjectReference{Name: "foo"},
    								},
    							},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/devicemanager/manager_test.go

    		expectedAllocatedResName2 int
    		expErr                    error
    	}{
    		{
    			description:               "Successful allocation of two Res1 resources and one Res2 resource",
    			testPod:                   testPods[0],
    			expectedContainerOptsLen:  []int{3, 2, 2},
    			expectedAllocatedResName1: 2,
    			expectedAllocatedResName2: 1,
    			expErr:                    nil,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  8. cmd/erasure-multipart.go

    				PartSize:   expPart.ActualSize,
    				PartETag:   part.ETag,
    			}
    		}
    
    		// Save for total object size.
    		objectSize += expPart.Size
    
    		// Save the consolidated actual size.
    		objectActualSize += expPart.ActualSize
    
    		// Add incoming parts.
    		fi.Parts[i] = ObjectPartInfo{
    			Number:     part.PartNumber,
    			Size:       expPart.Size,
    			ActualSize: expPart.ActualSize,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  9. pkg/api/pod/util.go

    	for _, env := range container.EnvFrom {
    		if env.SecretRef != nil {
    			if !visitor(env.SecretRef.Name) {
    				return false
    			}
    		}
    	}
    	for _, envVar := range container.Env {
    		if envVar.ValueFrom != nil && envVar.ValueFrom.SecretKeyRef != nil {
    			if !visitor(envVar.ValueFrom.SecretKeyRef.Name) {
    				return false
    			}
    		}
    	}
    	return true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/apis/kubeadm/v1beta3/conversion.go

    func Convert_v1beta3_ControlPlaneComponent_To_kubeadm_ControlPlaneComponent(in *ControlPlaneComponent, out *kubeadm.ControlPlaneComponent, s conversion.Scope) error {
    	out.ExtraEnvs = []kubeadm.EnvVar{}
    	out.ExtraArgs = convertToArgs(in.ExtraArgs)
    	return autoConvert_v1beta3_ControlPlaneComponent_To_kubeadm_ControlPlaneComponent(in, out, s)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 06:41:07 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top