Skip to content

Commit 7bd3921

Browse files
authored
Add optional flags to provides endpoints (#448)
## Issue Since provides endpoints can be non-optional, can the default value of `optional` is [false](https://canonical-charmcraft.readthedocs-hosted.com/stable/reference/files/charmcraft-yaml-file/#endpoint-role-endpoint-name-optional), these endpoints are assumed non-optional. ## Solution Set `optional` flag on provides endpoints to indicate correct optionality.
1 parent 8a646b4 commit 7bd3921

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

metadata.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ provides:
2626
interface: mysql_client
2727
metrics-endpoint:
2828
interface: prometheus_scrape
29+
optional: true
2930
grafana-dashboard:
3031
interface: grafana_dashboard
32+
optional: true
3133
requires:
3234
backend-database:
3335
interface: mysql_client
3436
limit: 1
3537
certificates:
3638
interface: tls-certificates
3739
limit: 1
40+
optional: true
3841
logging:
3942
interface: loki_push_api
4043
limit: 1

0 commit comments

Comments
 (0)