spark_on_k8s.api.namespace_scope¶
Implementation reference. These symbols describe how the project works; their presence here does not make them supported application imports. Use the documented entry points and support policy.
NamespaceScope
dataclass
¶
Namespaces the API serves; namespaces is None when every namespace is in scope.
Source code in spark_on_k8s/api/namespace_scope.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
require(namespace)
¶
Reject a request target before any Kubernetes call or Spark UI connection.
Source code in spark_on_k8s/api/namespace_scope.py
62 63 64 65 66 67 68 69 70 71 72 73 | |
require_configured(namespaces, setting)
¶
Fail at startup when another setting names a namespace the API would refuse.
Source code in spark_on_k8s/api/namespace_scope.py
75 76 77 78 79 80 81 | |
current_namespace()
cached
¶
Resolve the namespace kubectl would use: the pod's own, else the kubeconfig context's.
Source code in spark_on_k8s/api/namespace_scope.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
parse_namespaces(value)
¶
Parse empty (the current namespace), * (every namespace) or a comma-separated list.
Source code in spark_on_k8s/api/namespace_scope.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 | |