Can't set up CaaS charm with no ports
Bug #1838664 reported by
Kenneth Koski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Yang Kelvin Liu |
Bug Description
I am trying to write a charm that doesn't require having any ports open, and I'm required to add a dummy port, otherwise I get this error:
creating or updating service for foo: Service "foo" is invalid: spec.ports: Required value
I don't need a Service resource created for this charm, since there's no open ports anyways. Would it be possible to just not set up the Service if no ports are defined?
Changed in juju: | |
milestone: | none → 2.6.7 |
status: | New → Triaged |
importance: | Undecided → High |
Changed in juju: | |
assignee: | nobody → Yang Kelvin Liu (kelvin.liu) |
status: | Triaged → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
milestone: | 2.6.7 → 2.6.8 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It's already possible to not create the k8s service by adding this to your podspec yaml:
omitServiceFron tend: true
Can you see if this works for you?