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

[WIP] S3 access method for OCM #41

Closed
wants to merge 6 commits into from
Closed

[WIP] S3 access method for OCM #41

wants to merge 6 commits into from

Conversation

Skarlso
Copy link
Contributor

@Skarlso Skarlso commented Aug 4, 2022

NOTE: This PR will be rebased once #36 is merged. I'll also refactor the testing resources ( the way I'm mocking credentials ) and possibly unify some overlapping things.

What this PR does / why we need it:

Creates an access method for OCM.

Which issue(s) this PR fixes:
Fixes #40

Special notes for your reviewer:

Release note:

@gardener-robot
Copy link
Contributor

@Skarlso Thank you for your contribution.

spec: a,
comp: c,
accessKeyID: creds.GetProperty(credentials.ATTR_AWS_ACCESS_KEY_ID),
accessSecret: creds.GetProperty(credentials.ATTR_AWS_SECRET_ACCESS_KEY),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly add Session Token to this mix.

_, err := accessSpec.AccessMethod(&cpi.DummyComponentVersionAccess{Context: env.OCMContext()})
Expect(err).To(MatchError(ContainSubstring("failed to return any credentials; they MUST be provided for s3 access")))
})
})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

will add more cases

@mandelsoft
Copy link
Contributor

I'dont closed it, may be because I delete the master branch.

@mandelsoft
Copy link
Contributor

We have to make it work without reagin, because the download URL you get from the ui does not need a region.
May be we have to use the v1 version of the API,

@mandelsoft
Copy link
Contributor

I've cherry picked the content and update the branch s3_access_method. I cannot reopen the PR, so you have to create a new one,

@yitsushi yitsushi mentioned this pull request Aug 9, 2022
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.

Create S3 access method for OCM
4 participants