kubectl-view-secret() {
	kubectl get secret $1 -o json | jq '.data | map_values(@base64d)'
}

kubectl-restart() {
	kubectl get deploy $1 -o json | jq \
		'del(
			 .spec.template.spec.containers[0].env[] 
			 | select(.name == "RESTART_")) 
		| .spec.template.spec.containers[0].env += [{name: "RESTART_", value: now|tostring}]' | kubectl apply -f -
}

kubectl-view-secret() {
	kubectl get secret $1 -o json | jq '.data | map_values(@base64d)'
}

kubectl-restart() {
	kubectl get deploy $1 -o json | jq \
		'del(
			 .spec.template.spec.containers[0].env[] 
			 | select(.name == "RESTART_")) 
		| .spec.template.spec.containers[0].env += [{name: "RESTART_", value: now|tostring}]' | kubectl apply -f -
}

kubectl-delete-evicted() {
  kubectl get po --all-namespaces -o json | \
		jq  '.items[] | 
			select(.status.reason!=null) | 
			select(.status.reason | 
			contains("Evicted")) | 
			"kubectl delete po \(.metadata.name) -n \(.metadata.namespace)"' | xargs -n 1 bash -c
}

Add alias to delete evicted pods
Add alias to delete evicted pods
