-
Notifications
You must be signed in to change notification settings - Fork 246
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
providers: add scaleway #1794
providers: add scaleway #1794
Conversation
When establishing a network connection random port selection from the Kernel for local address is enough in 99.9% of the case. For the 0.1%, let's add a way to customize the local port used. Signed-off-by: Mathieu Tortuyaux <[email protected]>
0d427b8
to
12c882c
Compare
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
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.
Just a small nit, would it be possible to describe how scale way is fetching the data in a comment above. similar to how it was done here.
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.
Comment added. ✔️
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.
Thank you for putting this together. Just a super small nit, but otherwise LGTM!
Signed-off-by: Mathieu Tortuyaux <[email protected]>
12c882c
to
ce0bf8c
Compare
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.
Some comments, but LGTM as is too. We can always tweak those things in a follow-ups.
Thanks for the patch!
Right gotcha. I misread the code here and thought we were retrying the same port in a loop. But we're clearly generating a new port number each time. |
Hi,
In this PR we add the support for Scaleway cloud provider. Locally tested on Flatcar + Scaleway:
While it's a regular IMDS endpoint, it has a small difference with other providers:
I decided to go with a new
FetchOption
calledLocalPort
and to override the defaultDialContext
.Related to: coreos/fedora-coreos-tracker#866