Closed wuestkamp closed 2 years ago
not sure what the issue is, but the example doesn't work, I have to do this:
import ( "github.com/werf/lockgate/pkg/distributed_locker" ) func Init() { locker := distributed_locker.NewKubernetesLocker( k8s.ClientsetDynamic, schema.GroupVersionResource{ Group: "", Version: "v1", Resource: "configmaps", }, "locker", "default", )
otherwise I get:
undefined: lockgate.NewKubernetesLocker
https://github.com/werf/lockgate/pull/37
Big thanks for creating this issue and giving a feedback!
not sure what the issue is, but the example doesn't work, I have to do this:
otherwise I get: