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: Skip the creation of LoadBalancerAttachment tasks if Spotinst is enabled #6015

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

liranp
Copy link
Contributor

@liranp liranp commented Oct 29, 2018

Creating a new cluster using a private topology fails with the following error message if the Spotinst integration is enabled.

Command:

KOPS_FEATURE_FLAGS="+Spotinst" kops create cluster ... --topology private

Error:

error building tasks: unexpected error resolving task "LoadBalancerAttachment/api-master-us-west-2a": Unable to find task "AutoscalingGroup/master-us-west-2a.masters.kops.ek8s.com", referenced from LoadBalancerAttachment/api-master-us-west-2a:.AutoscalingGroup

This PR fixes the error by skipping the creation of LoadBalancerAttachment tasks since this is already done as part of the Elastigroup's creation, if needed.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 29, 2018
@liranp liranp changed the title Skip the creation of LoadBalancerAttachment tasks when Spotinst is enabled Skip the creation of LoadBalancerAttachment tasks if Spotinst is enabled Oct 29, 2018
@idealhack
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 30, 2018
@liranp liranp changed the title Skip the creation of LoadBalancerAttachment tasks if Spotinst is enabled Spotinst: Skip the creation of LoadBalancerAttachment tasks if Spotinst is enabled Oct 31, 2018
@justinsb
Copy link
Member

justinsb commented Nov 9, 2018

Thanks @liranp

/approve
/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

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

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 9, 2018
@idealhack
Copy link
Member

/test pull-kops-e2e-kubernetes-aws

2 similar comments
@idealhack
Copy link
Member

/test pull-kops-e2e-kubernetes-aws

@idealhack
Copy link
Member

/test pull-kops-e2e-kubernetes-aws

@k8s-ci-robot k8s-ci-robot merged commit 35f0eaa into kubernetes:master Nov 13, 2018
@liranp liranp deleted the fix-lb-attachment branch May 5, 2019 14:36
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. 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants