package authorizer
import "k8s.io/kubernetes/pkg/kubeapiserver/authorizer"
Index ¶
Types ¶
type Config ¶
type Config struct { // Path to an ABAC policy file. PolicyFile string // WebhookRetryBackoff specifies the backoff parameters for the authorization webhook retry logic. // This allows us to configure the sleep time at each iteration and the maximum number of retries allowed // before we fail the webhook call in order to limit the fan out that ensues when the system is degraded. WebhookRetryBackoff *wait.Backoff VersionedInformerFactory versionedinformers.SharedInformerFactory // Optional field, custom dial function used to connect to webhook CustomDial utilnet.DialFunc // AuthorizationConfiguration stores the configuration for the Authorizer chain // It will deprecate most of the above flags when GA AuthorizationConfiguration *authzconfig.AuthorizationConfiguration }
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.
Source Files ¶
config.go
Directories ¶
Path | Synopsis |
---|---|
pkg/kubeapiserver/authorizer/modes |
- Version
- v1.29.7
- Published
- Jul 16, 2024
- Platform
- js/wasm
- Imports
- 18 packages
- Last checked
- 3 minutes ago –
Tools for package owners.