fix: mocks for new version
This commit is contained in:
+19
-9
@@ -5,22 +5,24 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/sanity-io/litter"
|
||||
"io"
|
||||
beta1 "k8s.io/api/batch/v1beta1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
"k8s.io/apimachinery/pkg/watch"
|
||||
"k8s.io/client-go/discovery"
|
||||
"k8s.io/client-go/kubernetes"
|
||||
"k8s.io/client-go/kubernetes/typed/batch/v1beta1"
|
||||
"k8s.io/client-go/rest"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/sanity-io/litter"
|
||||
beta1 "k8s.io/api/batch/v1beta1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
"k8s.io/apimachinery/pkg/watch"
|
||||
v1beta12 "k8s.io/client-go/applyconfigurations/batch/v1beta1"
|
||||
"k8s.io/client-go/discovery"
|
||||
"k8s.io/client-go/kubernetes"
|
||||
"k8s.io/client-go/kubernetes/typed/batch/v1beta1"
|
||||
"k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
func Test_Main(t *testing.T) {
|
||||
@@ -443,6 +445,14 @@ func (c cronApi) Patch(ctx context.Context, name string, pt types.PatchType, dat
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
func (c cronApi) Apply(ctx context.Context, cronJob *v1beta12.CronJobApplyConfiguration, opts v1.ApplyOptions) (result *beta1.CronJob, err error) {
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
func (c cronApi) ApplyStatus(ctx context.Context, cronJob *v1beta12.CronJobApplyConfiguration, opts v1.ApplyOptions) (result *beta1.CronJob, err error) {
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
var _ v1beta1.CronJobInterface = &cronApi{}
|
||||
|
||||
func boolP(b bool) *bool {
|
||||
|
||||
Reference in New Issue
Block a user