-
Notifications
You must be signed in to change notification settings - Fork 637
🐛 Restore subnet management functionality #4474
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -348,8 +348,20 @@ func (v *VPCSpec) IsIPv6Enabled() bool { | |||||||||||
| // SubnetSpec configures an AWS Subnet. | ||||||||||||
| type SubnetSpec struct { | ||||||||||||
| // ID defines a unique identifier to reference this resource. | ||||||||||||
| // If you're bringing your subnet, set the AWS subnet-id here, it must start with `subnet-`. | ||||||||||||
vincepri marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||
| // | ||||||||||||
| // When the VPC is managed by CAPA, and you'd like the provider to create a subnet for you, | ||||||||||||
| // the id can be set to any placeholder value that does not start with `subnet-`; | ||||||||||||
| // upon creation, the subnet AWS identifier will be populated in the `ResourceID` field and | ||||||||||||
| // the `id` field is going to be used as the subnet name. If you specify a tag | ||||||||||||
| // called `Name`, it takes precedence. | ||||||||||||
| ID string `json:"id"` | ||||||||||||
|
|
||||||||||||
| // ResourceID is the subnet identifier from AWS, READ ONLY. | ||||||||||||
| // This field is populated when the provider manages the subnet. | ||||||||||||
|
||||||||||||
| // ResourceID is the subnet identifier from AWS, READ ONLY. | |
| // This field is populated when the provider manages the subnet. | |
| // ResourceID is the subnet identifier from AWS, READ ONLY. | |
| // This field is populated when the provider manages the subnet. | |
| // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="resourceID is immutable" |
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.
Do we want to handle this on this PR or as a follow up?
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 don't have a strong opinion to enforce this today, the reconciler will overwrite it anyways
Uh oh!
There was an error while loading. Please reload this page.