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

EKS support for prombench #384

Merged
merged 34 commits into from
Sep 5, 2020

Conversation

weastel
Copy link
Contributor

@weastel weastel commented Jun 17, 2020

This PR incorporates the following changes:-

  1. Add Support for rangeVars
  2. EKS commands for creation/deletion of clusters, creation/deletion of nodegroups and resource apply/delete
  3. Temporary documentations for EKS

@weastel weastel force-pushed the eks_support_for_prombench branch 2 times, most recently from e70eca2 to f13f7ea Compare June 19, 2020 09:47
@weastel weastel marked this pull request as ready for review June 25, 2020 11:22
Copy link
Contributor

@geekodour geekodour left a comment

Choose a reason for hiding this comment

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

nice work! :) some changes and questions.

infra/README.md Show resolved Hide resolved
infra/infra.go Outdated Show resolved Hide resolved
infra/infra.go Outdated Show resolved Hide resolved
infra/infra.go Outdated Show resolved Hide resolved
prombench/Makefile Outdated Show resolved Hide resolved
prombench/README.md Outdated Show resolved Hide resolved
pkg/provider/provider.go Outdated Show resolved Hide resolved
@weastel weastel force-pushed the eks_support_for_prombench branch from 57db3bc to 8aa54a9 Compare July 6, 2020 16:28
@weastel
Copy link
Contributor Author

weastel commented Jul 6, 2020

@geekodour Can you please review it again?

@weastel
Copy link
Contributor Author

weastel commented Jul 7, 2020

@geekodour Docmentation added.

Copy link
Contributor

@geekodour geekodour left a comment

Choose a reason for hiding this comment

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

Great stuff, nice improvements :) Thanks! ✨

Some questions and change suggestions.

prombench/README.md Outdated Show resolved Hide resolved
prombench/manifests/cluster_gke.yaml Outdated Show resolved Hide resolved
infra/infra.go Outdated Show resolved Hide resolved
prombench/Makefile Outdated Show resolved Hide resolved
prombench/Makefile Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
infra/infra.go Outdated Show resolved Hide resolved
pkg/provider/eks/eks.go Outdated Show resolved Hide resolved
@weastel weastel requested a review from geekodour July 24, 2020 21:20
Copy link
Contributor

@geekodour geekodour left a comment

Choose a reason for hiding this comment

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

Good progress! thanks for the work 😃

Added some suggestions, questions and ideas. :)

prombench/Makefile Outdated Show resolved Hide resolved
prombench/README.md Outdated Show resolved Hide resolved
prombench/manifests/cluster_gke.yaml Outdated Show resolved Hide resolved
prombench/Makefile Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
prombench/Makefile Outdated Show resolved Hide resolved
prombench/Makefile Outdated Show resolved Hide resolved
@weastel weastel force-pushed the eks_support_for_prombench branch 2 times, most recently from 212bf71 to 118eb65 Compare July 29, 2020 17:08
Copy link
Contributor

@geekodour geekodour left a comment

Choose a reason for hiding this comment

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

We're almost nearing finishing this PR, I think a couple of more iterations :) Nice work 👍

Some suggestion, questions and changes.

prombench/Makefile Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
// NewEKSClient sets the EKS client used when performing the GKE requests.
func (c *EKS) NewEKSClient(*kingpin.ParseContext) error {
if c.AuthFilename != "" {
} else if c.AuthFilename = os.Getenv("AWS_APPLICATION_CREDENTIALS"); c.AuthFilename == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to check for AWS_APPLICATION_CREDENTIALS ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually this seems like a good idea: https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#using-encrypted-secrets-in-a-workflow

But we'll still be passing the base64 version of the toml credentials file in Github Actions, so we still need to see if the auth data is base64 encoded and create a file to pass to NewSharedCredentials.

// Check if auth data is base64 encoded and decode it.
encoded, err := regexp.MatchString("^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$", c.Auth)
if err != nil {
return err
}
if encoded {
auth, err := base64.StdEncoding.DecodeString(c.Auth)
if err != nil {
return errors.Wrap(err, "could not decode auth data")
}
c.Auth = string(auth)
}

prombench/Makefile Outdated Show resolved Hide resolved
prombench/Makefile Outdated Show resolved Hide resolved
pkg/provider/eks/eks.go Show resolved Hide resolved
@weastel weastel force-pushed the eks_support_for_prombench branch from c1120bc to 5c1e310 Compare August 3, 2020 23:56
Copy link
Contributor

@geekodour geekodour left a comment

Choose a reason for hiding this comment

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

Thanks for adding the changes! Added some comments to make this PR smaller by extracting out the GKE specific changes to a separate PR :)

infra/README.md Outdated Show resolved Hide resolved
infra/infra.go Outdated Show resolved Hide resolved
prombench/Makefile Show resolved Hide resolved
prombench/README.md Show resolved Hide resolved
prombench/Makefile Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
@weastel
Copy link
Contributor Author

weastel commented Aug 15, 2020

@geekodour Added info command for eks

Waiting for #425 to be merged 😝

pkg/provider/eks/eks.go Outdated Show resolved Hide resolved
@weastel weastel force-pushed the eks_support_for_prombench branch 2 times, most recently from 7a302e8 to cbee5c1 Compare August 20, 2020 22:46
Copy link
Contributor

@geekodour geekodour left a comment

Choose a reason for hiding this comment

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

Looks like this is shaping up nicely, some minor documentation nits :)

prombench/Makefile Outdated Show resolved Hide resolved
prombench/Makefile Outdated Show resolved Hide resolved
prombench/docs/eks.md Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
prombench/docs/eks.md Outdated Show resolved Hide resolved
Copy link
Contributor

@geekodour geekodour left a comment

Choose a reason for hiding this comment

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

Nice, almost LGTM :) Few questions and minor changes. 🎇 Please update the PR description with all the new changes and remove the changes that are no longer part of the PR. Also mention about automated subnet ids will add support of funcbench etc.

@krasi-georgiev It'll be awesome if you can take a look at this one :)

pkg/provider/eks/eks.go Outdated Show resolved Hide resolved
pkg/provider/eks/eks.go Outdated Show resolved Hide resolved
pkg/provider/eks/eks.go Outdated Show resolved Hide resolved
@weastel weastel requested a review from geekodour August 25, 2020 08:59
@weastel weastel force-pushed the eks_support_for_prombench branch from 8adf862 to 2615217 Compare August 25, 2020 09:05
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
Signed-off-by: Drumil Patel <[email protected]>
@weastel weastel force-pushed the eks_support_for_prombench branch from 0783336 to 44870e4 Compare September 3, 2020 19:02
@geekodour geekodour merged commit c162e41 into prometheus:master Sep 5, 2020
@geekodour
Copy link
Contributor

Merged. 🎉🎊 Thanks for all your work on this PR @weastel !

Now need to rebase #421 to add funcbench support :)

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.

2 participants