-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Adding support for us-isof and eu-isoe regions #8151
Conversation
Thanks you for this contribution @jdwtf ! Unfortunately I couldn't rebase your PR directly likely because of a GH bug... so I've opened another one with your commit. |
cmd/eksctl/logger.go
Outdated
@@ -101,7 +101,7 @@ func dumpLogsToDisk(logBuffer *bytes.Buffer, errorString string) error { | |||
if _, err := os.Stat("logs/"); os.IsNotExist(err) { | |||
|
|||
if err := os.Mkdir("logs/", 0755); err != nil { | |||
return fmt.Errorf(err.Error()) | |||
return fmt.Errorf("%s", err.Error()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qq: why not just return the err? and same question for similar changes below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to stay light touch. The linter was complaining about no string format on the Errorf call so I just gave it one. The description of my original PR (that I had to cancel) has much better detail:
Description
Adding support for new isolated AWS regions to include necessary changes for testing and fixing linter errors/complaints. A prototype binary was generated with these changes and we are able to successfully test functionality in region.
Key Changes For Build:
- pkg/apis/eksctl.io/v1alpha5/partitions.go: added
- added logic to account for the four service endpoints that have non-standard domain prefixes in these partitions
- partitions strings
- partitions objects with region-appropriate
- service mappings
- domain prefixes
- added partitions to ISO part of GetEndpointServiceDomainPrefix
- pkg/apis/eksctl.io/v1alpha5/types.go: added
- in-region resource account IDs
- region strings
- SupportedRegions strings
Key Changes For Testing:
- pkg/actions/nodegroup/testdata all *.json files updated ServicePrincipalPartitionMap
- pkg/cfn/builder/karpenter_test.go updated expectedTemplate* template strings
- pkg/cfn/builder/testdata/nodegroup_access_entry all *.json files ServicePrincipalPartitionMap
- pkg/cfn/builder/testdata/ added service_details_isob.json, service_details_isoe.json, service_details_isof.json
- pkg/cfn/builder/vpc_endpoint_test.go to add tests for isob, isoe and isof
Documentation:
- added new regions' information to
- userdocs/theme/home.html
- userdocs/src/getting-started.md
Linter Warnings/Errors:
- integration/tests/crud/creategetdelete_test.go: error and return value check for Sscanf
- added static string formatting to
- cmd/eksctl/logger.go
- pkg/actions/accessentry/task.go
- pkg/actions/addon/tasks.go
- pkg/actions/anywhere/anywhere.go
- pkg/actions/podidentityassociation/tasks.go
- pkg/cfn/template/matchers/matchers.go
- pkg/eks/api_test.go
- pkg/ssh/client/ssh.go
- unnecessary nil checks for 0 length slice
- pkg/apis/eksctl.io/v1alpha5/addon.go
- pkg/apis/eksctl.io/v1alpha5/addon.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated this line to just return err
, the other similar changes seem correct to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
adding support for us-isof and eu-isoe regions
Description
Closes #8095
Checklist
README.md
, or theuserdocs
directory)area/nodegroup
) and kind (e.g.kind/improvement
)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯