Closed molinjun closed 2 years ago
+1
I pulled the latest version and go build. There is some issues:
$ go build -o sample-controller . # sigs.k8s.io/json/internal/golang/encoding/json vendor/sigs.k8s.io/json/internal/golang/encoding/json/encode.go:1249:12: sf.IsExported undefined (type reflect.StructField has no field or method IsExported) vendor/sigs.k8s.io/json/internal/golang/encoding/json/encode.go:1255:18: sf.IsExported undefined (type reflect.StructField has no field or method IsExported)
I googled and someone mentioned it should update the go version from go 1.16 to go 1.17. I am not sure if this is the issue.
maybe you should upgrade the Kubernates module's version, such as k8s.io/client-go , I'v solved it . k8s.io/client-go v0.19.0
@blueriver1125 Thank you. could you like to share your go.mod. Why does the repo use a wrong version?
module example.com/example-broker
go 1.16
require ( github.com/gin-gonic/gin v1.7.7 github.com/kubernetes-sigs/service-catalog v0.3.1 k8s.io/apimachinery v0.19.0 k8s.io/client-go v0.19.0 )
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
@k8s-triage-robot: Closing this issue.
I pulled the latest version and go build. There is some issues:
I googled and someone mentioned it should update the go version from go 1.16 to go 1.17. I am not sure if this is the issue.