Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for VolumeMounts (0.31 sec)

  1. cmd/kubeadm/app/phases/controlplane/volumes.go

    func (c *controlPlaneHostPathMounts) addComponentVolumeMount(component string, volMount v1.VolumeMount) {
    	if _, ok := c.volumeMounts[component]; !ok {
    		c.volumeMounts[component] = map[string]v1.VolumeMount{}
    	}
    	c.volumeMounts[component][volMount.Name] = volMount
    }
    
    // getEtcdCertVolumes returns the volumes/volumemounts needed for talking to an external etcd cluster
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:33:18 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. plugin/pkg/admission/serviceaccount/admission_test.go

    	}
    	if len(pod.Spec.Containers[0].VolumeMounts) != 1 {
    		t.Fatalf("Expected 1 volume mount, got %d", len(pod.Spec.Containers[0].VolumeMounts))
    	}
    	if !reflect.DeepEqual(expectedVolumeMount, pod.Spec.Containers[0].VolumeMounts[0]) {
    		t.Fatalf("Expected\n\t%#v\ngot\n\t%#v", expectedVolumeMount, pod.Spec.Containers[0].VolumeMounts[0])
    	}
    
    	// testing InitContainers
    	pod = &api.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. tests/integration/security/file_mounted_certs/main_test.go

                      defaultMode: 420
                - path: spec.template.spec.containers[0].volumeMounts[100]
                  value: |-
                    name: server-certs
                    mountPath: /server-certs
                - path: spec.template.spec.containers[0].volumeMounts[101]
                  value: |-
                    name: client-certs
                    mountPath: /client-certs
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. pkg/kubelet/container/helpers_test.go

    	}{
    		{
    			name: "subpath with no expansion",
    			container: &v1.Container{
    				VolumeMounts: []v1.VolumeMount{{SubPathExpr: "foo"}},
    			},
    			expectedSubPath:   "foo",
    			expectedMountPath: "",
    			expectedOk:        true,
    		},
    		{
    			name: "volumes with expanded subpath",
    			container: &v1.Container{
    				VolumeMounts: []v1.VolumeMount{{SubPathExpr: "foo/$(POD_NAME)"}},
    			},
    			envs: []EnvVar{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. pkg/volume/util/util_test.go

    						{
    							Name: "container1",
    							VolumeMounts: []v1.VolumeMount{
    								{
    									Name: "vol1",
    								},
    							},
    						},
    					},
    					EphemeralContainers: []v1.EphemeralContainer{
    						{
    							EphemeralContainerCommon: v1.EphemeralContainerCommon{
    								Name: "debugger",
    								VolumeMounts: []v1.VolumeMount{
    									{
    										Name: "vol1",
    									},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  6. plugin/pkg/admission/serviceaccount/admission.go

    		for _, volumeMount := range container.VolumeMounts {
    			// Existing mounts at the default mount path prevent mounting of the API token
    			if volumeMount.MountPath == DefaultAPITokenMountPath {
    				existingContainerMount = true
    				break
    			}
    		}
    		if !existingContainerMount {
    			pod.Spec.InitContainers[i].VolumeMounts = append(pod.Spec.InitContainers[i].VolumeMounts, volumeMount)
    			needsTokenVolume = true
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.Pod.yaml

        terminationMessagePath: terminationMessagePathValue
        terminationMessagePolicy: terminationMessagePolicyValue
        tty: true
        volumeDevices:
        - devicePath: devicePathValue
          name: nameValue
        volumeMounts:
        - mountPath: mountPathValue
          mountPropagation: mountPropagationValue
          name: nameValue
          readOnly: true
          recursiveReadOnly: recursiveReadOnlyValue
          subPath: subPathValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.yaml

        terminationMessagePath: terminationMessagePathValue
        terminationMessagePolicy: terminationMessagePolicyValue
        tty: true
        volumeDevices:
        - devicePath: devicePathValue
          name: nameValue
        volumeMounts:
        - mountPath: mountPathValue
          mountPropagation: mountPropagationValue
          name: nameValue
          readOnly: true
          recursiveReadOnly: recursiveReadOnlyValue
          subPath: subPathValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/controlplane/volumes_test.go

    			delete(mounts.volumeMounts[kubeadmconstants.KubeControllerManager], flexvolumeDirVolumeName)
    			if !reflect.DeepEqual(mounts.volumes, rt.vol) {
    				t.Errorf(
    					"failed getHostPathVolumesForTheControlPlane:\n\texpected: %v\n\t  actual: %v",
    					rt.vol,
    					mounts.volumes,
    				)
    			}
    			if !reflect.DeepEqual(mounts.volumeMounts, rt.volMount) {
    				t.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:33:18 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  10. pkg/api/pod/util.go

    		for i := range podSpec.Containers {
    			for j := range podSpec.Containers[i].VolumeMounts {
    				podSpec.Containers[i].VolumeMounts[j].RecursiveReadOnly = nil
    			}
    		}
    		for i := range podSpec.InitContainers {
    			for j := range podSpec.InitContainers[i].VolumeMounts {
    				podSpec.InitContainers[i].VolumeMounts[j].RecursiveReadOnly = nil
    			}
    		}
    		for i := range podSpec.EphemeralContainers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
Back to top