Skip to content

Commit

Permalink
NFDeployment Kpt function changes (#418)
Browse files Browse the repository at this point in the history
#402 
1. Updated the Nf Deploy Fn to use latest API changes by removing older
generics code.
2. Removed reference to all the older APIs in testdata including other
functions
3. Added tests for dependency test cases. 

Tests Run
1.   Executed all pipeline tests - *Pass*
2.  Executed dependency tests for single and multiple - *Pass*
3.  Execute all functions unite tests - *Pass*
4.  Docker build  - *Pass*

Docker image for testing - `docker.io/lostbrain/nfdeployfn:test-1`
  • Loading branch information
aakashchan authored Nov 1, 2023
1 parent 066f0b1 commit 82290d3
Show file tree
Hide file tree
Showing 251 changed files with 1,346 additions and 1,290 deletions.
3 changes: 1 addition & 2 deletions .wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ SetNadMaster
SIG
SiteCode
SMF
SMFDeployment
snetworkplumbingwg
specializer
sriov
Expand All @@ -146,7 +145,7 @@ toolchain
TypeOf
UnMarshal
UPF
UPFDeployment
NFDeployment
URI
VLAN
VLANAllocation
Expand Down
2 changes: 1 addition & 1 deletion controllers/pkg/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require (
github.com/go-logr/logr v1.2.4
github.com/google/go-cmp v0.5.9
github.com/henderiw-nephio/network v0.0.0-20230626193806-04743403261e
github.com/nephio-project/api v0.0.0-20230627152656-a2bf013a68da
github.com/nephio-project/api v1.0.1-0.20231006162045-9ad2d0db2a8d
github.com/nephio-project/nephio/krm-functions/configinject-fn v0.0.0-00010101000000-000000000000
github.com/nephio-project/nephio/krm-functions/ipam-fn v0.0.0-00010101000000-000000000000
github.com/nephio-project/nephio/krm-functions/lib v0.0.0-20230605213956-a1e470f419a4
Expand Down
4 changes: 2 additions & 2 deletions controllers/pkg/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/nephio-project/api v0.0.0-20230627152656-a2bf013a68da h1:GqTpDe8Xbqs+R4TXLJjn4nbO18/XrkXesN7TITXsrwI=
github.com/nephio-project/api v0.0.0-20230627152656-a2bf013a68da/go.mod h1:9w+JbXeyiT3KZrrXab0pzaWtiUk4upvgLzpqOtSmbpI=
github.com/nephio-project/api v1.0.1-0.20231006162045-9ad2d0db2a8d h1:I8j2xAJWpBpI5b/GOEdANY/9k4ORzmUEd1HuiFDVGi0=
github.com/nephio-project/api v1.0.1-0.20231006162045-9ad2d0db2a8d/go.mod h1:9w+JbXeyiT3KZrrXab0pzaWtiUk4upvgLzpqOtSmbpI=
github.com/nokia/k8s-ipam v0.0.4-0.20230628092530-8a292aec80a4 h1:4v0n24tsumwuz1BDGKoGWxZMFtqAlYpI87gE/enMUUI=
github.com/nokia/k8s-ipam v0.0.4-0.20230628092530-8a292aec80a4/go.mod h1:ZVMmhD6jllAAO3YGIZFXUQbKRtEiIYgZ772bn/1GVz4=
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
Expand Down
2 changes: 1 addition & 1 deletion krm-functions/configinject-fn/fn/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func BuildConfig(meta metav1.ObjectMeta, spec nephiorefv1alpha1.ConfigSpec) *nep

func getForName(annotations map[string]string) string {
// forName is the resource that is the root resource of the specialization
// e.g. UPFDeployment, SMFDeployment, AMFDeployment
// e.g. NFDeployment
forFullName := annotations[condkptsdk.SpecializerOwner]
if owner, ok := annotations[condkptsdk.SpecializerFor]; ok {
forFullName = owner
Expand Down
2 changes: 1 addition & 1 deletion krm-functions/configinject-fn/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/GoogleContainerTools/kpt v1.0.0-beta.29.0.20230327202912-01513604feaa
github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20230427202446-3255accc518d
github.com/GoogleContainerTools/kpt/porch/api v0.0.0-20230608012444-ee7c8cf378e9
github.com/nephio-project/api v0.0.0-20230627152656-a2bf013a68da
github.com/nephio-project/api v1.0.1-0.20231006162045-9ad2d0db2a8d
github.com/nephio-project/nephio/krm-functions/lib v0.0.0-00010101000000-000000000000
k8s.io/api v0.27.3
k8s.io/apimachinery v0.27.3
Expand Down
4 changes: 2 additions & 2 deletions krm-functions/configinject-fn/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/nephio-project/api v0.0.0-20230627152656-a2bf013a68da h1:GqTpDe8Xbqs+R4TXLJjn4nbO18/XrkXesN7TITXsrwI=
github.com/nephio-project/api v0.0.0-20230627152656-a2bf013a68da/go.mod h1:9w+JbXeyiT3KZrrXab0pzaWtiUk4upvgLzpqOtSmbpI=
github.com/nephio-project/api v1.0.1-0.20231006162045-9ad2d0db2a8d h1:I8j2xAJWpBpI5b/GOEdANY/9k4ORzmUEd1HuiFDVGi0=
github.com/nephio-project/api v1.0.1-0.20231006162045-9ad2d0db2a8d/go.mod h1:9w+JbXeyiT3KZrrXab0pzaWtiUk4upvgLzpqOtSmbpI=
github.com/nokia/k8s-ipam v0.0.4-0.20230614172255-e361e59e279c h1:zNeqCNUXERQOPbFvcDv8zbEGtZSpTWar/fgqwvKKklo=
github.com/nokia/k8s-ipam v0.0.4-0.20230614172255-e361e59e279c/go.mod h1:ZVMmhD6jllAAO3YGIZFXUQbKRtEiIYgZ772bn/1GVz4=
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
Expand Down
2 changes: 1 addition & 1 deletion krm-functions/dnn-fn/fn/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func getAnnotations(annotations map[string]string) map[string]string {

func getForName(annotations map[string]string) string {
// forName is the resource that is the root resource of the specialization
// e.g. UPFDeployment, SMFDeployment, AMFDeployment
// e.g. NFDeployment
forFullName := annotations[condkptsdk.SpecializerOwner]
if owner, ok := annotations[condkptsdk.SpecializerFor]; ok {
forFullName = owner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ items:
name: upf-cluster01-internet-pool1
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/for: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/for: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
specializer.nephio.org/owner: req.nephio.org/v1alpha1.DataNetwork.internet
spec:
kind: pool
Expand Down Expand Up @@ -69,7 +69,7 @@ items:
annotations:
config.kubernetes.io/local-config: "true"
prefix: 10.0.0.0/8
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-internet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
annotations:
config.kubernetes.io/local-config: "true"
prefix: 10.0.0.0/8
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-internet
Expand Down
2 changes: 1 addition & 1 deletion krm-functions/dnn-fn/fn/testdata/set_dnn_status/Kptfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pipeline: {}
status:
conditions:
- message: update for condition
reason: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
reason: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
status: "False"
type: req.nephio.org/v1alpha1.DataNetwork.internet
- message: done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ items:
name: upf-cluster01-internet-pool1
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/for: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/for: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
specializer.nephio.org/owner: req.nephio.org/v1alpha1.DataNetwork.internet
spec:
kind: pool
Expand Down Expand Up @@ -48,7 +48,7 @@ items:
status:
conditions:
- message: update done
reason: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
reason: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
status: "True"
type: req.nephio.org/v1alpha1.DataNetwork.internet
- message: done
Expand All @@ -70,7 +70,7 @@ items:
name: internet
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
prefix: 10.0.0.0/8
specializer.nephio.org/debug: "true"
spec:
Expand Down
2 changes: 1 addition & 1 deletion krm-functions/dnn-fn/fn/testdata/set_dnn_status/dnn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: internet
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
prefix: 10.0.0.0/8
specializer.nephio.org/debug: "true"
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: upf-cluster01-internet-pool1
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/for: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/for: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
specializer.nephio.org/owner: req.nephio.org/v1alpha1.DataNetwork.internet
spec:
kind: pool
Expand Down
2 changes: 1 addition & 1 deletion krm-functions/dnn-fn/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replace github.com/nephio-project/nephio/krm-functions/lib => ../lib

require (
github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20230427202446-3255accc518d
github.com/nephio-project/api v0.0.0-20230627152656-a2bf013a68da
github.com/nephio-project/api v1.0.1-0.20231006162045-9ad2d0db2a8d
github.com/nephio-project/nephio/krm-functions/lib v0.0.0-20230605213956-a1e470f419a4
github.com/nokia/k8s-ipam v0.0.4-0.20230628092530-8a292aec80a4
k8s.io/api v0.27.3
Expand Down
4 changes: 2 additions & 2 deletions krm-functions/dnn-fn/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 h1:n6/
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/nephio-project/api v0.0.0-20230627152656-a2bf013a68da h1:GqTpDe8Xbqs+R4TXLJjn4nbO18/XrkXesN7TITXsrwI=
github.com/nephio-project/api v0.0.0-20230627152656-a2bf013a68da/go.mod h1:9w+JbXeyiT3KZrrXab0pzaWtiUk4upvgLzpqOtSmbpI=
github.com/nephio-project/api v1.0.1-0.20231006162045-9ad2d0db2a8d h1:I8j2xAJWpBpI5b/GOEdANY/9k4ORzmUEd1HuiFDVGi0=
github.com/nephio-project/api v1.0.1-0.20231006162045-9ad2d0db2a8d/go.mod h1:9w+JbXeyiT3KZrrXab0pzaWtiUk4upvgLzpqOtSmbpI=
github.com/nokia/k8s-ipam v0.0.4-0.20230628092530-8a292aec80a4 h1:4v0n24tsumwuz1BDGKoGWxZMFtqAlYpI87gE/enMUUI=
github.com/nokia/k8s-ipam v0.0.4-0.20230628092530-8a292aec80a4/go.mod h1:ZVMmhD6jllAAO3YGIZFXUQbKRtEiIYgZ772bn/1GVz4=
github.com/onsi/ginkgo/v2 v2.9.5 h1:+6Hr4uxzP4XIUyAkg61dWBw8lb/gc4/X5luuxN/EC+Q=
Expand Down
2 changes: 1 addition & 1 deletion krm-functions/gen-configmap-fn/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
github.com/GoogleContainerTools/kpt-functions-sdk/go/fn v0.0.0-20230427202446-3255accc518d
github.com/stretchr/testify v1.8.2
k8s.io/apimachinery v0.27.3
sigs.k8s.io/kustomize/kyaml v0.14.2
)

require (
Expand Down Expand Up @@ -44,6 +45,5 @@ require (
k8s.io/kube-openapi v0.0.0-20230525220651-2546d827e515 // indirect
k8s.io/utils v0.0.0-20230505201702-9f6742963106 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/kustomize/kyaml v0.14.2 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
)
2 changes: 1 addition & 1 deletion krm-functions/interface-fn/fn/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func getAnnotations(annotations map[string]string) map[string]string {

func getForName(annotations map[string]string) string {
// forName is the resource that is the root resource of the specialization
// e.g. UPFDeployment, SMFDeployment, AMFDeployment
// e.g. NFDeployment
forFullName := annotations[condkptsdk.SpecializerOwner]
if owner, ok := annotations[condkptsdk.SpecializerFor]; ok {
forFullName = owner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ items:
name: upf-cluster01-n4-ipv4
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/for: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/for: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
specializer.nephio.org/owner: req.nephio.org/v1alpha1.Interface.n4
spec:
kind: network
Expand Down Expand Up @@ -67,7 +67,7 @@ items:
name: n3
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-ran
Expand All @@ -80,7 +80,7 @@ items:
name: n4
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-ran
Expand All @@ -93,7 +93,7 @@ items:
name: upf-cluster01-n4
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/for: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/for: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
specializer.nephio.org/vlanClaimName: vpc-ran-cluster01-bd
specializer.nephio.org/owner: req.nephio.org/v1alpha1.Interface.n4
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: n3
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-ran
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: n4
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-ran
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ items:
name: upf-cluster01-n3-ipv4
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/for: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/for: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
specializer.nephio.org/owner: req.nephio.org/v1alpha1.Interface.n3
spec:
kind: network
Expand Down Expand Up @@ -61,7 +61,7 @@ items:
name: n3
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-ran
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: n3
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-ran
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ pipeline: {}
status:
conditions:
- message: update condition for initial resource
reason: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
reason: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
status: "False"
type: req.nephio.org/v1alpha1.Interface.n3
- message: update for condition
status: "False"
type: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
type: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ items:
name: upf-cluster01-n3-ipv4
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/for: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/for: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
specializer.nephio.org/owner: req.nephio.org/v1alpha1.Interface.n3
spec:
kind: network
Expand All @@ -38,7 +38,7 @@ items:
name: upf-cluster01-n3-ipv6
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/for: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/for: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
specializer.nephio.org/owner: req.nephio.org/v1alpha1.Interface.n3
spec:
kind: network
Expand All @@ -64,12 +64,12 @@ items:
status:
conditions:
- message: update condition for initial resource
reason: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
reason: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
status: "False"
type: req.nephio.org/v1alpha1.Interface.n3
- message: update for condition
status: "False"
type: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
type: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
- message: create initial resource
reason: req.nephio.org/v1alpha1.Interface.n3
status: "False"
Expand All @@ -93,7 +93,7 @@ items:
annotations:
nephio.org/network-name: n3
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-ran
Expand All @@ -107,16 +107,18 @@ items:
name: upf-cluster01-n3
annotations:
config.kubernetes.io/local-config: "true"
specializer.nephio.org/for: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/for: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
specializer.nephio.org/vlanClaimName: vpc-ran-cluster01-bd
specializer.nephio.org/owner: req.nephio.org/v1alpha1.Interface.n3
spec:
vlanIndex:
name: cluster01
status: {}
- apiVersion: workload.nephio.org/v1alpha1
kind: UPFDeployment
kind: NFDeployment
metadata:
name: upf-cluster01
annotations:
specializer.nephio.org/debug: "true"
spec:
provider: upf.free5gc.io
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
annotations:
nephio.org/network-name: n3
config.kubernetes.io/local-config: "true"
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
specializer.nephio.org/owner: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
spec:
networkInstance:
name: vpc-ran
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: workload.nephio.org/v1alpha1
kind: UPFDeployment
kind: NFDeployment
metadata:
name: upf-cluster01
annotations:
specializer.nephio.org/debug: "true"
specializer.nephio.org/debug: "true"
spec:
provider: upf.free5gc.io
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ pipeline: {}
status:
conditions:
- message: update condition for initial resource
reason: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
reason: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
status: "False"
type: req.nephio.org/v1alpha1.Interface.n3
- message: update for condition
status: "False"
type: workload.nephio.org/v1alpha1.UPFDeployment.upf-cluster01
type: workload.nephio.org/v1alpha1.NFDeployment.upf-cluster01
Loading

0 comments on commit 82290d3

Please sign in to comment.