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

Migrate from glide to Go modules and upgrade AWS Go SDK #44

Merged
merged 2 commits into from
Mar 31, 2020

Conversation

shengxil
Copy link
Contributor

Derived from #32. Credit to @jasonrichardsmith

Issue #, if available:
#31

Description of changes:
moved from glide to go mod.

The Go community is now using Go Modules to handle dependencies. Please consider using that instead of Glide. Glide is now mostly unmaintained.

Upgraded aws go sdk to newest (1.29.29) for EKS OIDC IAM support. Fixed unit tests accordingly

Added docker build and push functionality. credentials still need to be added to the main repository.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

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

Couple tiny things, but looks good to go!


require (
github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect
github.com/aws/aws-sdk-go v1.29.29
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for updating AWS SDK!

@@ -305,7 +305,7 @@ func TestLoadEnvConfigCreds(t *testing.T) {
assert.Equal(t, "", valueA.AccessKeyID, "Expect the value to be empty")
assert.Equal(t, "", valueA.SecretAccessKey, "Expect the value to be empty")
assert.Equal(t, "", valueA.SessionToken, "Expect the value to be empty")
assert.Equal(t, "", valueA.ProviderName, "Expect the value to be empty")
assert.Equal(t, "AssumeRoleProvider", valueA.ProviderName, "Expect the value to be empty")
Copy link
Contributor

Choose a reason for hiding this comment

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

NP: Update the message on this assertion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, will update the message

makefile Outdated

vet:
${GO_VET_CMD} ${SDK_BASE_FOLDERS}
${GO_VET_CMD} ./...
Copy link
Contributor

Choose a reason for hiding this comment

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

NP: Consider eliminating GO_VET_CMD and replacing with go vet to be consistent with other Makefile targets. According to the docs, the -all flag is unnecessary.

Copy link
Contributor Author

@shengxil shengxil Mar 31, 2020

Choose a reason for hiding this comment

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

Good call out!

Copy link
Contributor

@bhautikpip bhautikpip left a comment

Choose a reason for hiding this comment

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

Will has addressed nit comments. other than those looks good:)

@shengxil shengxil merged commit bb22d59 into aws:master Mar 31, 2020
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.

None yet

3 participants