Array in YAML causes Kubernetes charm failed deployment
Bug #1842691 reported by
Tom Barber
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
I've been testing K8S charms and specifically, one image I use uses square bracket arrays in the pod spec environment variables:
druid_
This causes the deployment to fail with:
parsing unit spec for dc4: error unmarshaling JSON: json: cannot unmarshal array into Go struct field EnvVar.value of type string
But is valid Kubernetes deployment YAML. I don't want to fork the upstream containers for a reason that is Juju related.
More details can be found here: https:/
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks, this is an issue because the upstream container expects the [] values and so it can't be easily worked around without changing the upstream container.