Merge pull request #67978 from WanLinghao/token_controller_improve

remove idle tokens in kubelet token manager
This commit is contained in:
k8s-ci-robot
2018-11-02 12:28:47 -07:00
committed by GitHub
10 changed files with 240 additions and 5 deletions

View File

@@ -201,6 +201,10 @@ func (f *fakeVolumeHost) GetServiceAccountTokenFunc() func(string, string, *auth
}
}
func (f *fakeVolumeHost) DeleteServiceAccountTokenFunc() func(types.UID) {
return func(types.UID) {}
}
func (f *fakeVolumeHost) GetNodeLabels() (map[string]string, error) {
if f.nodeLabels == nil {
f.nodeLabels = map[string]string{"test-label": "test-value"}