Inconsistency between `juju bootstrap` and `juju deploy` when dealing with Kubernetes configuration flags
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth | ||
2.9 |
Fix Released
|
High
|
Ian Booth |
Bug Description
The `juju boostrap` and `juju deploy` commands have inconsistencies in their acceptable Kubernetes config options.
You can do (`loadbalancer` in lower):
```
$ juju bootstrap --config controller-
```
But in `juju deploy`:
```bash
$ juju deploy cs:~mattermost-
```
Generates this error:
```bash
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
my-model my-k8s my-k8s 2.9-rc6 unsupported 16:45:32+01:00
App Version Status Scale Charm Store Rev OS Address Message
mattermost mattermost:5.31.0 error 1 mattermost charmstore 17 kubernetes creating or updating service for mattermost: Service "mattermost" is invalid: spec.type: Unsupported value: "loadbalancer": supported values: "ClusterIP", "ExternalName", "LoadBalancer", "NodePort"
```
There are maybe more inconsistencies that I didn't look around, but as a user I'd expect everything to be lowercase or not.
Changed in juju: | |
milestone: | none → 2.9-rc6 |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: bitesize |
Changed in juju: | |
assignee: | nobody → Ian Booth (wallyworld) |
status: | Triaged → In Progress |
Changed in juju: | |
milestone: | 2.9-rc6 → 2.8.10 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
milestone: | 2.8.10 → 2.8.9 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Both the charm and bootstrap use the lower case version "loadbalancer".
deploy should be made consistent with this.
We should probably accept both "LoadBalancer" and "loadbalancer" and convert to "loadbalancer"