(cond
((eq keyword :namespaced) (setq namespaced (pop commands)))
((eq keyword :create) (setq crt-spec (pop commands)))
- ;; FIXME: Add error for unknown keywords
+ ;; FIXME: Add error for unknown keywords.
(t (pop commands))))
;; Extend `commands' with standard commands.
(symbol-name resource)
" `%s' in namespace `%s'...")
name space)
- (if (zerop (apply #'call-process
- kubed-kubectl-executable nil nil nil
- "delete" "--namespace" space
- ,(symbol-name plrl-var) name))
+ (if (zerop (call-process
+ kubed-kubectl-executable nil nil nil
+ "delete" "--namespace" space
+ ,(symbol-name plrl-var) name))
(message ,(concat "Deleting Kubernetes "
(symbol-name resource)
" `%s' in namespace `%s'... Done.")
(error ,(concat "Failed to delete Kubernetes"
(symbol-name resource)
" `%s' in namespace `%s'")
- name space))))
- (message ,(concat "Deleting Kubernetes "
- (symbol-name plrl-var)
- " `%s'...")
- (string-join ,plrl-var "', `"))
- (if (zerop (apply #'call-process
- kubed-kubectl-executable nil nil nil
- "delete" ,(symbol-name plrl-var) ,plrl-var))
- (message ,(concat "Deleting Kubernetes "
- (symbol-name plrl-var)
- " `%s'... Done.")
- (string-join ,plrl-var "', `"))
- (error ,(concat "Failed to delete Kubernetes"
- (symbol-name plrl-var)
- " `%s'")
- (string-join ,plrl-var "', `"))))
+ name space)))
+ (message ,(concat "Deleting Kubernetes "
+ (symbol-name plrl-var)
+ " `%s'...")
+ (string-join ,plrl-var "', `"))
+ (if (zerop (apply #'call-process
+ kubed-kubectl-executable nil nil nil
+ "delete" ,(symbol-name plrl-var) ,plrl-var))
+ (message ,(concat "Deleting Kubernetes "
+ (symbol-name plrl-var)
+ " `%s'... Done.")
+ (string-join ,plrl-var "', `"))
+ (error ,(concat "Failed to delete Kubernetes"
+ (symbol-name plrl-var)
+ " `%s'")
+ (string-join ,plrl-var "', `")))))
`(defun ,dlt-name (,plrl-var)
,(format "Delete Kubernetes %S %s." plrl-var
(upcase (symbol-name plrl-var)))