type Options … type completedOptions … type CompletedOptions … // NewOptions creates a new ServerRunOptions object with default parameters func NewOptions() *Options { … } func (s *Options) AddFlags(fss *cliflag.NamedFlagSets) { … } func (o *Options) Complete(alternateDNS []string, alternateIPs []net.IP) (CompletedOptions, error) { … } // ServiceIPRange checks if the serviceClusterIPRange flag is nil, raising a warning if so and // setting service ip range to the default value in kubeoptions.DefaultServiceIPCIDR // for now until the default is removed per the deprecation timeline guidelines. // Returns service ip range, api server service IP, and an error func ServiceIPRange(passedServiceClusterIPRange net.IPNet) (net.IPNet, net.IP, error) { … }