-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcharmcraft.yaml
101 lines (92 loc) · 2.33 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
96
97
98
99
100
101
name: sdcore-amf-k8s
summary: A Charmed Operator for SD-Core's Access and Mobility Management Function (AMF).
description: |
A Charmed Operator for SD-Core's Access and Mobility Management Function (AMF).
links:
website: https://charmhub.io/sdcore-amf-k8s
source: https://github.com/canonical/sdcore-amf-k8s-operator
issues: https://github.com/canonical/sdcore-amf-k8s-operator/issues
containers:
amf:
resource: amf-image
mounts:
- storage: config
location: /free5gc/config
- storage: certs
location: /support/TLS
resources:
amf-image:
type: oci-image
description: OCI image for SD-Core amf
upstream-source: ghcr.io/canonical/sdcore-amf:1.6.1
storage:
config:
type: filesystem
minimum-size: 1M
certs:
type: filesystem
minimum-size: 1M
assumes:
- k8s-api
- juju >= 3.4
provides:
metrics-endpoint:
interface: prometheus_scrape
fiveg-n2:
interface: fiveg_n2
requires:
fiveg_nrf:
interface: fiveg_nrf
certificates:
interface: tls-certificates
logging:
interface: loki_push_api
sdcore_config:
interface: sdcore_config
tracing:
interface: tracing
limit: 1
type: charm
base: [email protected]
build-base: [email protected]
platforms:
amd64:
parts:
charm:
source: .
plugin: charm
charm-requirements:
- requirements.txt
build-packages:
- libffi-dev
- libssl-dev
- pkg-config
build-snaps:
- astral-uv
- rustup
override-build: |
rustup default stable
uv export --frozen --no-dev -o requirements.txt
craftctl default
config:
options:
log-level:
type: string
default: info
description: Log level for the AMF. One of `debug`, `info`, `warn`, `error`, `fatal`, `panic`.
dnn:
type: string
default: internet
description: Data Network Name (DNN)
external-amf-ip:
type: string
description: |-
Externally accessible IP for the AMF.
If not provided, this will default to the LoadBalancer Service IP.
external-amf-hostname:
type: string
description: |-
Externally accessible FQDN for the AMF.
If not provided, this will default to the LoadBalancer Service hostname
if available. If that is not available, it will default to the internal
Kubernetes FQDN of the service.