Modify nodes to register directly with the master.

- Delete nodes when they are no longer ready and don't exist in the
cloud provider.
 - Label each node with it's hostname.
 - Add flag to skip node registration.
 - Add a test for registering an existing node.
This commit is contained in:
Robert Bailey
2015-04-10 23:07:48 -07:00
parent 9f808d8e16
commit 01467e0bb8
12 changed files with 309 additions and 875 deletions

View File

@@ -17,6 +17,7 @@ limitations under the License.
package cloudprovider
import (
"errors"
"net"
"strings"
@@ -86,6 +87,8 @@ type Instances interface {
Release(name string) error
}
var InstanceNotFound = errors.New("instance not found")
// Zone represents the location of a particular machine.
type Zone struct {
FailureDomain string