cluster/lib/cluster/runner.rb in sct-0.1.20 vs cluster/lib/cluster/runner.rb in sct-0.1.21
- old
+ new
@@ -69,9 +69,21 @@
else
run_command "kubectl delete pods #{stalled_pods.map { |pod| pod[:name] } .join(" ")}"
end
end
+ def delete_all_pods
+ run_command "kubectl delete pods --all"
+ end
+
+ def delete_pods(args)
+ run_command "kubectl delete pods #{args.join(" ")}"
+ end
+
+ def apply_pods
+ run_command "kubectl apply -f ~/development/spend-cloud/k8s/"
+ end
+
def update_config
if SctCore::Helper.operatingSystem == SctCore::Helper::WINDOWS
windows_home_path = SctCore::Helper.windowsHomePath
kube_file_path = windows_home_path+"/.kube/config"
\ No newline at end of file