mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
documentation string for DefaultExternalAddress
This commit is contained in:
parent
5b2823adb9
commit
23d9d8887b
@ -85,6 +85,10 @@ func NewServerRunOptions() *ServerRunOptions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DefaultAdvertiseAddress sets the field AdvertiseAddress if
|
||||||
|
// unset. The field will be set based on the SecureServingOptions. If
|
||||||
|
// the SecureServingOptions is not present, DefaultExternalAddress
|
||||||
|
// will fall back to the insecure ServingOptions.
|
||||||
func (s *ServerRunOptions) DefaultAdvertiseAddress(secure *SecureServingOptions, insecure *ServingOptions) error {
|
func (s *ServerRunOptions) DefaultAdvertiseAddress(secure *SecureServingOptions, insecure *ServingOptions) error {
|
||||||
if s.AdvertiseAddress == nil || s.AdvertiseAddress.IsUnspecified() {
|
if s.AdvertiseAddress == nil || s.AdvertiseAddress.IsUnspecified() {
|
||||||
switch {
|
switch {
|
||||||
|
Loading…
Reference in New Issue
Block a user