more changes for code gen.

This commit is contained in:
Jan Mußler
2020-12-07 23:45:19 +01:00
parent e7c6fab748
commit d4d9f0a62a
6 changed files with 69 additions and 23 deletions
+1 -1
View File
@@ -13,11 +13,11 @@ import (
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/zalando/postgres-operator/mocks"
acidv1 "github.com/zalando/postgres-operator/pkg/apis/acid.zalan.do/v1"
"github.com/zalando/postgres-operator/pkg/util/config"
"github.com/zalando/postgres-operator/pkg/util/constants"
"github.com/zalando/postgres-operator/pkg/util/k8sutil"
"github.com/zalando/postgres-operator/pkg/util/volumes/mocks"
"k8s.io/client-go/kubernetes/fake"
)
+1 -1
View File
@@ -1,6 +1,6 @@
package volumes
//go:generate go run -mod=mod github.com/golang/mock/mockgen -package mocks -destination=$PWD/mocks/$GOFILE -source=$GOFILE -build_flags=-mod=mod
//go:generate mockgen -package mocks -destination=$PWD/mocks/$GOFILE -source=$GOFILE -build_flags=-mod=vendor
import v1 "k8s.io/api/core/v1"