Skip to content

Commit da58561

Browse files
Merge pull request #64 from danwinship/egress-cidrs
add HostSubnet.EgressCIDRs
2 parents 331c73c + d4dd70e commit da58561

File tree

5 files changed

+138
-65
lines changed

5 files changed

+138
-65
lines changed

network/v1/generated.pb.go

+109-57
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

network/v1/generated.proto

+9-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

network/v1/types.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,16 @@ type HostSubnet struct {
6969
// Subnet is the CIDR range of the overlay network assigned to the node for its pods
7070
Subnet string `json:"subnet" protobuf:"bytes,4,opt,name=subnet"`
7171

72-
// EgressIPs is the list of automatic egress IP addresses currently hosted by this node
72+
// EgressIPs is the list of automatic egress IP addresses currently hosted by this node.
73+
// If EgressCIDRs is empty, this can be set by hand; if EgressCIDRs is set then the
74+
// master will overwrite the value here with its own allocation of egress IPs.
7375
// +optional
7476
EgressIPs []string `json:"egressIPs,omitempty" protobuf:"bytes,5,rep,name=egressIPs"`
77+
// EgressCIDRs is the list of CIDR ranges available for automatically assigning
78+
// egress IPs to this node from. If this field is set then EgressIPs should be
79+
// treated as read-only.
80+
// +optional
81+
EgressCIDRs []string `json:"egressCIDRs,omitempty" protobuf:"bytes,6,rep,name=egressCIDRs"`
7582
}
7683

7784
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

network/v1/types_swagger_doc_generated.go

+7-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

network/v1/zz_generated.deepcopy.go

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)