Skip to content

Commit

Permalink
Merge pull request #2194 from howardjohn/cf/no-clientset
Browse files Browse the repository at this point in the history
conformance: use interface instead of concrete impl for Kubernetes client
  • Loading branch information
k8s-ci-robot authored Jul 17, 2023
2 parents d708851 + c78c6f8 commit b1f461c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conformance/utils/http/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"sigs.k8s.io/gateway-api/conformance/utils/kubernetes"
)

func ExpectMirroredRequest(t *testing.T, client client.Client, clientset *clientset.Clientset, ns, mirrorPod, path string) {
func ExpectMirroredRequest(t *testing.T, client client.Client, clientset clientset.Interface, ns, mirrorPod, path string) {
if mirrorPod == "" {
t.Fatalf("MirroredTo wasn't provided in the testcase, this test should only check http request mirror.")
}
Expand Down
2 changes: 1 addition & 1 deletion conformance/utils/kubernetes/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

// DumpEchoLogs returns logs of the echoserver pod in
// in the given namespace and with the given name.
func DumpEchoLogs(ns, name string, c client.Client, cs *clientset.Clientset) ([][]byte, error) {
func DumpEchoLogs(ns, name string, c client.Client, cs clientset.Interface) ([][]byte, error) {
var logs [][]byte

pods := new(corev1.PodList)
Expand Down
4 changes: 2 additions & 2 deletions conformance/utils/suite/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
// conformance tests.
type ConformanceTestSuite struct {
Client client.Client
Clientset *clientset.Clientset
Clientset clientset.Interface
RESTClient *rest.RESTClient
RestConfig *rest.Config
RoundTripper roundtripper.RoundTripper
Expand All @@ -56,7 +56,7 @@ type ConformanceTestSuite struct {
// Options can be used to initialize a ConformanceTestSuite.
type Options struct {
Client client.Client
Clientset *clientset.Clientset
Clientset clientset.Interface
RESTClient *rest.RESTClient
RestConfig *rest.Config
GatewayClassName string
Expand Down

0 comments on commit b1f461c

Please sign in to comment.