Kubelet watching only its own Node

This commit is contained in:
Wojciech Tyczynski
2015-04-02 10:57:28 +02:00
parent eac24b3241
commit 6b08958264
8 changed files with 127 additions and 11 deletions

View File

@@ -1545,6 +1545,19 @@ func init() {
// If one of the conversion functions is malformed, detect it immediately.
panic(err)
}
err = newer.Scheme.AddFieldLabelConversionFunc("v1beta1", "Minion",
func(label, value string) (string, string, error) {
switch label {
case "name":
return "name", value, nil
default:
return "", "", fmt.Errorf("field label not supported: %s", label)
}
})
if err != nil {
// If one of the conversion functions is malformed, detect it immediately.
panic(err)
}
err = newer.Scheme.AddFieldLabelConversionFunc("v1beta1", "ReplicationController",
func(label, value string) (string, string, error) {
switch label {