Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argo Client does not work with newer k8s client versions (>=v0.21.0) #6750

Closed
nakumgaurav opened this issue Sep 17, 2021 · 27 comments · Fixed by #6558 or #7832
Closed

Argo Client does not work with newer k8s client versions (>=v0.21.0) #6750

nakumgaurav opened this issue Sep 17, 2021 · 27 comments · Fixed by #6558 or #7832
Assignees
Labels

Comments

@nakumgaurav
Copy link

nakumgaurav commented Sep 17, 2021

Summary

I am using the go-client for argo and here's how I defined it:

	opts := apiclient.Opts{
		ArgoServerOpts: apiclient.ArgoServerOpts{
			URL:                argoURI,
			Path:               argoPath,
			Secure:             true,
			InsecureSkipVerify: false,
			HTTP1:              true,
		},
		AuthSupplier: func() string {
			return ""
		},
	}
	argoCtx, argo, err := apiclient.NewClientFromOpts(opts)
	if err != nil {
		return "", err
	}

My go.mod file:

module ...

go 1.15

require (
	github.com/argoproj/argo-workflows/v3 v3.0.0
	github.com/go-logr/logr v0.4.0
	github.com/go-yaml/yaml v2.1.0+incompatible
	github.com/onsi/ginkgo v1.14.2
	github.com/onsi/gomega v1.10.4
	gitlab-odx.oracledx.com/cx-sales/code/titan/titan-core v0.2.0
	k8s.io/apimachinery v0.21.0
	k8s.io/client-go v0.21.0
	sigs.k8s.io/controller-runtime v0.7.2
)

What happened/what you expected to happen?
I need to use k8s go client version >= v0.21.0 but it seems the latest argo client is incompatible with the newer k8s versions. So

Running go vet ./... gives an error:

..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\util\kubeconfig\kubeconfig.go:147:37: not enough arguments in call 
to exec.GetAuthenticator
        have (*api.ExecConfig)
        want (*api.ExecConfig, *clientauthentication.Cluster)

Clearly, the exec.GetAuthenticator function requires two arguments in the newer k8s client versions. Can a bug fix be released for this purpose? Alternately, how should I define my apiClient to be compatible with the latest k8s client? Would appreciate any pointers!

Diagnostics

What Kubernetes provider are you using?
Terraform

What version of Argo Workflows are you running?
v0.3.12

What executor are you running? Docker/K8SAPI/Kubelet/PNS/Emissary
Docker

Did this work in a previous version? I.e. is it a regression?
No


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@nakumgaurav nakumgaurav changed the title Argo Client does not work with newer k8s versions (>=v0.21.0) Argo Client does not work with newer k8s client versions (>=v0.21.0) Sep 17, 2021
@nakumgaurav
Copy link
Author

nakumgaurav commented Sep 17, 2021

EDIT: I tried with the master branch version of argo. This fixes the exec.GetAuthenticator error above, but raises a bunch of other issues on running go vet ./... :

..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:52:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:64:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:72:8: cannot use ref("github.com/argoproj/argo-events/pkg/apis/common.Int64OrString") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:78:8: cannot use ref("github.com/argoproj/argo-events/pkg/apis/common.Amount") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:84:8: cannot use ref("github.com/argoproj/argo-events/pkg/apis/common.Amount") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:104:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:112:8: cannot use ref("k8s.io/api/core/v1.SecretKeySelector") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:118:8: cannot use ref("k8s.io/api/core/v1.SecretKeySelector") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:131:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:153:8: cannot use ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time") (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\[email protected]\pkg\apis\common\openapi_generated.go:131:3: too many errors# github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:139:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:151:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:158:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Tar...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:163:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Non...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:168:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Zip...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:181:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:200:11: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Par...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:220:11: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Art...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:280:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.S3A...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:286:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Git...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
..\..\..\..\..\go\pkg\mod\github.com\argoproj\argo-workflows\[email protected]\pkg\apis\workflow\v1alpha1\openapi_generated.go:286:8: too many errors

image

@alexec alexec linked a pull request Sep 20, 2021 that will close this issue
@alexec alexec added solution/workaround There's a workaround, might not be great, but exists invalid labels Sep 21, 2021
@stale stale bot removed wontfix labels Sep 21, 2021
@alexec alexec added wontfix and removed solution/workaround There's a workaround, might not be great, but exists invalid labels Sep 21, 2021
@nakumgaurav
Copy link
Author

nakumgaurav commented Sep 30, 2021

@alexec I tried using the master branch version but this is still a problem with the latest k8s client versions.

@ryanande
Copy link

ryanande commented Oct 5, 2021

I too am seeing the exact same error, any luck on identifying root cause or better context on what is happening @alexec ?

@alexec alexec reopened this Oct 5, 2021
@alexec
Copy link
Contributor

alexec commented Oct 5, 2021

please can you compare your go.mod file and list differences

@nakumgaurav
Copy link
Author

@alexec Compare go.mod file with what?

Anyways, here's the go.mod file that I am using for my project:

module example.com/myproject

go 1.15

require (
	github.com/argoproj/argo-workflows/v3 v3.2.0-rc3.0.20210916144414-7684ef4a0c5f
	github.com/go-logr/logr v0.4.0
	github.com/go-yaml/yaml v2.1.0+incompatible
	github.com/onsi/ginkgo v1.16.4
	github.com/onsi/gomega v1.15.0
	gitlab-odx.oracledx.com/cx-sales/code/titan/titan-core v0.2.7
	k8s.io/apimachinery v0.22.2
	k8s.io/client-go v0.22.2
	sigs.k8s.io/controller-runtime v0.10.1
)

@alexec
Copy link
Contributor

alexec commented Oct 5, 2021

try removing everything but argo-workflows, then run go mod download

@nakumgaurav
Copy link
Author

I think this works! go vet ./... does not give any errors now.

  1. Removed everything except argo-workflows from go.mod
  2. go mod download
  3. go mod tidy (this forces the k8s client to be at v0.20.4)
  4. go fmt ./... && go vet ./...

No longer see those compatibility errors. Many thanks, @alexec!

@nakumgaurav
Copy link
Author

Now that I think about it, even using argo-wf v0.3.12 and following the process above would have worked, except that it would use k8s client v0.19.6 :)

@PrashantRaj18198
Copy link

PrashantRaj18198 commented Oct 14, 2021

  • Removed everything except argo-workflows from go.mod
  • go mod download
  • go mod tidy (this forces the k8s client to be at v0.20.4)
  • go fmt ./... && go vet ./...

This doesn't work for me, tried with latest version of argo-workflows and the above version also, in both cases I am getting some weird openapi spec has wrong field type error. Any clues for why this might be happening?

# github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:139:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:151:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:158:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Tar...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:163:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Non...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:168:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Zip...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:181:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:200:11: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Par...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:220:11: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Art...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:280:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.S3A...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:286:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Git...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:286:8: too many errors

Here's the go.mod file, which was generated by the go mod tidy command.

module example.com/myproject

go 1.16

require (
	github.com/ReneKroon/ttlcache/v2 v2.8.1
	github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
	github.com/argoproj/argo-workflows/v3 v3.2.0
	github.com/aws/aws-sdk-go v1.37.1
	github.com/bradleyfalzon/ghinstallation v1.1.1
	github.com/gin-gonic/autotls v0.0.3
	github.com/gin-gonic/gin v1.7.4
	github.com/go-ini/ini v1.63.2
	github.com/go-redis/redis/v8 v8.11.4
	github.com/go-resty/resty/v2 v2.3.0
	github.com/gofrs/flock v0.8.1
	github.com/google/go-github/v35 v35.3.0
	github.com/google/uuid v1.2.0
	github.com/goombaio/namegenerator v0.0.0-20181006234301-989e774b106e
	github.com/gorilla/websocket v1.4.2
	github.com/jinzhu/copier v0.3.2
	github.com/jinzhu/gorm v1.9.16
	github.com/joeshaw/envdecode v0.0.0-20200121155833-099f1fc765bd
	github.com/joho/godotenv v1.3.0
	github.com/lestrrat-go/jwx v1.2.7
	github.com/logrusorgru/aurora/v3 v3.0.0
	github.com/manifoldco/promptui v0.8.0
	github.com/pieterclaerhout/go-log v1.14.0
	github.com/spf13/cobra v1.2.1
	github.com/spf13/pflag v1.0.5
	github.com/spf13/viper v1.8.1
	github.com/swaggo/gin-swagger v1.3.2
	github.com/swaggo/swag v1.7.3
	github.com/tidwall/pretty v1.1.0
	github.com/walle/targz v0.0.0-20140417120357-57fe4206da5a
	go.uber.org/zap v1.17.0
	golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
	golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1
	gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
	gorm.io/driver/postgres v1.1.2
	gorm.io/gorm v1.21.16
	helm.sh/helm/v3 v3.7.1
	k8s.io/api v0.22.2
	k8s.io/apimachinery v0.22.2
	k8s.io/cli-runtime v0.22.2
	k8s.io/client-go v0.22.2
	sigs.k8s.io/aws-iam-authenticator v0.5.3
	sigs.k8s.io/yaml v1.2.0
)

Code snippet that uses argo-workflows.

func CreateWorkflow() {
	y := v1alpha1.Workflow{Spec: v1alpha1.WorkflowSpec{
 	        ServiceAccountName: "hello",
	}}
}

@ljmatkins
Copy link

A possible hack for the desperate:

I had the same errors as the above comment (cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value), and used the following horrible workaround:

  1. go mod vendor
  2. sed -i 's/github\.com\/go\-openapi\/spec/k8s\.io\/kube\-openapi\/pkg\/validation\/spec/g' vendor/github.com/argoproj/argo-events/pkg/apis/common/openapi_generated.go vendor/github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1/openapi_generated.go vendor/github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/openapi_generated.go vendor/github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1/openapi_generated.go (to replace imports for github.com/go-openapi/spec with k8s.io/kube-openapi/pkg/validation/spec)

Only applicable if you're willing to go mod vendor, and if you have a suitably high tolerance for evil.

@alexec
Copy link
Contributor

alexec commented Oct 15, 2021

Maybe we also need to update the code that does open API?

@PrashantRaj18198
Copy link

A possible hack for the desperate:

I had the same errors as the above comment (cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value), and used the following horrible workaround:

  1. go mod vendor
  2. sed -i 's/github\.com\/go\-openapi\/spec/k8s\.io\/kube\-openapi\/pkg\/validation\/spec/g' vendor/github.com/argoproj/argo-events/pkg/apis/common/openapi_generated.go vendor/github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1/openapi_generated.go vendor/github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1/openapi_generated.go vendor/github.com/argoproj/argo-events/pkg/apis/eventsource/v1alpha1/openapi_generated.go (to replace imports for github.com/go-openapi/spec with k8s.io/kube-openapi/pkg/validation/spec)

Only applicable if you're willing to go mod vendor, and if you have a suitably high tolerance for evil.

This hack works for me. Thank you @ljmatkins

@alexec
Copy link
Contributor

alexec commented Oct 18, 2021

I think our openapi library needs updating. Would anyone be interested in making the update? @ljmatkins @PrashantRaj18198

@stale stale bot removed the problem/stale This has not had a response in some time label Feb 7, 2022
@sarabala1979
Copy link
Member

@SVilgelm are you using the latest v3.2.x CLI?

@SVilgelm
Copy link

SVilgelm commented Feb 9, 2022

@sarabala1979 I'm trying to update, but got same error:

22-02-08 16:39 % go get github.com/argoproj/argo-workflows/v3@latest
go: downloading github.com/argoproj/argo-workflows/v3 v3.2.8
go: downloading google.golang.org/grpc v1.44.0
go: downloading golang.org/x/sys v0.0.0-20220114195835-da31bd327af9
# github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:139:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:151:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:158:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Tar...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:163:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Non...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:168:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Zip...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:181:3: cannot use "github.com/go-openapi/spec".Schema{...} (type "github.com/go-openapi/spec".Schema) as type "k8s.io/kube-openapi/pkg/validation/spec".Schema in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:200:11: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Par...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:220:11: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Art...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:280:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.S3A...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:286:8: cannot use ref("github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1.Git...) (type "k8s.io/kube-openapi/pkg/validation/spec".Ref) as type "github.com/go-openapi/spec".Ref in field value
../../go/pkg/mod/github.com/argoproj/argo-workflows/[email protected]/pkg/apis/workflow/v1alpha1/openapi_generated.go:286:8: too many errors

@SVilgelm
Copy link

SVilgelm commented Feb 9, 2022

	k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect

alexec added a commit to alexec/argo-workflows that referenced this issue Feb 9, 2022
@alexec alexec added the v3.2 label Feb 9, 2022
@JPZ13
Copy link
Member

JPZ13 commented Feb 15, 2022

@alexec We're running into this issue now. Is it cool if I take the upgrade to unblock us?

Edit: Never mind. I see your PR #7832 above and got to the same solution. Let us know if there's any way we can help out on getting it released

JPZ13 added a commit to pipekit/argo-workflows that referenced this issue Feb 15, 2022
@alexec
Copy link
Contributor

alexec commented Feb 16, 2022

The PR is blocked on Argo Events PR. I'm waiting for @whynowy to review that PR, because I could not figure out how to get it to work nicely. Hoped he'd be able to bring new ideas to it.

@JPZ13
Copy link
Member

JPZ13 commented Feb 16, 2022

Sounds good. I put up a PR on events to give it a stab based off what I saw you do in your events PR: argoproj/argo-events#1640

@alexec alexec self-assigned this Feb 16, 2022
@alexec
Copy link
Contributor

alexec commented Feb 16, 2022

Ugh. This is a massive tangel of dependiencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
10 participants