package validation
import "k8s.io/apiserver/pkg/apis/apiserver/validation"
Index ¶
- func CompileAndValidateJWTAuthenticator(authenticator api.JWTAuthenticator) (authenticationcel.CELMapper, field.ErrorList)
- func ValidateAndCompileMatchConditions(matchConditions []api.WebhookMatchCondition) (*authorizationcel.CELMatcher, field.ErrorList)
- func ValidateAuthenticationConfiguration(c *api.AuthenticationConfiguration) field.ErrorList
- func ValidateAuthorizationConfiguration(fldPath *field.Path, c *api.AuthorizationConfiguration, knownTypes sets.String, repeatableTypes sets.String) field.ErrorList
- func ValidateWebhookConfiguration(fldPath *field.Path, c *api.WebhookConfiguration) field.ErrorList
Functions ¶
func CompileAndValidateJWTAuthenticator ¶
func CompileAndValidateJWTAuthenticator(authenticator api.JWTAuthenticator) (authenticationcel.CELMapper, field.ErrorList)
CompileAndValidateJWTAuthenticator validates a given JWTAuthenticator and returns a CELMapper with the compiled CEL expressions for claim mappings and validation rules. This is exported for use in oidc package.
func ValidateAndCompileMatchConditions ¶
func ValidateAndCompileMatchConditions(matchConditions []api.WebhookMatchCondition) (*authorizationcel.CELMatcher, field.ErrorList)
ValidateAndCompileMatchConditions validates a given webhook's matchConditions. This is exported for use in authz package.
func ValidateAuthenticationConfiguration ¶
func ValidateAuthenticationConfiguration(c *api.AuthenticationConfiguration) field.ErrorList
ValidateAuthenticationConfiguration validates a given AuthenticationConfiguration.
func ValidateAuthorizationConfiguration ¶
func ValidateAuthorizationConfiguration(fldPath *field.Path, c *api.AuthorizationConfiguration, knownTypes sets.String, repeatableTypes sets.String) field.ErrorList
ValidateAuthorizationConfiguration validates a given AuthorizationConfiguration.
func ValidateWebhookConfiguration ¶
Source Files ¶
validation.go
- Version
- v0.29.12
- Published
- Dec 10, 2024
- Platform
- darwin/amd64
- Imports
- 20 packages
- Last checked
- 1 hour ago –
Tools for package owners.