Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

Commit

Permalink
Fixes for cluster-api interface changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgoodwin committed May 30, 2018
1 parent 7ea0d1b commit aef359b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contrib/cmd/aws-actuator-test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ func deleteClusterMachine(instanceId string) error {
}

func clusterMachineExists(instanceId string) error {
_, machine := testClusterAPIResources("any")
cluster, machine := testClusterAPIResources("any")
machine.Annotations = map[string]string{
instanceIDAnnotation: instanceId,
}
actuator := aws.NewActuator(nil, nil, log.WithField("example", "delete-machine"), "us-east-1c")
exists, err := actuator.Exists(machine)
exists, err := actuator.Exists(cluster, machine)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/clusterapi/aws/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func (a *Actuator) CreateMachine(cluster *clusterv1.Cluster, machine *clusterv1.
}

// Delete deletes a machine and updates its finalizer
func (a *Actuator) Delete(machine *clusterv1.Machine) error {
func (a *Actuator) Delete(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error {
mLog := clustoplog.WithMachine(a.logger, machine)
mLog.Debugf("Delete %s/%s", machine.Namespace, machine.Name)
if err := a.DeleteMachine(machine); err != nil {
Expand Down Expand Up @@ -396,7 +396,7 @@ func (a *Actuator) Update(c *clusterv1.Cluster, machine *clusterv1.Machine) erro
}

// Exists determines if the given machine currently exists.
func (a *Actuator) Exists(machine *clusterv1.Machine) (bool, error) {
func (a *Actuator) Exists(cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error) {
mLog := clustoplog.WithMachine(a.logger, machine)
mLog.Debugf("checking if machine exists")

Expand Down

0 comments on commit aef359b

Please sign in to comment.