mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Updated recycler template with exit code on failure.
This commit is contained in:
		@@ -452,7 +452,7 @@ func NewPersistentVolumeRecyclerPodTemplate() *api.Pod {
 | 
				
			|||||||
					Name:    "pv-recycler",
 | 
										Name:    "pv-recycler",
 | 
				
			||||||
					Image:   "gcr.io/google_containers/busybox",
 | 
										Image:   "gcr.io/google_containers/busybox",
 | 
				
			||||||
					Command: []string{"/bin/sh"},
 | 
										Command: []string{"/bin/sh"},
 | 
				
			||||||
					Args:    []string{"-c", "test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/* ; echo $(date) > /scrub/trash.txt && exit 0 "},
 | 
										Args:    []string{"-c", "test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/*  && test -z \"$(ls -A /scrub)\" || exit 1"},
 | 
				
			||||||
					VolumeMounts: []api.VolumeMount{
 | 
										VolumeMounts: []api.VolumeMount{
 | 
				
			||||||
						{
 | 
											{
 | 
				
			||||||
							Name:      "vol",
 | 
												Name:      "vol",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user