Skip to content

Conversation

@RedbackThomson
Copy link
Contributor

Issue #, if available: Fixes aws-controllers-k8s/community#878

Description of changes:
Rather than defaulting to a set version of the AWS SDK, this pull request will read the go.mod in the service controller's repository and infer the github.com/aws/aws-sdk-go version.

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

@ack-bot ack-bot requested review from a-hilaly and vijtrip2 July 23, 2021 19:46
@RedbackThomson RedbackThomson changed the title Default AWS_SDK_GO_VERSION to go.mod version Default AWS_SDK_GO_VERSION to go.mod version Jul 23, 2021
@vijtrip2
Copy link
Contributor

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 23, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Jul 23, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RedbackThomson, vijtrip2

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [RedbackThomson,vijtrip2]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit cae7cb2 into aws-controllers-k8s:main Jul 23, 2021
ACK_GENERATE_SERVICE_ACCOUNT_NAME=${ACK_GENERATE_SERVICE_ACCOUNT_NAME:-"ack-$SERVICE-controller"}

if [ -z "$AWS_SDK_GO_VERSION" ]; then
AWS_SDK_GO_VERSION=$(go list -m -f '{{ .Version }}' -modfile $SERVICE_CONTROLLER_SOURCE_PATH/go.mod github.com/aws/aws-sdk-go)
Copy link
Member

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using the default AWS_SDK_GO_VERSION does not alert user

4 participants