kubernetesk8s.io/kubernetes/cmd/kube-apiserver/app/options Index | Files

package options

import "k8s.io/kubernetes/cmd/kube-apiserver/app/options"

Package options contains flags and options for initializing an apiserver

Index

Functions

func AddCustomGlobalFlags

func AddCustomGlobalFlags(fs *pflag.FlagSet)

AddCustomGlobalFlags explicitly registers flags that internal packages register against the global flagsets from "flag". We do this in order to prevent unwanted flags from leaking into the kube-apiserver's flagset.

Types

type CompletedOptions

type CompletedOptions struct {
	// contains filtered or unexported fields
}

func (CompletedOptions) Validate

func (s CompletedOptions) Validate() []error

Validate checks ServerRunOptions and return a slice of found errs.

type Extra

type Extra struct {
	AllowPrivileged           bool
	KubeletConfig             kubeletclient.KubeletClientConfig
	KubernetesServiceNodePort int
	// ServiceClusterIPRange is mapped to input provided by user
	ServiceClusterIPRanges string
	// PrimaryServiceClusterIPRange and SecondaryServiceClusterIPRange are the results
	// of parsing ServiceClusterIPRange into actual values
	PrimaryServiceClusterIPRange   net.IPNet
	SecondaryServiceClusterIPRange net.IPNet
	// APIServerServiceIP is the first valid IP from PrimaryServiceClusterIPRange
	APIServerServiceIP net.IP

	ServiceNodePortRange utilnet.PortRange

	EndpointReconcilerType string

	MasterCount int
}

type ServerRunOptions

type ServerRunOptions struct {
	*controlplaneapiserver.Options // embedded to avoid noise in existing consumers

	Extra
}

ServerRunOptions runs a kubernetes api server.

func NewServerRunOptions

func NewServerRunOptions() *ServerRunOptions

NewServerRunOptions creates and returns ServerRunOptions according to the given featureGate and effectiveVersion of the server binary to run.

func (*ServerRunOptions) Complete

Complete set default ServerRunOptions. Should be called after kube-apiserver flags parsed.

func (*ServerRunOptions) Flags

func (s *ServerRunOptions) Flags() (fss cliflag.NamedFlagSets)

Flags returns flags for a specific APIServer by section name

Source Files

completion.go globalflags.go options.go validation.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
24 packages
Last checked
3 hours ago

Tools for package owners.