0

How can I go get this kubernetes package.

I have tried the following

go get k8s.io/kubernetes/pkg/serviceaccount                                    

but I get the error

go: k8s.io/api@v0.0.0: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

any suggestions on how I get it ?

James Franco
  • 4,516
  • 10
  • 38
  • 80

1 Answers1

0

It looks like the kubernetes version which you are trying is not available. Please update your go.mod file to use an updated version.

Require { k8s.io/api v0.22.1} and try running ‘go get k8s.io/kubernetes/pkg/serviceaccount’ again. Please check this official page, and also check this comment.