diff --git a/api/v1/multiclusterengine_types.go b/api/v1/multiclusterengine_types.go index b961ae44c..0967407e5 100644 --- a/api/v1/multiclusterengine_types.go +++ b/api/v1/multiclusterengine_types.go @@ -21,7 +21,6 @@ package v1 import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime/schema" ) // AvailabilityType ... @@ -266,10 +265,6 @@ type InternalHubComponentList struct { Items []InternalHubComponent `json:"items"` } -var ( - InternalHubComponentGroupVersion = schema.GroupVersion{Group: "operator.open-cluster-management.io", Version: "v1"} -) - type InternalHubComponentSpec struct{} func init() { diff --git a/controllers/backplaneconfig_controller.go b/controllers/backplaneconfig_controller.go index 46c649eba..6f4b31358 100644 --- a/controllers/backplaneconfig_controller.go +++ b/controllers/backplaneconfig_controller.go @@ -799,10 +799,6 @@ func (r *MultiClusterEngineReconciler) ensureInternalHubComponent( component string) (ctrl.Result, error) { componentCR := &backplanev1.InternalHubComponent{ - TypeMeta: metav1.TypeMeta{ - APIVersion: backplanev1.InternalHubComponentGroupVersion.String(), - Kind: "InternalHubComponent", - }, ObjectMeta: metav1.ObjectMeta{ Name: component, Namespace: backplaneConfig.Namespace,