mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Clean apply's prune and kube addons with batch/v1 CronJob
This commit is contained in:
		@@ -46,7 +46,7 @@ if [ -z "${KUBECTL_PRUNE_WHITELIST_OVERRIDE:-}" ]; then
 | 
				
			|||||||
    core/v1/Secret
 | 
					    core/v1/Secret
 | 
				
			||||||
    core/v1/Service
 | 
					    core/v1/Service
 | 
				
			||||||
    batch/v1/Job
 | 
					    batch/v1/Job
 | 
				
			||||||
    batch/v1beta1/CronJob
 | 
					    batch/v1/CronJob
 | 
				
			||||||
    apps/v1/DaemonSet
 | 
					    apps/v1/DaemonSet
 | 
				
			||||||
    apps/v1/Deployment
 | 
					    apps/v1/Deployment
 | 
				
			||||||
    apps/v1/ReplicaSet
 | 
					    apps/v1/ReplicaSet
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -184,7 +184,7 @@ func getRESTMappings(mapper meta.RESTMapper, pruneResources *[]pruneResource) (n
 | 
				
			|||||||
			{"", "v1", "Secret", true},
 | 
								{"", "v1", "Secret", true},
 | 
				
			||||||
			{"", "v1", "Service", true},
 | 
								{"", "v1", "Service", true},
 | 
				
			||||||
			{"batch", "v1", "Job", true},
 | 
								{"batch", "v1", "Job", true},
 | 
				
			||||||
			{"batch", "v1beta1", "CronJob", true},
 | 
								{"batch", "v1", "CronJob", true},
 | 
				
			||||||
			{"networking.k8s.io", "v1", "Ingress", true},
 | 
								{"networking.k8s.io", "v1", "Ingress", true},
 | 
				
			||||||
			{"apps", "v1", "DaemonSet", true},
 | 
								{"apps", "v1", "DaemonSet", true},
 | 
				
			||||||
			{"apps", "v1", "Deployment", true},
 | 
								{"apps", "v1", "Deployment", true},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user