namespaceOf

fun namespaceOf(file: Path): String?

The namespace in file, the pod's service account's; null when there is none, as off Kubernetes.