Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotinst: Selecting a default Instance Group in Spot Ocean should be optional #9699

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

liranp
Copy link
Contributor

@liranp liranp commented Aug 6, 2020

This PR changes the way the default Instance Group for Spot Ocean is selected to allow users to create new clusters with multiple Instance Groups (#9471) without having to generate their manifests first to select the default by adding the metadata label (spotinst.io/ocean-default-launchspec).

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 6, 2020
@k8s-ci-robot k8s-ci-robot added area/provider/spotinst Issues or PRs related to spotinst provider approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 6, 2020
@rdrgmnzs
Copy link
Contributor

rdrgmnzs commented Aug 6, 2020

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 6, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liranp, rdrgmnzs

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit b443b37 into kubernetes:master Aug 6, 2020
@k8s-ci-robot k8s-ci-robot added this to the v1.19 milestone Aug 6, 2020
@liranp liranp deleted the fix-ocean-ig-per-zone branch August 6, 2020 18:54
}
}

klog.V(4).Infof("Detected default launch spec: %q", b.AutoscalingGroupName(ig))
}

// Rename the instance group to avoid duplicate tasks with same name.
ig.Name = fi.StringValue(ocean.Name)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HEy @liranp !
Could it be that this line introduced a bug I might be facing?

By overriding ig.Name it messes up userdata for default nodes:
ocean.UserData, err = b.BootstrapScriptBuilder.ResourceNodeUp(c, ig)

Because now nodeUp tries to fetch instance group config with name "ocean.Name" which ofcourse it doesn;t exist

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@povils, thanks for reporting this. I've raised another PR (#10630) to fix it. Sorry about that.

liranp added a commit to spotinst/kubernetes-kops that referenced this pull request Jan 21, 2021
liranp added a commit to spotinst/kubernetes-kops that referenced this pull request Jan 21, 2021
liranp added a commit to spotinst/kubernetes-kops that referenced this pull request Jan 21, 2021
liranp added a commit to spotinst/kubernetes-kops that referenced this pull request Jan 21, 2021
liranp added a commit to spotinst/kubernetes-kops that referenced this pull request Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/spotinst Issues or PRs related to spotinst provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants