add HostSubnet.EgressCIDRs
@@ -69,9 +69,16 @@ type HostSubnet struct {
// Subnet is the CIDR range of the overlay network assigned to the node for its pods
Subnet string `json:"subnet" protobuf:"bytes,4,opt,name=subnet"`
- // EgressIPs is the list of automatic egress IP addresses currently hosted by this node
+ // EgressIPs is the list of automatic egress IP addresses currently hosted by this node.
+ // If EgressCIDRs is empty, this can be set by hand; if EgressCIDRs is set then the
+ // master will overwrite the value here with its own allocation of egress IPs.
// +optional
EgressIPs []string `json:"egressIPs,omitempty" protobuf:"bytes,5,rep,name=egressIPs"`
+ // EgressCIDRs is the list of CIDR ranges available for automatically assigning
+ // egress IPs to this node from. If this field is set then EgressIPs should be
+ // treated as read-only.
+ // +optional
+ EgressCIDRs []string `json:"egressCIDRs,omitempty" protobuf:"bytes,6,rep,name=egressCIDRs"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
