Skip to content

Commit

Permalink
remove ExtensionInterface and related functions/implementations (#644)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
  • Loading branch information
joelanford committed Feb 22, 2024
1 parent 6206def commit eb412ba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 68 deletions.
15 changes: 0 additions & 15 deletions api/v1alpha1/clusterextension_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"

"github.com/operator-framework/operator-controller/internal/conditionsets"
)
Expand Down Expand Up @@ -159,17 +158,3 @@ type ClusterExtensionList struct {
func init() {
SchemeBuilder.Register(&ClusterExtension{}, &ClusterExtensionList{})
}

func (r *ClusterExtension) GetPackageSpec() *ExtensionSourcePackage {
p := &ExtensionSourcePackage{}

p.Channel = r.Spec.Channel
p.Name = r.Spec.PackageName
p.Version = r.Spec.Version

return p
}

func (r *ClusterExtension) GetUID() types.UID {
return r.ObjectMeta.GetUID()
}
9 changes: 0 additions & 9 deletions api/v1alpha1/extension_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)

type ExtensionManagedState string
Expand Down Expand Up @@ -125,11 +124,3 @@ type ExtensionList struct {
func init() {
SchemeBuilder.Register(&Extension{}, &ExtensionList{})
}

func (r *Extension) GetPackageSpec() *ExtensionSourcePackage {
return r.Spec.Source.Package.DeepCopy()
}

func (r *Extension) GetUID() types.UID {
return r.ObjectMeta.GetUID()
}
44 changes: 0 additions & 44 deletions internal/internal.go

This file was deleted.

0 comments on commit eb412ba

Please sign in to comment.