custom_registries ca_file docs misleading
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Containerd Subordinate Charm |
Fix Released
|
High
|
Unassigned |
Bug Description
The docs for adding a ca_file to custom_registries doesn't work when the file contains begin/end certificate lines
$ cat test1.pem
this is a test
$ juju config containerd custom_
$ juju config containerd custom_registries
[{"url": "https:/
$ cat test2.pem
-----BEGIN CERTIFICATE-----
this is a test
this is also a test
another line
-----END CERTIFICATE-----
$ juju config containerd custom_
ERROR cannot set and retrieve values simultaneously
Adding an extra set of quotes seems to properly escape the lines:
$ juju config containerd custom_
$ juju config containerd custom_registries
[{"url": "https:/
IHRlc3QKYW5vdGh
Changed in charm-containerd: | |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: review-needed |
Changed in charm-containerd: | |
milestone: | none → 1.20+ck1 |
Changed in charm-containerd: | |
status: | Triaged → Fix Committed |
tags: |
added: backport-needed removed: review-needed |
Changed in charm-containerd: | |
status: | Fix Committed → Fix Released |
https:/ /github. com/charmed- kubernetes/ charm-container d/pull/ 44