-
Notifications
You must be signed in to change notification settings - Fork 96
Add FrontendVPCs support to NodeBalancers #857
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,6 +22,10 @@ type NodeBalancer struct { | |||||||||
| IPv4 *string `json:"ipv4"` | ||||||||||
| // This NodeBalancer's public IPv6 address. | ||||||||||
| IPv6 *string `json:"ipv6"` | ||||||||||
| // Frontend address type (e.g., "vpc") | ||||||||||
| FrontendAddressType *string `json:"frontend_address_type,omitempty"` | ||||||||||
|
Comment on lines
+25
to
+26
|
||||||||||
| // Frontend VPC subnet ID when using VPC addressing | ||||||||||
| FrontendVPCSubnetID *int `json:"frontend_vpc_subnet_id,omitempty"` | ||||||||||
|
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. I know this PR is for adding frontendVPC support, but why don't we already have (Backend)VPC fields? 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. Also, I didn't see this field used in your CCM PR, is this field necessary?
Contributor
Author
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. These field a primarily used for returned response body! |
||||||||||
| // Throttle connections per second (0-20). Set to 0 (zero) to disable throttling. | ||||||||||
| ClientConnThrottle int `json:"client_conn_throttle"` | ||||||||||
|
|
||||||||||
|
|
@@ -46,16 +50,18 @@ type NodeBalancerTransfer struct { | |||||||||
| // The total transfer, in MB, used by this NodeBalancer this month. | ||||||||||
| Total *float64 `json:"total"` | ||||||||||
| // The total inbound transfer, in MB, used for this NodeBalancer this month. | ||||||||||
| Out *float64 `json:"out"` | ||||||||||
| // The total outbound transfer, in MB, used for this NodeBalancer this month. | ||||||||||
| In *float64 `json:"in"` | ||||||||||
| // The total outbound transfer, in MB, used for this NodeBalancer this month. | ||||||||||
| Out *float64 `json:"out"` | ||||||||||
|
Comment on lines
-49
to
+55
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. good catch |
||||||||||
| } | ||||||||||
|
|
||||||||||
| type NodeBalancerVPCOptions struct { | ||||||||||
| IPv4Range string `json:"ipv4_range,omitempty"` | ||||||||||
| IPv6Range string `json:"ipv6_range,omitempty"` | ||||||||||
| SubnetID int `json:"subnet_id"` | ||||||||||
| IPv4RangeAutoAssign bool `json:"ipv4_range_auto_assign,omitempty"` | ||||||||||
| IPv4Range string `json:"ipv4_range,omitempty"` | ||||||||||
| IPv6Range string `json:"ipv6_range,omitempty"` | ||||||||||
| SubnetID int `json:"subnet_id"` | ||||||||||
| // IPv4RangeAutoAssign is only used for backend VPC configuration. | ||||||||||
| // For frontend VPCs, this field is ignored. | ||||||||||
|
Comment on lines
+62
to
+63
|
||||||||||
| // IPv4RangeAutoAssign is only used for backend VPC configuration. | |
| // For frontend VPCs, this field is ignored. | |
| // IPv4RangeAutoAssign is only used when NodeBalancerVPCOptions is provided as part of the VPCs field (backend VPC configuration) in NodeBalancerCreateOptions. | |
| // When used in the FrontendVPCs field (frontend VPC configuration), this field is ignored. |
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.
Thoughts on adding a new BackendVPCs field and marking the VPCs field as deprecated in favor of the BackendVPCs field?
Uh oh!
There was an error while loading. Please reload this page.
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.
Is vpc the only supported type currently / are do we expect other types to be needed?
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.
AFAIK, vpc is the only one right now. May others will be introduced in future