Migrate kubelet configmap management logic to an interface

This commit is contained in:
Shyam Jeedigunta
2017-05-25 23:23:57 +02:00
parent 91cef78f43
commit 4425864707
28 changed files with 270 additions and 50 deletions

View File

@@ -233,6 +233,9 @@ type VolumeHost interface {
// Returns a function that returns a secret.
GetSecretFunc() func(namespace, name string) (*v1.Secret, error)
// Returns a function that returns a configmap.
GetConfigMapFunc() func(namespace, name string) (*v1.ConfigMap, error)
// Returns the labels on the node
GetNodeLabels() (map[string]string, error)
}