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

Improve AMI generator #273

Merged
merged 3 commits into from
Oct 23, 2018
Merged

Improve AMI generator #273

merged 3 commits into from
Oct 23, 2018

Conversation

errordeveloper
Copy link
Contributor

Description

I've used jenifer in the --max-pods code, and it seems to work nicely (although a little less intuitive then templates). One advantage is that it's all Go code, and it does gofmt for you also.

Checklist

  • Code compiles correctly (i.e make build)
  • All tests passing (i.e. make test)

}

// Sort on region
sort.Slice(amiImages.General, func(i, j int) bool {

This comment was marked as abuse.


// Code generated by go generate; DO NOT EDIT.
// Generated code

This comment was marked as abuse.

package ami
ImageClassGPU: {

"eu-west-1": "ami-0706dc8a5eed2eed9",

This comment was marked as abuse.


package ami
ImageClassGPU: {

This comment was marked as abuse.

@errordeveloper errordeveloper changed the title Improve ami generator Improve AMI generator Oct 18, 2018
"github.com/weaveworks/eksctl/pkg/ami"
"github.com/weaveworks/eksctl/pkg/eks/api"

. "github.com/dave/jennifer/jen"

This comment was marked as abuse.

@errordeveloper
Copy link
Contributor Author

errordeveloper commented Oct 18, 2018 via email

Lazyshot
Lazyshot previously approved these changes Oct 18, 2018
@errordeveloper
Copy link
Contributor Author

@richardcase as you authored the original version, would you mind to give this a pass also?

@richardcase
Copy link
Contributor

@errordeveloper - i'll have a look now

Copy link
Contributor

@richardcase richardcase left a comment

Choose a reason for hiding this comment

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

@errordeveloper - looks good, just one comment about a comment header. I would've thought jen would do this.

@@ -1,21 +1,18 @@
package ami

This comment was marked as abuse.

This comment was marked as abuse.

@errordeveloper errordeveloper force-pushed the improve-ami-generator branch 3 times, most recently from 38eebcb to 06bd20b Compare October 22, 2018 07:40
@errordeveloper
Copy link
Contributor Author

Due to GitHub outage, latest commits are not showing up yet...

@errordeveloper errordeveloper merged commit 3c3abe5 into master Oct 23, 2018
@errordeveloper errordeveloper deleted the improve-ami-generator branch December 19, 2018 10:49
torredil pushed a commit to torredil/eksctl that referenced this pull request May 20, 2022
Increase log verbosity for probe call
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.

4 participants