(or kubed-list-namespace
(nth 3 kubed-display-resource-info)
(kubed--static-if (<= 31 emacs-major-version)
- (and (string-match "[/:]kubernetes:.*%\\([a-z0-9-]+\\):"
+ (and (string-match "[/|]kubernetes:.*%\\([a-z0-9-]+\\):"
default-directory)
(match-string 1 default-directory)))
(kubed-current-namespace (or context (kubed-local-context)))))
(let ((context (kubed-current-context)))
(cons context
(or (kubed--static-if (<= 31 emacs-major-version)
- (and (string-match "[/:]kubernetes:.*%\\([a-z0-9-]+\\):"
+ (and (string-match "[/|]kubernetes:.*%\\([a-z0-9-]+\\):"
default-directory)
(match-string 1 default-directory)))
(kubed-current-namespace context))))))