-
Notifications
You must be signed in to change notification settings - Fork 1.5k
WIP: CAPI AWS implementation #7879
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
Closed
patrickdillon
wants to merge
23
commits into
openshift:master
from
patrickdillon:capi-aws-implementation
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c986b07
pkg/asset/cluster: move tfvars to its own package
patrickdillon 07dcab2
provider interface: add asset.Parents arg
patrickdillon 5bd80c5
Move LoadMetadata to separate package
patrickdillon 2949dde
pkg/infrastructure: add capi provider
patrickdillon 36a26cf
pkg/infra/capi/aws: add initial implementation
patrickdillon 8d06e47
AWS: Provision IAM roles for CAPI
patrickdillon 770888a
SQUASH: use ErrorF in put IAM role
patrickdillon f4edf2d
infrastructure/aws: create DNS records
patrickdillon b8ed1a0
aws/machines: add CAPI sg, subnet filters
patrickdillon 90b0255
fixup! aws/machines: add CAPI sg, subnet filters
patrickdillon b581e2e
infrastructure/aws: export EnsureLoadBalancer
patrickdillon 1365bfd
WIP Add AWS supplemental resources
patrickdillon f1cb627
SQUASH: AWS CAPI fix LB -int suffix
patrickdillon f3b5a19
Register control plane machines
patrickdillon d6a4a34
DNM: switch TG to instance id
patrickdillon 7827516
WIP add tags to cluster
patrickdillon 28c09f7
WIP AWS create internal LB out of band
patrickdillon 969118a
Vendor: CAPA IAM v2
patrickdillon ecb4551
infra/capi/aws: create int LB with CAPI
patrickdillon 77392f9
WIP: add base capi provider
patrickdillon bcd4cd7
DefaultCAPIProvider implements Provider
patrickdillon 4eace3e
infra/capi/aws: embed default capi provider
patrickdillon 6815b69
infra/capi: add Ignition() to provider interface
patrickdillon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,30 @@ | ||||||
| package metadata | ||||||
|
|
||||||
| import ( | ||||||
| "encoding/json" | ||||||
| "os" | ||||||
| "path/filepath" | ||||||
|
|
||||||
| "github.com/openshift/installer/pkg/types" | ||||||
| "github.com/pkg/errors" | ||||||
| ) | ||||||
|
|
||||||
| const ( | ||||||
| FileName = "metadata.json" | ||||||
| ) | ||||||
|
|
||||||
| // LoadMetadata loads the cluster metadata from an asset directory. | ||||||
| func Load(dir string) (*types.ClusterMetadata, error) { | ||||||
| path := filepath.Join(dir, FileName) | ||||||
| raw, err := os.ReadFile(path) | ||||||
| if err != nil { | ||||||
| return nil, err | ||||||
| } | ||||||
|
|
||||||
| var metadata *types.ClusterMetadata | ||||||
| if err = json.Unmarshal(raw, &metadata); err != nil { | ||||||
| return nil, errors.Wrapf(err, "failed to Unmarshal data from %q to types.ClusterMetadata", path) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| } | ||||||
|
|
||||||
| return metadata, err | ||||||
| } | ||||||
2 changes: 1 addition & 1 deletion
2
pkg/asset/cluster/tfvars.go → pkg/asset/cluster/tfvars/tfvars.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| package cluster | ||
| package tfvars | ||
|
|
||
| import ( | ||
| "context" | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Let's not introduce this lib in new code.