kubernetes: k8s.io/kubernetes/pkg/kubeapiserver/authorizer Index | Files | Directories

package authorizer

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


Package Files


type Config Uses

type Config 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

    VersionedInformerFactory versionedinformers.SharedInformerFactory

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

func (Config) New Uses

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.



Package authorizer imports 13 packages (graph) and is imported by 52 packages. Updated 2019-04-09. Refresh now. Tools for package owners.