Documentation ¶
Overview ¶
Package legacyconfigprocessing only exists to keep openshift start master running until we remove it this release this package should be removed at that time. This is simpler than continually updating code we are planning to delete
Index ¶
- func BuildHandlerChain(genericConfig *genericapiserver.Config, ...) (func(apiHandler http.Handler, kc *genericapiserver.Config) http.Handler, ...)
- func ConvertNetworkConfigToAdmissionConfig(masterConfig *configapi.MasterConfig) error
- func GetAuditConfig(auditConfig configapi.AuditConfig) (audit.Backend, auditpolicy.Checker, error)
- func GetEtcdOptions(startingFlags map[string][]string, ...) (*options.EtcdOptions, error)
- func NewAuthenticator(servingInfo configapi.ServingInfo, serviceAccountPublicKeyFiles []string, ...) (authenticator.Request, map[string]genericapiserver.PostStartHookFunc, error)
- func NewOAuthServerConfigFromMasterConfig(genericConfig *genericapiserver.Config, oauthConfig *configapi.OAuthConfig) (*oauthserver.OAuthServerConfig, error)
- func NewOAuthServerHandler(genericConfig *genericapiserver.Config, oauthConfig *configapi.OAuthConfig) (http.Handler, map[string]genericapiserver.PostStartHookFunc, error)
- func NewRESTOptionsGetter(startingFlags map[string][]string, ...) (genericregistry.RESTOptionsGetter, error)
- func ToServingOptions(servingInfo configapi.HTTPServingInfo) (*genericapiserveroptions.SecureServingOptionsWithLoopback, error)
- func WithPatternPrefixHandler(handler http.Handler, patternHandler http.Handler, prefixes ...string) http.Handler
- type CompletedOpenshiftNonAPIConfig
- type NonAPIExtraConfig
- type OpenshiftNonAPIConfig
- type OpenshiftNonAPIServer
- type ServiceResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHandlerChain ¶
func BuildHandlerChain(genericConfig *genericapiserver.Config, kubeInformers informers.SharedInformerFactory, legacyServiceServingCertSignerCABundle string, oauthConfig *configapi.OAuthConfig, userAgentMatchingConfig configapi.UserAgentMatchingConfig) (func(apiHandler http.Handler, kc *genericapiserver.Config) http.Handler, map[string]genericapiserver.PostStartHookFunc, error)
TODO switch back to taking a kubeapiserver config. For now make it obviously safe for 3.11
func ConvertNetworkConfigToAdmissionConfig ¶
func ConvertNetworkConfigToAdmissionConfig(masterConfig *configapi.MasterConfig) error
func GetAuditConfig ¶
func GetAuditConfig(auditConfig configapi.AuditConfig) (audit.Backend, auditpolicy.Checker, error)
func GetEtcdOptions ¶
func GetEtcdOptions(startingFlags map[string][]string, etcdConnectionInfo configapi.EtcdConnectionInfo, storagePrefix string, defaultWatchCacheSizes map[schema.GroupResource]int) (*options.EtcdOptions, error)
GetEtcdOptions takes configuration information and flag overrides to produce the upstream etcdoptions.
func NewAuthenticator ¶
func NewAuthenticator( servingInfo configapi.ServingInfo, serviceAccountPublicKeyFiles []string, oauthConfig *configapi.OAuthConfig, authConfig configapi.MasterAuthConfig, privilegedLoopbackConfig *rest.Config, oauthClientLister oauthclientlister.OAuthClientLister, groupInformer userinformer.GroupInformer, ) (authenticator.Request, map[string]genericapiserver.PostStartHookFunc, error)
TODO we can re-trim these args to the the kubeapiserver config again if we feel like it, but for now we need it to be TODO obviously safe for 3.11
func NewOAuthServerConfigFromMasterConfig ¶
func NewOAuthServerConfigFromMasterConfig(genericConfig *genericapiserver.Config, oauthConfig *configapi.OAuthConfig) (*oauthserver.OAuthServerConfig, error)
TODO this is taking a very large config for a small piece of it. The information must be broken up at some point so that we can run this in a pod. This is an indication of leaky abstraction because it spent too much time in openshift start
func NewOAuthServerHandler ¶
func NewOAuthServerHandler(genericConfig *genericapiserver.Config, oauthConfig *configapi.OAuthConfig) (http.Handler, map[string]genericapiserver.PostStartHookFunc, error)
func NewRESTOptionsGetter ¶
func NewRESTOptionsGetter(startingFlags map[string][]string, etcdConnectionInfo configapi.EtcdConnectionInfo, storagePrefix string) (genericregistry.RESTOptionsGetter, error)
NewConfigGetter returns a restoptions.Getter implemented using information from the provided master config.
func ToServingOptions ¶
func ToServingOptions(servingInfo configapi.HTTPServingInfo) (*genericapiserveroptions.SecureServingOptionsWithLoopback, error)
Types ¶
type CompletedOpenshiftNonAPIConfig ¶
type CompletedOpenshiftNonAPIConfig struct {
// contains filtered or unexported fields
}
func (CompletedOpenshiftNonAPIConfig) New ¶
func (c CompletedOpenshiftNonAPIConfig) New(delegationTarget genericapiserver.DelegationTarget) (*OpenshiftNonAPIServer, error)
type NonAPIExtraConfig ¶
type NonAPIExtraConfig struct {
OAuthMetadata []byte
}
type OpenshiftNonAPIConfig ¶
type OpenshiftNonAPIConfig struct { GenericConfig *genericapiserver.RecommendedConfig ExtraConfig NonAPIExtraConfig }
func NewOpenshiftNonAPIConfig ¶
func NewOpenshiftNonAPIConfig(generiConfig *genericapiserver.Config, kubeInformers informers.SharedInformerFactory, oauthConfig *configapi.OAuthConfig, authConfig configapi.MasterAuthConfig) (*OpenshiftNonAPIConfig, error)
func (*OpenshiftNonAPIConfig) Complete ¶
func (c *OpenshiftNonAPIConfig) Complete() completedOpenshiftNonAPIConfig
Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
type OpenshiftNonAPIServer ¶
type OpenshiftNonAPIServer struct {
GenericAPIServer *genericapiserver.GenericAPIServer
}
OpenshiftNonAPIServer serves non-API endpoints for openshift.