deploying workload-less k8s charm in a bundle not possible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
High
|
Unassigned |
Bug Description
This is on juju 3.0.2 and 2.9.38.
I'm unable to deploy a bundle that includes a workload-less k8s charm (in this case, nginx-ingress-
mthaddon@
applications:
nginx-
charm: ch:nginx-
scale: 1
trust: true
mthaddon@
Located charm "nginx-
Executing changes:
- upload charm nginx-ingress-
- deploy application nginx-ingress-
- add unit nginx-ingress-
ERROR cannot deploy bundle: cannot add unit for application "nginx-
tags: | added: canonical-is |
Actually, the issue is that for K8s provider, you have to have the line:
bundle: kubernetes
This is because on K8s we do "Scale(app)" rather than "AddUnit(app)", and to know which one to do we look at whether the bundle has that configuration or not.
(This is not the ideal case, it is just how it works today.)