Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

[v0.16.x] Migrate to new s3 URL method #1873

Merged
merged 1 commit into from
Jun 15, 2020

Conversation

tjamet
Copy link

@tjamet tjamet commented Jun 8, 2020

Path based access has been deprecated and now returns a redirect error to bucketname.s3.amazonaws.com
as explained in this post:
https://aws.amazon.com/blogs/aws/amazon-s3-path-deprecation-plan-the-rest-of-the-story/

This makes cloudformation to fail as it refers to the now redirected s3
bucket path, and raises the message:
S3 error: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. For more information check http://docs.aws.amazon.com/AmazonS3/la

There is no strong documentation about what are the updates in China and
Gov regions, consider it follows the same logic.

Path based access has been deprecated and now returns a redirect error to bucketname.s3.amazonaws.com
as explained in this post:
https://aws.amazon.com/blogs/aws/amazon-s3-path-deprecation-plan-the-rest-of-the-story/

This makes cloudformation to fail as it refers to the now redirected s3
bucket path, and raises the message:
S3 error: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html

There is no strong documentation about what are the updates in China and
Gov regions, consider it follows the same logic.

Change-Id: I9f8bbc47801b120c216d24de701855073506c89c
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 8, 2020
@k8s-ci-robot
Copy link
Contributor

Welcome @tjamet!

It looks like this is your first PR to kubernetes-incubator/kube-aws 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-incubator/kube-aws has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign mumoshu
You can assign the PR to them by writing /assign @mumoshu in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested review from cknowles and mumoshu June 8, 2020 16:10
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 8, 2020
@codecov-commenter
Copy link

Codecov Report

Merging #1873 into v0.16.x will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           v0.16.x    #1873      +/-   ##
===========================================
- Coverage    24.41%   24.40%   -0.01%     
===========================================
  Files           98       98              
  Lines         5116     5117       +1     
===========================================
  Hits          1249     1249              
- Misses        3727     3728       +1     
  Partials       140      140              
Impacted Files Coverage Δ
pkg/api/assets.go 0.00% <0.00%> (ø)
pkg/api/region.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2781f8...f553e94. Read the comment docs.

@Fsero
Copy link
Contributor

Fsero commented Jun 9, 2020

/assign @dominicgunn

@Fsero
Copy link
Contributor

Fsero commented Jun 9, 2020

@tjamet could you please also patch 0.15.x and 0.14.x?

@tjamet
Copy link
Author

tjamet commented Jun 10, 2020

@Fsero yes sure, did this first one for the approach to focus discussion and planned to do so when convergence on the solution

@dominicgunn
Copy link
Contributor

Thanks for doing this @tjamet! The approach here seems good.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 15, 2020
@dominicgunn
Copy link
Contributor

Thanks for doing this @tjamet! The approach here seems good.

/lgtm

@dominicgunn dominicgunn merged commit 675ee63 into kubernetes-retired:v0.16.x Jun 15, 2020
@dominicgunn dominicgunn changed the title Migrate to new s3 URL method [v0.16.x] Migrate to new s3 URL method Jul 3, 2020
@dominicgunn dominicgunn added this to the v0.16.2 milestone Jul 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants