Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupAuthorization ¶
func SetupAuthorization(genericAPIServerConfig *genericapiserver.Config, authorizationOpts *apiserveroptions.AuthorizationOptions) error
SetupAuthorization to setup the generic apiserver by authorization options.
Types ¶
type Config ¶
type Config struct { AuthorizationModes []string // Options for ModeWebhook // file for Webhook authorization plugin. WebhookConfigFile string WebhookVersion string // TTL for caching of authorized responses from the webhook server. WebhookCacheAuthorizedTTL time.Duration WebhookCacheUnauthorizedTTL time.Duration }
Config contains the data on how to authorize a request to the Kube API Server
func (Config) New ¶
func (config Config) New() (authorizer.Authorizer, authorizer.RuleResolver, error)
New returns the right sort of union of multiple authorizer.Authorizer objects based on the authorizationMode or an error.
Click to show internal directories.
Click to hide internal directories.