A simulator for the 5G UE and control plane interactions using the declarative Δ-controller framework.
You will need the dctl command line tool to administer kubeconfigs, obtain it from
here.
-
Start the operators using unsafe HTTP mode:
go run main.go --http -zap-log-level 4
-
Create an admin config:
dctl generate-config --http --insecure --user=admin --namespaces="*" > ./admin.config
-
Make a client request:
export KUBECONFIG=./admin.config kubectl apply -f <registration.yaml>
-
Generate the TLS certificate:
dctl generate-keys
-
Start the operators:
go run main.go -zap-log-level 4
-
Create initial user config (assume the username is
user-1), which will only allow the user to register:dctl generate-config --user=user-1 --namespaces=default --insecure \ --rules='[{"verbs":["create","get","list","watch"],"apiGroups":["amf.view.dcontroller.io"],"resources":["registration"]}]' \ > ./user-1-initial.config
-
Make a client request:
export KUBECONFIG=./user-1.initial.config kubectl apply -f <registration.yaml>
MIT License