Skip to content

Commit

Permalink
embed the k8s client.Object rather than enumerate all the methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jm96441n committed Feb 7, 2024
1 parent b93b3b3 commit 62e8e23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions control-plane/gateways/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ package gateways
import (
meshv2beta1 "github.com/hashicorp/consul-k8s/control-plane/api/mesh/v2beta1"
corev1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
)

type Gateway interface {
*meshv2beta1.MeshGateway | *meshv2beta1.APIGateway
GetName() string
GetNamespace() string
client.Object
ListenersToServicePorts(int32) []corev1.ServicePort
ListenersToContainerPorts(int32, int32) []corev1.ContainerPort
GetAnnotations() map[string]string
GetLabels() map[string]string
}

// gatewayBuilder is a helper struct for building the Kubernetes resources for a mesh gateway.
Expand Down

0 comments on commit 62e8e23

Please sign in to comment.