Closed avrahams closed 3 years ago
currently operator-utils works with operator-sdk 0.18.x. We are working to enable operator sdk 1.x, you can follow progress here: https://github.com/redhat-cop/operator-utils/pull/41 We should be close to merging.
the operator sdk-1.3 compatible version of operator-utils has been merged, let me know if I can close this.
I generated a new operator with
operator-sdk init
and usedoperator-sdk create api
and built it withmake
with no errorsI am using operator-sdk v1.2
But once I add
github.com/redhat-cop/operator-utils v0.3.7
to go.mod I get these build errorsk8s.io/client-go/tools/clientcmd/api/v1 /home/avrahams/go/pkg/mod/k8s.io/client-go@v12.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:29:15: scheme.AddConversionFuncs undefined (type *runtime.Scheme has no field or method AddConversionFuncs) /home/avrahams/go/pkg/mod/k8s.io/client-go@v12.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:31:12: s.DefaultConvert undefined (type conversion.Scope has no field or method DefaultConvert) /home/avrahams/go/pkg/mod/k8s.io/client-go@v12.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:34:12: s.DefaultConvert undefined (type conversion.Scope has no field or method DefaultConvert) /home/avrahams/go/pkg/mod/k8s.io/client-go@v12.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:37:12: s.DefaultConvert undefined (type conversion.Scope has no field or method DefaultConvert) /home/avrahams/go/pkg/mod/k8s.io/client-go@v12.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:40:12: s.DefaultConvert undefined (type conversion.Scope has no field or method DefaultConvert) /home/avrahams/go/pkg/mod/k8s.io/client-go@v12.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:43:12: s.DefaultConvert undefined (type conversion.Scope has no field or method DefaultConvert) /home/avrahams/go/pkg/mod/k8s.io/client-go@v12.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:46:12: s.DefaultConvert undefined (type conversion.Scope has no field or method DefaultConvert) /home/avrahams/go/pkg/mod/k8s.io/client-go@v12.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:49:12: s.DefaultConvert undefined (type conversion.Scope has no field or method DefaultConvert) /home/avrahams/go/pkg/mod/k8s.io/client-go@v12.0.0+incompatible/tools/clientcmd/api/v1/conversion.go:52:12: s.DefaultConvert undefined (type conversion.Scope has no field or method DefaultConvert) sigs.k8s.io/controller-runtime/pkg/metrics /home/avrahams/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/metrics/client_go_adapter.go:133:24: not enough arguments in call to metrics.Register /home/avrahams/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/metrics/client_go_adapter.go:133:25: undefined: metrics.RegisterOpts
The original go.mod that was generated by the operator-sdk was `require (
)`