canonical / sdcore-amf-k8s-operator

Charmed Operator for the SD-Core Access and Mobility Management Function (AMF).
https://charmhub.io/sdcore-amf-k8s
Apache License 2.0
1 stars 1 forks source link

chore: move k8s specific code to its own class #345

Closed gruyaume closed 4 months ago

gruyaume commented 4 months ago

Description

The AMF has k8s specific code used to create/remove the NGAP service. It used to be entangled in the charm class. Here , we move this k8s specific code to its own class and file. This separates concerns and move the dependencies closer to their actual use. This also allows for simplifying unit tests.

Here we did not write unit tests for this new class as it is a thin layer with close to 0 logic.

Checklist: