sample-controller icon indicating copy to clipboard operation
sample-controller copied to clipboard

errors after copying over source code and attempting build

Open lknite opened this issue 8 months ago • 2 comments

switching from dotnet to go over the last couple months, working to implement my first go-based controller

plan was to start from this sample and go from there

copied the code from controller.go and after a 'go mod tidy' am getting the following errors when i compile:

./conNamespace.go:83:22: undefined: workqueue.TypedRateLimitingInterface
./conNamespace.go:108:27: undefined: workqueue.NewTypedMaxOfRateLimiter
./conNamespace.go:109:13: undefined: workqueue.NewTypedItemExponentialFailureRateLimiter
./conNamespace.go:110:14: undefined: workqueue.TypedBucketRateLimiter
./conNamespace.go:120:32: undefined: workqueue.NewTypedRateLimitingQueue

does this code still work? recommend another resource to create my first k8s controller instead of this sample? am i suppose to run an update-codegen.sh script?

lknite avatar Jul 02 '24 00:07 lknite