Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislovecnm committed Sep 28, 2017
1 parent 548a829 commit 8086922
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pkg/cloudinstances/cloud_instance_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func NewCloudInstanceGroup(groupName string, groupTemplateName string, ig *api.I
return cg, nil
}

// NewCloudInstanceMember creates a new CloudInstanceGroupMember
func (c *CloudInstanceGroup) NewCloudInstanceMember(instanceId *string, newGroupName string, currentGroupName string, nodeMap map[string]*v1.Node) error {
if instanceId == nil {
return fmt.Errorf("instance id for cloud instance member cannot be nil")
Expand All @@ -96,6 +97,7 @@ func (c *CloudInstanceGroup) NewCloudInstanceMember(instanceId *string, newGroup
return nil
}

// MarkIsReady sets the CloudInstanceGroup status for Ready or NeedsUpdate
func (c *CloudInstanceGroup) MarkIsReady() {
if len(c.NeedUpdate) == 0 {
c.Status = "Ready"
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/digitalocean/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import (

"k8s.io/client-go/pkg/api/v1"
"k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/pkg/cloudinstances"
"k8s.io/kops/pkg/resources/digitalocean/dns"
"k8s.io/kops/upup/pkg/fi"
"k8s.io/kubernetes/federation/pkg/dnsprovider"
"k8s.io/kops/pkg/cloudinstances"
)

// TokenSource implements oauth2.TokenSource
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/awsup/mock_aws_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import (
"github.com/golang/glog"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/pkg/cloudinstances"
"k8s.io/kops/upup/pkg/fi"
"k8s.io/kubernetes/federation/pkg/dnsprovider"
dnsproviderroute53 "k8s.io/kubernetes/federation/pkg/dnsprovider/providers/aws/route53"
"k8s.io/kops/pkg/cloudinstances"
)

type MockAWSCloud struct {
Expand Down
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/gce/gce_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import (
"google.golang.org/api/storage/v1"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/kops/pkg/apis/kops"
"k8s.io/kops/pkg/cloudinstances"
"k8s.io/kops/upup/pkg/fi"
"k8s.io/kubernetes/federation/pkg/dnsprovider"
"k8s.io/kubernetes/federation/pkg/dnsprovider/providers/google/clouddns"
"k8s.io/kops/pkg/cloudinstances"
)

type GCECloud interface {
Expand Down

0 comments on commit 8086922

Please sign in to comment.