-
Notifications
You must be signed in to change notification settings - Fork 49
Use hub in after inits of multi cluster environments #566
Conversation
pkg/tarmak/provider/amazon/amazon.go
Outdated
if a.tarmak.Cluster() != nil { | ||
if err := a.verifyInstanceTypes(); err != nil { | ||
result = multierror.Append(result, err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can get rid of this and discuss it in #559
/assign @alljames |
75a01be
to
52bb2cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick review, would be good to get that into 0.5.0
pkg/tarmak/tarmak.go
Outdated
// ensure that the tarmak cli is pointing to that environment's 'hub' cluster | ||
// resource, else set point tarmak cli to newly-initialised cluster | ||
switch cluster.Type() { | ||
case "cluster-multi": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use a constant here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now uses a const
… default on new multicluster Signed-off-by: Aled James <aledjms@gmail.com>
Signed-off-by: Aled James <aledjms@gmail.com>
Signed-off-by: Aled James <aledjms@gmail.com>
2e3f82b
to
873318e
Compare
/unassign |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: simonswine The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Fixes
tarmak init
panics when run against empty ~/.tarmakWhich issue this PR fixes fixes #556
Release note: