Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAPIResourceConfigSource ¶
func DefaultAPIResourceConfigSource() *serverstorage.ResourceConfig
DefaultAPIResourceConfigSource returns which groupVersion enabled and its resources enabled/disabled.
func IgnoreAuthPathPrefixes ¶
func IgnoreAuthPathPrefixes() []string
Types ¶
type APIServer ¶
type APIServer struct {
GenericAPIServer *genericapiserver.GenericAPIServer
}
APIServer contains state for a tke api server.
func (*APIServer) InstallAPIs ¶
func (m *APIServer) InstallAPIs(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter, restStorageProviders ...storage.RESTStorageProvider)
InstallAPIs will install the APIs for the restStorageProviders if they are enabled.
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
CompletedConfig embed a private pointer of Config.
type Config ¶
type Config struct {
GenericConfig *genericapiserver.RecommendedConfig
ExtraConfig ExtraConfig
}
Config contains the core configuration instance of apiserver and additional configuration.
type ExtraConfig ¶
type ExtraConfig struct {
ServerName string
APIResourceConfigSource serverstorage.APIResourceConfigSource
StorageFactory serverstorage.StorageFactory
VersionedInformers versionedinformers.SharedInformerFactory
OIDCExternalAddress string
DexConfig *dexserver.Config
DexStorage dexstorage.Storage
CasbinEnforcer *casbin.SyncedEnforcer
TokenAuthn *authenticator.TokenAuthenticator
APIKeyAuthn *authenticator.APIKeyAuthenticator
Authorizer authorizer.Authorizer
CasbinReloadInterval time.Duration
PrivilegedUsername string
}
ExtraConfig contains the additional configuration of apiserver.
Click to show internal directories.
Click to hide internal directories.