Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultNamespace = "voyager"
)
Variables ¶
This section is empty.
Functions ¶
func GetInClusterNamespace ¶
Types ¶
type RecommendedOptions ¶
type RecommendedOptions struct { SecureServing *kubeoptions.SecureServingOptionsWithLoopback Authentication *kubeoptions.DelegatingAuthenticationOptions Authorization *kubeoptions.DelegatingAuthorizationOptions Audit *kubeoptions.AuditOptions Features *kubeoptions.FeatureOptions CoreAPI *kubeoptions.CoreAPIOptions // 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 *kubeoptions.AdmissionOptions // ProcessInfo is used to identify events created by the server. ProcessInfo *kubeoptions.ProcessInfo Webhook *kubeoptions.WebhookOptions }
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(processInfo *kubeoptions.ProcessInfo) *RecommendedOptions
func (*RecommendedOptions) AddFlags ¶
func (o *RecommendedOptions) AddFlags(fs *pflag.FlagSet)
func (*RecommendedOptions) ApplyTo ¶
func (o *RecommendedOptions) ApplyTo(config *server.RecommendedConfig, scheme *runtime.Scheme) error
ApplyTo adds RecommendedOptions to the server configuration. scheme is the scheme of the apiserver types that are sent to the admission chain. pluginInitializers can be empty, it is only need for additional initializers.
func (*RecommendedOptions) Validate ¶
func (o *RecommendedOptions) Validate() []error
Click to show internal directories.
Click to hide internal directories.