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

mantle/platform/aliyun: modify the API to use HTTPS by default #3845

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

marmijo
Copy link
Member

@marmijo marmijo commented Aug 12, 2024

Attempting to override the http scheme for each request is not working for every request type. Let's set the client config scheme to HTTPS by default. Move away from NewClientWithAccessKey and instead create an access key separately and then use NewClientWithOptions to create the client with a custom config using "HTTPS" for the scheme.
Also remove the scheme override for each request.

This code was tested and is working properly in the new ITUP cluster for the RHCOS pipeline.

aaradhak
aaradhak previously approved these changes Aug 12, 2024
Copy link
Member

@aaradhak aaradhak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marmijo
Copy link
Member Author

marmijo commented Aug 12, 2024

CI should be fixed by #3844, I'll rebase this PR when it merges.

Attempting to override the http scheme for each request is not working
for every request type. Let's set the client config scheme to HTTPS by default.
Move away from `NewClientWithAccessKey` and instead create an access key
separately and then use `NewClientWithOptions` to create the client with a
custom config using "HTTPS" for the scheme.
Also remove the scheme override for each request.
Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@jlebon jlebon merged commit 5ed3049 into coreos:main Aug 14, 2024
5 checks passed
@mike-nguyen
Copy link
Member

We'll need to backport this all the way to rhcos-4.12 right?

@marmijo
Copy link
Member Author

marmijo commented Aug 14, 2024

We'll need to backport this all the way to rhcos-4.12 right?

Ah, yes we will need to do that. I can go ahead and open those PRs.

@mike-nguyen
Copy link
Member

I think you can comment /cherrypick <branch> to do that if it applies cleanly

@marmijo
Copy link
Member Author

marmijo commented Aug 14, 2024

/cherrypick rhcos-4.17

@openshift-cherrypick-robot

@marmijo: only coreos org members may request cherry picks. If you are already part of the org, make sure to change your membership to public. Otherwise you can still do the cherry-pick manually.

In response to this:

/cherrypick rhcos-4.17

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-sigs/prow repository.

@marmijo
Copy link
Member Author

marmijo commented Aug 14, 2024

I am part of the coreos org though, bot! 😆 Didn't realize I was private.

/cherrypick rhcos-4.17

@openshift-cherrypick-robot

@marmijo: new pull request created: #3852

In response to this:

I am part of the coreos org though, bot! 😆 Didn't realize I was private.

/cherrypick rhcos-4.17

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-sigs/prow repository.

@marmijo
Copy link
Member Author

marmijo commented Aug 14, 2024

/cherrypick rhcos-4.16

@openshift-cherrypick-robot

@marmijo: new pull request created: #3853

In response to this:

/cherrypick rhcos-4.16

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-sigs/prow repository.

@marmijo
Copy link
Member Author

marmijo commented Aug 14, 2024

/cherrypick rhcos-4.15

@openshift-cherrypick-robot

@marmijo: new pull request created: #3854

In response to this:

/cherrypick rhcos-4.15

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-sigs/prow repository.

@marmijo
Copy link
Member Author

marmijo commented Aug 14, 2024

/cherrypick rhcos-4.14

@openshift-cherrypick-robot

@marmijo: new pull request created: #3855

In response to this:

/cherrypick rhcos-4.14

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-sigs/prow repository.

@marmijo
Copy link
Member Author

marmijo commented Aug 14, 2024

/cherrypick rhcos-4.13

@openshift-cherrypick-robot

@marmijo: new pull request created: #3856

In response to this:

/cherrypick rhcos-4.13

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-sigs/prow repository.

@marmijo
Copy link
Member Author

marmijo commented Aug 14, 2024

/cherrypick rhcos-4.12

@openshift-cherrypick-robot

@marmijo: new pull request created: #3857

In response to this:

/cherrypick rhcos-4.12

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants