Skip to content

Commit

Permalink
Removed kube2iam workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
fterrag committed Jul 23, 2018
1 parent 51712b2 commit c5283ff
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 12 deletions.
53 changes: 50 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions cmd/simplesqsd/simplesqsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"net/http"
"os"
"strconv"
"time"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
Expand Down Expand Up @@ -85,14 +84,6 @@ func main() {

sqsSvc := sqs.New(awsSess, sqsConfig)

// To workaround a kube2iam issue, expire credentials every minute.
go func() {
for {
sqsSvc.Config.Credentials.Expire()
time.Sleep(time.Minute)
}
}()

wConf := supervisor.WorkerConfig{
QueueURL: c.QueueURL,
QueueMaxMessages: c.QueueMaxMessages,
Expand Down

0 comments on commit c5283ff

Please sign in to comment.