authorization

package

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
	// TTL for caching of unauthorized responses from the webhook server.
	WebhookCacheUnauthorizedTTL time.Duration
}

Config contains the data on how to authorize a request to the Kube API Server

func (Config) New

New returns the right sort of union of multiple authorizer.Authorizer objects based on the authorizationMode or an error.

Directories

Path Synopsis
Package abac authorizes Kubernetes API actions using an Attribute-based access control scheme.
Package abac authorizes Kubernetes API actions using an Attribute-based access control scheme.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL