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

Commit

Permalink
Warn instead of error on unadvised instance types
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshVanL committed Jun 21, 2018
1 parent 725eb19 commit b8ae323
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/tarmak/provider/amazon/amazon.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,17 +535,14 @@ func (a *Amazon) VerifyInstanceTypes(instancePools []interfaces.InstancePool) er
}

if found {
err := fmt.Errorf("type '%s' is not supported for master instance", instanceType)
result = multierror.Append(result, err)
a.tarmak.Log().Warnf("Type '%s' is not advised for master instance", instanceType)
}
break

case "etcd", "vault":
if a.awsInstanceBurstable(instanceType) {
err := fmt.Errorf("instance '%s' does not support burstable type (%s)", instance.Name(), instanceType)
result = multierror.Append(result, err)
a.tarmak.Log().Warnf("Burstable type '%s' is not advised for instance '%s'", instanceType, instance.Name())
}

break

}
Expand Down

0 comments on commit b8ae323

Please sign in to comment.