Array in YAML causes Kubernetes charm failed deployment

Bug #1842691 reported by Tom Barber
6
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_extensions_loadList: '["postgresql-metadata-storage"]'

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://discourse.jujucharms.com/t/square-brackets-in-env-vars/2024

Revision history for this message
Richard Harding (rharding) wrote :

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.

Changed in juju:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Ian Booth (wallyworld)
milestone: none → 2.7-beta1
Revision history for this message
Ian Booth (wallyworld) wrote :

It's not an upstream container issue, it's an issue with how Juju processes the pod spec YAML.
We'll do a Juju fix.

Changed in juju:
milestone: 2.7-beta1 → 2.6.9
status: Triaged → In Progress
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.