Back to godoc.org
k8s.io/kubernetes/pkg/kubeapiserver/authorizer

package authorizer

v1.18.3
Latest Go to latest
Published: May 20, 2020 | License: Apache-2.0 | Module: k8s.io/kubernetes

Index

type Config

type Config struct {
	AuthorizationModes []string

	// Path to an ABAC policy file.
	PolicyFile string

	// Kubeconfig file for Webhook authorization plugin.
	WebhookConfigFile string
	// API version of subject access reviews to send to the webhook (e.g. "v1", "v1beta1")
	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

	VersionedInformerFactory versionedinformers.SharedInformerFactory

	// Optional field, custom dial function used to connect to webhook
	CustomDial utilnet.DialFunc
}

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier