kubernetesk8s.io/kubernetes/pkg/kubeapiserver/authorizer Index | Files

package authorizer

import "k8s.io/kubernetes/pkg/kubeapiserver/authorizer"

Index

Constants

const (
	ModeAlwaysAllow string = "AlwaysAllow"
	ModeAlwaysDeny  string = "AlwaysDeny"
	ModeABAC        string = "ABAC"
	ModeWebhook     string = "Webhook"
	ModeRBAC        string = "RBAC"
)

Types

type AuthorizationConfig

type AuthorizationConfig struct {
	AuthorizationModes []string

	// Path to an ABAC policy file.
	PolicyFile string

	// Kubeconfig file for Webhook authorization plugin.
	WebhookConfigFile 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

	// User which can bootstrap role policies
	RBACSuperUser string

	InformerFactory informers.SharedInformerFactory
}

func (AuthorizationConfig) New

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

Source Files

config.go

Version
v1.7.0-alpha.0
Published
Feb 21, 2017
Platform
js/wasm
Imports
10 packages
Last checked
3 minutes ago

Tools for package owners.