mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
mark ServerAddressByClientCIDRs as optional
This commit is contained in:
parent
8b6a4e14ff
commit
2acbe87156
@ -799,7 +799,8 @@ type APIGroup struct {
|
|||||||
// The server returns only those CIDRs that it thinks that the client can match.
|
// The server returns only those CIDRs that it thinks that the client can match.
|
||||||
// For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
|
// For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
|
||||||
// Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
|
// Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
|
||||||
ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" protobuf:"bytes,4,rep,name=serverAddressByClientCIDRs"`
|
// +optional
|
||||||
|
ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs,omitempty" protobuf:"bytes,4,rep,name=serverAddressByClientCIDRs"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
|
// ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
|
||||||
|
Loading…
Reference in New Issue
Block a user