This adds the v1 lease controller

This refactors the v1 lease controller. It makes two functional differences
to the lease controller:
* It no longer ties lease updates to node pings or node status updates
* There is no fallback mechanism to status updates

This also moves vk_envtest, allowing for future brown-box testing of the
lease controller with envtest
This commit is contained in:
Sargun Dhillon
2020-12-07 10:37:17 -08:00
parent 8affa1c42a
commit 735eb34829
10 changed files with 525 additions and 366 deletions

View File

@@ -0,0 +1,13 @@
package node
import (
"errors"
"testing"
"gotest.tools/assert"
)
func TestNotReadyError(t *testing.T) {
n := newNodeNotReadyError(nil)
assert.Assert(t, errors.Is(n, &nodeNotReadyError{}))
}