-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/s3 c 9226 create bucket #4
Conversation
- Added Dockerfile, Makefile and CI workflows - Added tests for DriverInfo in identity server Issue: S3C-9222
- Updated provisioner to implement create bucket functionality - Added an S3 client to interact with S3 - Added logs to the methods not implemented yet - Added placeholder for accepting TLS certificates for S3 endpoint. Issue: S3C-9226
8b756c6
to
70f9c8e
Compare
go.mod
Outdated
) | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.55.5 |
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.
The AWS recommendation is to move to V2 https://github.com/aws/aws-sdk-go-v2, end of support is in less than a year for V1.
@@ -0,0 +1,120 @@ | |||
/* |
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.
Should this be in a LICENSE
file?
@@ -0,0 +1,5317 @@ | |||
// Code generated by MockGen. DO NOT EDIT. |
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.
We should at least document how this is generated, for repeatability. How about adding it in the build step of the Makefile?
pkg/driver/provisioner.go
Outdated
return s3Client, nil | ||
} | ||
|
||
func fetchS3Parameters(secretData map[string][]byte) (string, string, string, string, string, error) { |
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.
May be worth creating a private type s3Params struct{ AccessKey string ...}
returned by this function.
pkg/util/s3client/s3-handler.go
Outdated
} | ||
|
||
// configureTLSTransport sets up the HTTP transport with TLS support | ||
func configureTLSTransport(certData []byte, skipTLS bool) *http.Transport { |
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.
func configureTLSTransport(certData []byte, skipTLS bool) *http.Transport { | |
func configureTLSTransport(certData []byte, skipVerify bool) *http.Transport { |
610ef55
to
45bc875
Compare
As too much rework is needed, I am gonna divide this into 2 PRs
First PR: #6 |
feature: Create Bucket using provisioner