Skip to content

Commit c835d41

Browse files
committed
fix(api): Fix API group mismatch between Go code and CRD
Changed API group from vnf.oran.io to mano.oran.io: - Updated GroupVersion in vnf_types.go - Now matches the CRD definition in config/crd/bases/mano.oran.io_vnfs.yaml - Fixes "no matches for vnf.oran.io/v1alpha1" error in tests This was causing VNF Controller test failures because the test environment loaded the CRD with group mano.oran.io but the Go client was looking for resources in vnf.oran.io group.
1 parent 8e730b6 commit c835d41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adapters/vnf-operator/api/v1alpha1/vnf_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
var (
1010
// GroupVersion is group version used to register these objects
11-
GroupVersion = schema.GroupVersion{Group: "vnf.oran.io", Version: "v1alpha1"}
11+
GroupVersion = schema.GroupVersion{Group: "mano.oran.io", Version: "v1alpha1"}
1212

1313
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
1414
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

0 commit comments

Comments
 (0)