Skip to content

Commit

Permalink
Remove placements method (for now)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <pdipilat@redhat.com>
  • Loading branch information
pierDipi committed Dec 1, 2021
1 parent 55f4dd6 commit 22319b5
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
eventingduckv1alpha1 "knative.dev/eventing/pkg/apis/duck/v1alpha1"
duckv1 "knative.dev/pkg/apis/duck/v1"
)
Expand Down Expand Up @@ -51,18 +50,6 @@ type ConsumerGroup struct {
Status ConsumerGroupStatus `json:"status,omitempty"`
}

func (c *ConsumerGroup) GetKey() types.NamespacedName {
return types.NamespacedName{Namespace: c.GetNamespace(), Name: c.GetName()}
}

func (c *ConsumerGroup) GetVReplicas() int32 {
return *c.Spec.Replicas
}

func (c *ConsumerGroup) GetPlacements() []eventingduckv1alpha1.Placement {
return c.Status.Placements
}

type ConsumerGroupSpec struct {

// Template is the object that describes the consumer that will be created if
Expand Down

0 comments on commit 22319b5

Please sign in to comment.