Hey all, is there a recommended approach for addin...
# kubernetes
p
Hey all, is there a recommended approach for adding a label to an already existing namespace "default" (using Go), was looking quickly at the SDK and it seemed to be limited to newly created namespaces only, and testing it quickly confirmed it.
Copy code
_, err = k8s.NewNamespace(ctx, "default", &k8s.NamespaceArgs{
		Metadata: &meta.ObjectMetaArgs{
			Labels: pulumi.StringMap{"foo": pulumi.String("bar")},
		},
	}, pulumi.Provider(input.K8sProvider))
	if err != nil {
		return err
	}
b
is importing the namespace an option? in that case you can just add it that way
p
ideally, I would like to keep this fully managed but can do an import as a workaround in the mean time. 👍
b
if you don't want to import, the kubernetes go-sdk is probably your best bet (not the pulumi kubernetes one)
p
👍