Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewVolumeMount (0.24 sec)

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

    	vol := staticpodutil.NewVolume(mountName, hostPath, hostPathType)
    	c.addComponentVolume(component, vol)
    	volMount := staticpodutil.NewVolumeMount(mountName, containerPath, readOnly)
    	c.addComponentVolumeMount(component, volMount)
    }
    
    func (c *controlPlaneHostPathMounts) AddHostPathMounts(component string, vols []v1.Volume, volMounts []v1.VolumeMount) {
    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. cmd/kubeadm/app/phases/etcd/local.go

    			// Mount the etcd datadir path read-write so etcd can store data in a more persistent manner
    			VolumeMounts: []v1.VolumeMount{
    				staticpodutil.NewVolumeMount(etcdVolumeName, cfg.Etcd.Local.DataDir, false),
    				staticpodutil.NewVolumeMount(certsVolumeName, cfg.CertificatesDir+"/etcd", false),
    			},
    			Resources: v1.ResourceRequirements{
    				Requests: v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 14:07:27 UTC 2024
    - 13.8K bytes
    - Viewed (1)
  3. cmd/kubeadm/app/util/staticpod/utils.go

    		Name: name,
    		VolumeSource: v1.VolumeSource{
    			HostPath: &v1.HostPathVolumeSource{
    				Path: path,
    				Type: pathType,
    			},
    		},
    	}
    }
    
    // NewVolumeMount creates a v1.VolumeMount to the specified location
    func NewVolumeMount(name, path string, readOnly bool) v1.VolumeMount {
    	return v1.VolumeMount{
    		Name:      name,
    		MountPath: path,
    		ReadOnly:  readOnly,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/staticpod/utils_test.go

    				ReadOnly:  true,
    			},
    		},
    	}
    
    	for _, rt := range tests {
    		t.Run(rt.name, func(t *testing.T) {
    			actual := NewVolumeMount(rt.name, rt.path, rt.ro)
    			if !reflect.DeepEqual(actual, rt.expected) {
    				t.Errorf(
    					"failed newVolumeMount:\n\texpected: %v\n\t  actual: %v",
    					rt.expected,
    					actual,
    				)
    			}
    		})
    	}
    }
    func TestVolumeMapToSlice(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 12 15:44:44 UTC 2023
    - 22.6K bytes
    - Viewed (0)
Back to top