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

Fixes #630 leading slash on s3:prefix removed to fix ListObject permi… #634

Merged
merged 1 commit into from
May 10, 2017

Conversation

jeremyd
Copy link
Contributor

@jeremyd jeremyd commented May 9, 2017

…ssion denied error during etcdadm save.

…x ListObject permission denied error during etcdadm save
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 9, 2017
@codecov-io
Copy link

Codecov Report

Merging #634 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #634   +/-   ##
=======================================
  Coverage   38.26%   38.26%           
=======================================
  Files          51       51           
  Lines        3316     3316           
=======================================
  Hits         1269     1269           
  Misses       1845     1845           
  Partials      202      202
Impacted Files Coverage Δ
core/controlplane/config/stack_config.go 71.42% <100%> (ø) ⬆️

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 f6b5d5e...0f2a299. Read the comment docs.

@@ -124,8 +124,8 @@ func (c *StackConfig) EtcdSnapshotsS3PrefixRef() (string, error) {
if err != nil {
return "", fmt.Errorf("Error in EtcdSnapshotsS3Prefix : %v", err)
}
s3path := fmt.Sprintf(`{ "Fn::Join" : [ "", [ "%s/instances/", { "Fn::Select" : [ "2", { "Fn::Split": [ "/", { "Ref": "AWS::StackId" }]} ]}, "/etcd-snapshots" ]]}`, s3uri.Path)
return strings.TrimLeft(s3path, "/"), nil
Copy link
Contributor

Choose a reason for hiding this comment

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

😱

@mumoshu
Copy link
Contributor

mumoshu commented May 10, 2017

@jeremyd LGTM. Thanks as always for your support 👍

@mumoshu mumoshu merged commit fe46653 into kubernetes-retired:master May 10, 2017
kylehodgetts pushed a commit to HotelsDotCom/kube-aws that referenced this pull request Mar 27, 2018
Fixes kubernetes-retired#630 leading slash on s3:prefix removed to fix ListObject permi…
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants