Documentation ¶
Overview ¶
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeletClientOptions ¶ added in v0.5.0
type KubeletClientOptions struct { KubeletUseNodeStatusPort bool KubeletPort int InsecureKubeletTLS bool KubeletPreferredAddressTypes []string KubeletCAFile string KubeletClientKeyFile string KubeletClientCertFile string DeprecatedCompletelyInsecureKubelet bool KubeletRequestTimeout time.Duration NodeSelector string }
func NewKubeletClientOptions ¶ added in v0.5.0
func NewKubeletClientOptions() *KubeletClientOptions
NewKubeletClientOptions constructs a new set of default options for metrics-server.
func (*KubeletClientOptions) AddFlags ¶ added in v0.5.0
func (o *KubeletClientOptions) AddFlags(fs *pflag.FlagSet)
func (KubeletClientOptions) Config ¶ added in v0.5.0
func (o KubeletClientOptions) Config(restConfig *rest.Config) *client.KubeletClientConfig
func (*KubeletClientOptions) Validate ¶ added in v0.5.0
func (o *KubeletClientOptions) Validate() []error
type Options ¶
type Options struct { // genericoptions.RecomendedOptions - EtcdOptions SecureServing *genericoptions.SecureServingOptionsWithLoopback Authentication *genericoptions.DelegatingAuthenticationOptions Authorization *genericoptions.DelegatingAuthorizationOptions Audit *genericoptions.AuditOptions Features *genericoptions.FeatureOptions KubeletClient *KubeletClientOptions Logging *logs.Options MetricResolution time.Duration ShowVersion bool Kubeconfig string // Only to be used to for testing DisableAuthForTesting bool }
func NewOptions ¶
func NewOptions() *Options
NewOptions constructs a new set of default options for metrics-server.
func (Options) ApiserverConfig ¶
func (o Options) ApiserverConfig() (*genericapiserver.Config, error)
func (*Options) Flags ¶
func (o *Options) Flags() (fs flag.NamedFlagSets)