This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # kubedeployshell.sh | |
| # run a shell on a kubernetes container based on deployment name | |
| cmd=/bin/bash | |
| function help() { | |
| echo "usage: $0 [options] deployment [container]" | |
| echo " [-h] display this help command" | |
| echo " [-c command] command to execute on container" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun plist-to-alist (the-plist) | |
| (defsubst get-tuple-from-plist (the-plist) | |
| (when the-plist | |
| (cons (car the-plist) (cadr the-plist)))) | |
| (let ((alist '())) | |
| (while the-plist | |
| (add-to-list 'alist (get-tuple-from-plist the-plist)) | |
| (setq the-plist (cddr the-plist))) | |
| alist)) |