Skip to content

I found a key function named "LockNode" when i review kwok code, what the lock means? #283

Answered by wzshiming
sologgfun asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/wzshiming/fake-kubelet/blob/a6c1082175f151ae643e2d2e63b00035bb315bed/controller.go#L135

Derived from Kwok's predecessor, fake-kubelet, the first version of which meant locking the resource in the ready status, so that no one could modify it

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sologgfun
Comment options

Answer selected by wzshiming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants