mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Fixing broken persistentvolume nfs example
This commit is contained in:
		@@ -151,6 +151,7 @@ func TestExampleObjectSchemas(t *testing.T) {
 | 
				
			|||||||
			"local-01": &api.PersistentVolume{},
 | 
								"local-01": &api.PersistentVolume{},
 | 
				
			||||||
			"local-02": &api.PersistentVolume{},
 | 
								"local-02": &api.PersistentVolume{},
 | 
				
			||||||
			"gce":      &api.PersistentVolume{},
 | 
								"gce":      &api.PersistentVolume{},
 | 
				
			||||||
 | 
								"nfs":      &api.PersistentVolume{},
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		"../examples/persistent-volumes/claims": {
 | 
							"../examples/persistent-volumes/claims": {
 | 
				
			||||||
			"claim-01": &api.PersistentVolumeClaim{},
 | 
								"claim-01": &api.PersistentVolumeClaim{},
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										12
									
								
								examples/persistent-volumes/volumes/nfs.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								examples/persistent-volumes/volumes/nfs.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					apiVersion: v1beta3
 | 
				
			||||||
 | 
					kind: PersistentVolume
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: pv0003
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  capacity:
 | 
				
			||||||
 | 
					    storage: 5Gi
 | 
				
			||||||
 | 
					  accessModes:
 | 
				
			||||||
 | 
					    - ReadWriteOnce
 | 
				
			||||||
 | 
					  nfs:
 | 
				
			||||||
 | 
					    path: /tmp
 | 
				
			||||||
 | 
					    server: 172.17.0.2
 | 
				
			||||||
@@ -1,9 +0,0 @@
 | 
				
			|||||||
id: pv0003
 | 
					 | 
				
			||||||
kind: PersistentVolume
 | 
					 | 
				
			||||||
apiVersion: v1beta1
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  source:
 | 
					 | 
				
			||||||
    nfsMount:
 | 
					 | 
				
			||||||
      server: "172.17.0.2"
 | 
					 | 
				
			||||||
      path: "/tmp"
 | 
					 | 
				
			||||||
      readOnly: false
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user