-
Notifications
You must be signed in to change notification settings - Fork 0
/
charmcraft.yaml
95 lines (83 loc) · 2.67 KB
/
charmcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: istio-beacon-k8s
type: charm
title: Istio Beacon
summary: A beacon charm used for joining the Istio service mesh.
description: |
A single sentence that says what the charm is, concisely and memorably.
A paragraph of one to three short sentences, that describe what the charm does.
A third paragraph that explains what need the charm meets.
Finally, a paragraph that describes whom the charm is useful for.
assumes:
- k8s-api
bases:
- build-on:
- name: ubuntu
channel: "22.04"
architectures: ["amd64"]
run-on:
- name: ubuntu
channel: "22.04"
architectures: ["amd64"]
- build-on:
- name: ubuntu
channel: "22.04"
architectures: ["arm64"]
run-on:
- name: ubuntu
channel: "22.04"
architectures: ["arm64"]
containers:
metrics-proxy:
resource: metrics-proxy-image
requires:
charm-tracing:
interface: tracing
description: |
Endpoint for integrating over a `tracing` interface and sending charm traces
to a distributed tracing backend such as Tempo.
limit: 1
provides:
service-mesh:
interface: service_mesh
metrics-endpoint:
interface: prometheus_scrape
parts:
charm:
charm-binary-python-packages:
# Pydantic is not actually used by the lib but charmcraft install pydeps from libs even if
# they are not used.
- pydantic-core
- pydantic
- maturin
plugin: charm
build-packages: [git]
config:
options:
manage-authorization-policies:
type: boolean
default: true
description: >
Automatically create Istio authorization policies for any charm requiresting them over the service mesh
relation. If set to false, the charm will not create any authorization policies, but will still do other
functions like provide a waypoint.
model-on-mesh:
type: boolean
default: false
description: >
Add this charm's model to the service mesh.
All charms in this model will automatically be added to the mesh.
ready-timeout:
type: int
default: 100
description: >
The maximum time (in seconds) to wait for the waypoint deployment to be
ready. This applies specifically to the deployment created for the Istio
waypoint controller. If the deployment does not become ready within this time,
charm will go into error state.
resources:
metrics-proxy-image:
type: oci-image
description: Metrics Proxy OCI image
# TODO: change below to point at the correct image once metrics-proxy rock is onboarded
# see: https://github.com/canonical/oci-factory/issues/268
upstream-source: docker.io/ibraaoad/metrics-proxy:v0.1.0