Documentation ¶
Index ¶
- Constants
- func BuildAuthorizer(authz *kubeoptions.BuiltInAuthorizationOptions, ...) (authorizer.Authorizer, authorizer.RuleResolver, error)
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- type CoreOptions
- type ElasticSearchConfig
- type RecommendedOptions
- type SearchStorageOptions
Constants ¶
View Source
const (
MaskString = "******"
)
Variables ¶
This section is empty.
Functions ¶
func BuildAuthorizer ¶
func BuildAuthorizer(authz *kubeoptions.BuiltInAuthorizationOptions, egressSelector *egressselector.EgressSelector, versionedInformers clientgoinformers.SharedInformerFactory) (authorizer.Authorizer, authorizer.RuleResolver, error)
BuildAuthorizer constructs the authorizer
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type CoreOptions ¶
type CoreOptions struct {
ReadOnlyMode 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 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 }
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) 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
Click to show internal directories.
Click to hide internal directories.