options

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaskString = "******"
)

Variables

This section is empty.

Functions

func BuildAuthorizer

BuildAuthorizer constructs the authorizer

Types

type CoreOptions

type CoreOptions struct {
	ReadOnlyMode bool
	GithubBadge  bool
	Version      bool
}

func NewCoreOptions

func NewCoreOptions() *CoreOptions

func (*CoreOptions) AddFlags

func (o *CoreOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific Option to the specified FlagSet

func (*CoreOptions) ApplyTo

func (o *CoreOptions) ApplyTo(config *registry.ExtraConfig) error

func (*CoreOptions) Validate

func (o *CoreOptions) Validate() []error

type ElasticSearchConfig

type ElasticSearchConfig struct {
	Addresses []string
	Username  string
	Password  string
}

type RecommendedOptions

type RecommendedOptions struct {
	ServerRun      *options.ServerRunOptions
	Etcd           *options.EtcdOptions
	SecureServing  *options.SecureServingOptionsWithLoopback
	Audit          *options.AuditOptions
	Features       *options.FeatureOptions
	Authentication *kubeoptions.BuiltInAuthenticationOptions
	Authorization  *kubeoptions.BuiltInAuthorizationOptions

	// FeatureGate is a way to plumb feature gate through if you have them.
	FeatureGate featuregate.FeatureGate
	// ExtraAdmissionInitializers is called once after all ApplyTo from the options above, to pass the returned
	// admission plugin initializers to Admission.ApplyTo.
	ExtraAdmissionInitializers func(c *server.RecommendedConfig) ([]admission.PluginInitializer, error)
	Admission                  *options.AdmissionOptions
	// API Server Egress Selector is used to control outbound traffic from the API Server
	EgressSelector *options.EgressSelectorOptions
	// Traces contains options to control distributed request tracing.
	Traces *options.TracingOptions

	ServiceAccountSigningKeyFile     string
	ServiceAccountIssuer             serviceaccount.TokenGenerator
	ServiceAccountTokenMaxExpiration time.Duration
}

RecommendedOptions contains the recommended options for running an API server. If you add something to this list, it should be in a logical grouping. Each of them can be nil to leave the feature unconfigured on ApplyTo.

func NewRecommendedOptions

func NewRecommendedOptions(prefix string, codec runtime.Codec) *RecommendedOptions

func (*RecommendedOptions) AddFlags

func (o *RecommendedOptions) AddFlags(fs *pflag.FlagSet)

func (*RecommendedOptions) ApplyTo

func (o *RecommendedOptions) ApplyTo(config *server.RecommendedConfig) error

ApplyTo adds RecommendedOptions to the server configuration. pluginInitializers can be empty, it is only need for additional initializers.

func (*RecommendedOptions) ApplyToExtraConfig added in v0.4.9

func (o *RecommendedOptions) ApplyToExtraConfig(config *registry.ExtraConfig) error

ApplyToExtraConfig adds RecommendedOptions to the extra server configuration.

func (*RecommendedOptions) Validate

func (o *RecommendedOptions) Validate() []error

type SearchStorageOptions

type SearchStorageOptions struct {
	SearchStorageType      string
	ElasticSearchAddresses []string
	ElasticSearchUsername  string
	ElasticSearchPassword  string
}

func NewSearchStorageOptions

func NewSearchStorageOptions() *SearchStorageOptions

func (*SearchStorageOptions) AddFlags

func (o *SearchStorageOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific Option to the specified FlagSet

func (*SearchStorageOptions) ApplyTo

func (o *SearchStorageOptions) ApplyTo(config *registry.ExtraConfig) error

func (SearchStorageOptions) MarshalJSON

func (o SearchStorageOptions) MarshalJSON() ([]byte, error)

MarshalJSON is custom marshalling function for masking sensitive field values

func (*SearchStorageOptions) Validate

func (o *SearchStorageOptions) Validate() []error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL