-
Notifications
You must be signed in to change notification settings - Fork 13
Update Safespring loadbalancer configuration to support kube-vip #2890
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
Conversation
Xartos
left a comment
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.
Suggestion: Also add migration for this to add the old variables as overrides. Since it might break existing clusters that are using these defaults
|
Do we have any Safespring clusters on CAPI? |
|
Added @elastisys/goto-cluster-api and @elastisys/goto-safespring as reviewers for extra eyes on this |
I don't think we have any now. |
Nope, that depends on how the cluster is setup and we can't know that in advance
This is why we need migration scripts, so that existing clusters keeps their old configuration that is currently working. This could be the default going forward, but the migration from 49 -> 50 should at least not break existing clusters. |
I'll try to make it possible to have separate configs for separate installers instead. Feels like as long as we support multiple installers this will be necessary. |
|
I'm unsure why this is being changed? Will this mean that we only support Safespring on CAPI from this moment onwards? If so then fine, note that we will then have the additional requirement of always having Elastic IPs available there. Why this wasn't changed to match how we setup MetalLB (which is the same configuration as this) was due to it requiring internal steps to setup, and Elastic IPs. So it wasn't considered something that someone could pick up and use by default. |
Not anymore: b9d990d
Someone that has more insight will have to answer this.
Someone that has more insight will have to answer this. |
vomba
left a comment
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.
🚀
bin/init.bash
Outdated
| if [[ -f "${config_template_path}/providers/${CK8S_CLOUD_PROVIDER}/${config_name}" ]]; then | ||
| if [[ -f "${config_template_path}/providers/${CK8S_CLOUD_PROVIDER}/${CK8S_K8S_INSTALLER}/${config_name}" ]]; then | ||
| files+=("${config_template_path}/providers/${CK8S_CLOUD_PROVIDER}/${CK8S_K8S_INSTALLER}/${config_name}") | ||
| elif [[ -f "${config_template_path}/providers/${CK8S_CLOUD_PROVIDER}/${config_name}" ]]; then |
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.
What if the installer-specific one was last and contained only installer-specific overrides? I'm thinking there's a lot of duplication
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.
Zash
left a comment
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.
Nice code to test ratio 😃
|
Odd... The new commit I pushed should not have caused the tests to fail like this |
GitHub had issues so the downloaded |
|
|
||
| ARG YQ_VERSION="4.45.1" | ||
| RUN curl -LOs "https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_amd64" && \ | ||
| echo "654d2943ca1d3be2024089eb4f270f4070f491a0610481d128509b2834870049 yq_linux_amd64" | sha256sum -c - && \ |
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.
Neat way of validating hash inline
b3a0e4a to
a90fa7a
Compare
Warning
This is a public repository, ensure not to disclose:
What kind of PR is this?
Required: Mark one of the following that is applicable:
Optional: Mark one or more of the following that are applicable:
Important
Breaking changes should be marked
kind/admin-changeorkind/dev-changedepending on typeCritical security fixes should be marked with
kind/securityWhat does this PR do / why do we need this PR?
Without this the kube-vip setup does not work.
Information to reviewers
Checklist