mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 07:13:53 +00:00
Merge pull request #38226 from MHBauer/run-options-doc-string
Automatic merge from submit-queue documentation string for DefaultExternalAddress **What this PR does / why we need it**: docs for a public function **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` I encountered this function that did not have a doc string. The function was easy to read, so I wrote a doc string for the function.
This commit is contained in:
commit
e7537a21d9
@ -80,6 +80,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 {
|
||||
if s.AdvertiseAddress == nil || s.AdvertiseAddress.IsUnspecified() {
|
||||
switch {
|
||||
|
Loading…
Reference in New Issue
Block a user