public Optional<String> namespace() {
        return Codegen.stringProp("namespace").config(config).get();
    }
If present, the default namespace to use. This flag is ignored for cluster-scoped resources.

A namespace can be specified in multiple places, and the precedence is as follows:
1. `.metadata.namespace` set on the resource.
2. This `namespace` parameter.
3. `namespace` set for the active context in the kubeconfig.
sdk/java/src/main/java/com/pulumi/kubernetes/Config.java