-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Issue-7956] - [Digital Ocean] Minor fix to have proper indexing for digital ocean regions #8002
[Issue-7956] - [Digital Ocean] Minor fix to have proper indexing for digital ocean regions #8002
Conversation
…with numbers other than one like sfo2
Hi @srikiz. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
FYI - @timoreimann @prksu - please have a look when you get a chance. Thanks ! |
@srikiz i have a similar approach with you. /ok-to-test |
Yeah - But it looks like the trimCommonPrefix removes the common prefix in comparing with the specific array. Since we had only one element in the masterCount, it just removes everything except the last character.
I think from DO perspective, what we have is Ok, since we are actually using the name as the etcd-index for the master. |
We are currently doing this if we have multiple masters in a given region.
|
fixes #7956 |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: srikiz, zetaab 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 |
…pstream-release-1.17 Automated cherry pick of #8002: Minor fix to have proper indexing for digital ocean
Found an issue where regions ending with characters other than "1" like sfo2 had problems with etcdmanager.
The index was set to 2 instead of 1 because of the way we are currently trimming in https://github.com/kubernetes/kops/blob/master/cmd/kops/create_cluster.go#L802
Since this is a common code, I added special check for DO to use the logic differently that suits DO.
You now see the instanceGroup as below and the name is properly set to "1" instead of "2".
` configBase: do://sri-kops-space/dev5.techthreads.co.in
etcdClusters:
etcdMembers:
name: "1"
memoryRequest: 100Mi
name: main
etcdMembers:
name: "1"
memoryRequest: 100Mi
name: events
`