Skip to content

Commit

Permalink
trial run for typemeta
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Graham <[email protected]>
  • Loading branch information
ngraham20 committed Aug 7, 2024
1 parent 4356b10 commit 9176ac5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions api/v1/multiclusterengine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
Expand Down Expand Up @@ -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() {
Expand Down
4 changes: 0 additions & 4 deletions controllers/backplaneconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9176ac5

Please sign in to comment.