-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat: enable min/max on Azure VMSS autodiscovery #2121
Conversation
Welcome @alexeldeib! |
fyi @feiskyer |
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.
Thanks for the fix.
/lgtm
Want to remember to add a note to docs as well, I’ll do it this week. Until then /hold |
What is the status of this PR? Can we merge it? |
ping @alexeldeib |
Apologies, I did not remember 😦 that was the only missing piece. /hold cancel |
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.
/lgtm
/approve
@mwielgus could you help to approve the changes? |
/assign @mwielgus |
@losipiuk Could you help to take a look? |
Seems fine. Just one request. Can we move all the ParseLabel stuff to be under |
Reasonable. @alexeldeib could you move those to azure package? |
Will do, but probably not before the end of the week. |
ping @alexeldeib any updates on the PR? |
Sorry for two extremely long delays. @losipiuk I thought I understand the request -- basically move Few cloud providers define a private Do you want me to break this up and move the cloudprovider-specific bits into their respective directories for GCE, AWS, as well as Azure provider? It seems like that would be necessary, based on the current structure (otherwise I'm introducing a circular import dependency from {specific provider} -> {discovery opts} -> {specific provider} ). I can definitely do it, but I didn't want to make any code changes to other providers without checking this. |
@feiskyer maybe you can give me a sanity check on that, if I am missing something obvious here? |
@alexeldeib sorry for the late response. I was thinking of moving both Similar thing should also be done for GCE and AWS connectors. If you are willing to do that would super great! Those can be separate PRs. |
}, ", ") | ||
|
||
// A LabelAutoDiscoveryConfig specifies how to autodiscover Azure scale sets. | ||
type LabelAutoDiscoveryConfig struct { |
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.
private?
@@ -459,3 +461,63 @@ func extractTaintsFromAsg(tags []*autoscaling.TagDescription) []apiv1.Taint { | |||
} | |||
return taints | |||
} | |||
|
|||
// An ASGAutoDiscoveryConfig specifies how to autodiscover AWS ASGs. | |||
type ASGAutoDiscoveryConfig struct { |
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.
private
0b13c5f
to
2bd2c45
Compare
The commits aren't perfectly self-contained because they all depend on the common code, but I broke it into azure/aws/gce/common. Hopefully that's easier to review |
2bd2c45
to
68d1e77
Compare
68d1e77
to
7ad87f5
Compare
7ad87f5
to
57e4471
Compare
That is fine. I will not fight over minor cleanups :) Thanks a lot. /lgtm Putting on hold so @Jeffwan can take a look |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: feiskyer, losipiuk 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 |
@Jeffwan PTAL :) |
/assign @Jeffwan |
LGTM. Seems I am the only reviewer block this PR. I can cancel the hold. /hold cancel |
Do you have an ETA on when this change will be released? Thanks for the work!! |
@fiunchinho this is a new feature and the code changes are a little large. So we don't cherry pick it to old releases, hence it would only be included together with Kubernetes v1.17. |
feat: enable min/max on Azure VMSS autodiscovery
ref: #2051