-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
@Skarlso Thank you for your contribution. |
9135cfb
to
9f12573
Compare
spec: a, | ||
comp: c, | ||
accessKeyID: creds.GetProperty(credentials.ATTR_AWS_ACCESS_KEY_ID), | ||
accessSecret: creds.GetProperty(credentials.ATTR_AWS_SECRET_ACCESS_KEY), |
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.
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"))) | ||
}) | ||
}) |
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.
will add more cases
I'dont closed it, may be because I delete the master branch. |
We have to make it work without reagin, because the download URL you get from the ui does not need a region. |
I've cherry picked the content and update the branch |
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: