-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
import github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 error #4320
Comments
Thanks for the bug report! Could you provide a bit more information? Things that would be useful:
Thanks! |
/triage needs-information |
go versiongo version go1.16.7 darwin/amd64 go mod pipeline versiongithub.com/tektoncd/pipeline v0.28.2 |
codefunc (t *task) List(ctx context.Context, taskGVR schema.GroupVersionResource, ns string, opts metav1.ListOptions) (*v1beta1.TaskList, error) {
st, err := t.c.Resource(taskGVR).Namespace(ns).List(ctx, opts)
if err != nil {
return nil, err
}
var taskList *v1beta1.TaskList // import github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1
if err = runtime.DefaultUnstructuredConverter.FromUnstructured(st.UnstructuredContent(),
&taskList); err != nil {
return nil, err
}
return taskList, nil
} |
Errors looks very similar to #4300 |
Okay, was able to narrow this down and reproduce - https://gist.github.com/wlynch/8a33caed48a075c023c3bb9ba03105f5 What's happening: is
Easy fix: We can probably fix this for newer versions of Tekton by just regenerating the openapi specs using k8s.io >= v0.22.0. |
Started going down the dependency update rabbit hole - knative.dev/pkg can't be updated to >=0.22 because of google/gnostic#262 😭 |
knative.dev/pkg tracking issue - knative/pkg#2320 |
/remove-triage needs-information Current status - we're going to wait on knative/pkg to bump before taking action in Tekton. Until then, depending on k8s clients <=0.21 is the best workaround for the time being. |
how to fix this? |
@ycyxuehan we updated our version of knative in tekton pipelines. Could you try again and see if the problem is fixed for you? |
Confirmed this is fixed with the latest version of pipelines + deps:
|
/close |
@wlynch: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
error
github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1
../../../../../../go/pkg/mod/github.com/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:117: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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:146:11: cannot use ref("k8s.io/api/core/v1.Toleration") (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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:155:8: cannot use ref("k8s.io/api/core/v1.Affinity") (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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:161:8: cannot use ref("k8s.io/api/core/v1.PodSecurityContext") (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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:178:11: cannot use ref("k8s.io/api/core/v1.Volume") (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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:208:8: cannot use ref("k8s.io/api/core/v1.PodDNSConfig") (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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:240:11: cannot use ref("k8s.io/api/core/v1.LocalObjectReference") (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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:254:11: cannot use ref("k8s.io/api/core/v1.HostAlias") (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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:277: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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:320: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/tektoncd/pipeline@v0.28.2/pkg/apis/pipeline/v1beta1/openapi_generated.go:320:3: too many errors
The text was updated successfully, but these errors were encountered: