Route railiance01 admin kubeconfig through an attended lane
Assistant: grok Assistant-Session: 01a1625d-4770-76a0-8dee-7f5c514a47eb
This commit is contained in:
parent
97c2e3533d
commit
537d551ef2
7 changed files with 94 additions and 4 deletions
|
|
@ -118,7 +118,14 @@ def build() -> tuple[str, int]:
|
|||
|
||||
def _to_data_path(template: str) -> str | None:
|
||||
import re
|
||||
if re.search(r"[<>{}*]", template) or " " in template or template.startswith("k8s:"):
|
||||
# A leading slash is a filesystem path, not an OpenBao mount. partition()
|
||||
# would otherwise invent an empty mount and a fake `/data/...` address.
|
||||
if (
|
||||
re.search(r"[<>{}*]", template)
|
||||
or " " in template
|
||||
or template.startswith("k8s:")
|
||||
or template.startswith("/")
|
||||
):
|
||||
return None
|
||||
mount, _, rest = template.partition("/")
|
||||
return f"{mount}/data/{rest}" if rest else None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue