Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ValidateServiceAccountName (0.45 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/validation/generic.go

    // trailing dashes are allowed.
    var ValidateNamespaceName = NameIsDNSLabel
    
    // ValidateServiceAccountName can be used to check whether the given service account name is valid.
    // Prefix indicates this name will be used as part of generation, in which case
    // trailing dashes are allowed.
    var ValidateServiceAccountName = NameIsDNSSubdomain
    
    // maskTrailingDash replaces the final character of a string with a subdomain safe
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 03 14:47:11 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount/util.go

    	}
    	namespace, name := parts[0], parts[1]
    	if len(apimachineryvalidation.ValidateNamespaceName(namespace, false)) != 0 {
    		return "", "", invalidUsernameErr
    	}
    	if len(apimachineryvalidation.ValidateServiceAccountName(name, false)) != 0 {
    		return "", "", invalidUsernameErr
    	}
    	return namespace, name, nil
    }
    
    // MakeGroupNames generates service account group names for the given namespace
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 10:24:31 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. pkg/apis/rbac/validation/validation.go

    		allErrs = append(allErrs, field.Required(fldPath.Child("name"), ""))
    	}
    
    	switch subject.Kind {
    	case rbac.ServiceAccountKind:
    		if len(subject.Name) > 0 {
    			for _, msg := range validation.ValidateServiceAccountName(subject.Name, false) {
    				allErrs = append(allErrs, field.Invalid(fldPath.Child("name"), subject.Name, msg))
    			}
    		}
    		if len(subject.APIGroup) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:48:21 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/authz.go

    		return types.MaybeNoSuchOverloadErr(args[1])
    	}
    
    	name, ok := args[2].Value().(string)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(args[2])
    	}
    
    	if errors := apimachineryvalidation.ValidateServiceAccountName(name, false); len(errors) > 0 {
    		return types.NewErr("Invalid service account name")
    	}
    	if errors := apimachineryvalidation.ValidateNamespaceName(namespace, false); len(errors) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  5. pkg/apis/flowcontrol/validation/validation.go

    	}
    	if len(subject.Name) == 0 {
    		allErrs = append(allErrs, field.Required(fldPath.Child("name"), ""))
    	} else if subject.Name != flowcontrol.NameAll {
    		for _, msg := range apimachineryvalidation.ValidateServiceAccountName(subject.Name, false) {
    			allErrs = append(allErrs, field.Invalid(fldPath.Child("name"), subject.Name, msg))
    		}
    	}
    
    	if len(subject.Namespace) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  6. pkg/apis/core/validation/validation.go

    var ValidateSecretName = apimachineryvalidation.NameIsDNSSubdomain
    
    // ValidateServiceAccountName can be used to check whether the given service account name is valid.
    // Prefix indicates this name will be used as part of generation, in which case
    // trailing dashes are allowed.
    var ValidateServiceAccountName = apimachineryvalidation.ValidateServiceAccountName
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top