pod-spec-set: can't create custom resources in another namespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
When calling pod-spec-set with a customResource that has a namespace in its metadata, the custom resource does not get created. The pod spec looks something like:
kubernetesResou
customResourc
name: network-
spec: ...
customResources:
network-
- apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachme
metadata:
name: test
namespace: default
spec: ...
The controller logs an error:
controller-0: 15:06:31 ERROR juju.worker.
Attached juju debug-log output with log level at DEBUG. Output includes a full dump of the pod spec.