Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for claim (0.04 sec)

  1. pkg/kubelet/cm/dra/claiminfo.go

    	if len(resourceHandles) == 0 {
    		resourceHandles = make([]resourcev1alpha2.ResourceHandle, 1)
    	}
    	claimInfoState := state.ClaimInfoState{
    		DriverName:      claim.Status.DriverName,
    		ClassName:       claim.Spec.ResourceClassName,
    		ClaimUID:        claim.UID,
    		ClaimName:       claim.Name,
    		Namespace:       claim.Namespace,
    		PodUIDs:         sets.New[string](),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/authentication/cel/interface.go

    }
    
    // ClaimsMapper provides a CEL expression mapper configured with the claims CEL variable.
    type ClaimsMapper interface {
    	// EvalClaimMapping evaluates the given claim mapping expression and returns a EvaluationResult.
    	// This is used for username, groups and uid claim mapping that contains a single expression.
    	EvalClaimMapping(ctx context.Context, claims *unstructured.Unstructured) (EvaluationResult, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 17:59:05 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/dra/state/state_checkpoint.go

    }
    
    // ClaimInfoState is used to store claim info state in a checkpoint
    // +k8s:deepcopy-gen=true
    type ClaimInfoState struct {
    	// Name of the DRA driver
    	DriverName string
    
    	// ClassName is a resource class of the claim
    	ClassName string
    
    	// ClaimUID is an UID of the resource claim
    	ClaimUID types.UID
    
    	// ClaimName is a name of the resource claim
    	ClaimName string
    
    	// Namespace is a claim namespace
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:27 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. pilot/pkg/security/authz/model/util.go

    			if err != nil {
    				return nil, err
    			}
    			return []string{ret}, nil
    		}
    		claims = append(claims, s[begin+1:end])
    		begin = end + 1
    	}
    	return claims, nil
    }
    
    func MetadataStringMatcherForJWTClaim(claim string, m *matcherpb.StringMatcher) *matcherpb.MetadataMatcher {
    	return MetadataValueMatcherForJWTClaim(claim, &matcherpb.ValueMatcher{
    		MatchPattern: &matcherpb.ValueMatcher_StringMatch{
    			StringMatch: m,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 25 10:39:25 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. pkg/serviceaccount/legacy.go

    	}
    	namespace := private.Namespace
    	if len(namespace) == 0 {
    		return nil, errors.New("namespace claim is missing")
    	}
    	secretName := private.SecretName
    	if len(secretName) == 0 {
    		return nil, errors.New("secretName claim is missing")
    	}
    	serviceAccountName := private.ServiceAccountName
    	if len(serviceAccountName) == 0 {
    		return nil, errors.New("serviceAccountName claim is missing")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 08:32:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters.go

    	objs := claimAssumeCache.List(nil)
    	for _, obj := range objs {
    		claim, ok := obj.(*resourcev1alpha2.ResourceClaim)
    		if !ok {
    			return nil, fmt.Errorf("got unexpected object of type %T from claim assume cache", obj)
    		}
    		if obj, ok := inFlightAllocations.Load(claim.UID); ok {
    			// If the allocation is in-flight, then we have to use the allocation
    			// from that claim.
    			claim = obj.(*resourcev1alpha2.ResourceClaim)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 22 09:03:22 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. internal/config/identity/openid/jwt.go

    	// If claim user info is enabled, get claims from userInfo
    	// and overwrite them with the claims from JWT.
    	if ok && pCfg.ClaimUserinfo {
    		if accessToken == "" {
    			return errors.New("access_token is mandatory if user_info claim is enabled")
    		}
    		uclaims, err := pCfg.UserInfo(ctx, accessToken, r.transport)
    		if err != nil {
    			return err
    		}
    		for k, v := range uclaims {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. pkg/registry/resource/resourceclaim/strategy.go

    	claim := obj.(*resource.ResourceClaim)
    	// Status must not be set by user on create.
    	claim.Status = resource.ResourceClaimStatus{}
    }
    
    func (resourceclaimStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    	claim := obj.(*resource.ResourceClaim)
    	return validation.ValidateClaim(claim)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 20:39:24 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. pkg/test/framework/components/namespace/namespace.go

    	IsAmbient() bool
    	IsInjected() bool
    }
    
    // Claim an existing namespace in all clusters, or create a new one if doesn't exist.
    func Claim(ctx resource.Context, cfg Config) (i Instance, err error) {
    	cfg.overwriteRevisionIfEmpty(ctx.Settings().Revisions.Default())
    	return claimKube(ctx, cfg)
    }
    
    // ClaimOrFail calls Claim and fails test if it returns error
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 18:12:14 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/util/cdi/cdi_test.go

    			expectedAnnotations: []container.Annotation{{Name: "cdi.k8s.io/test-driver-name_test-claim-uid", Value: "vendor.com/class=device1"}},
    		},
    	}
    
    	as := assert.New(t)
    	for _, tc := range testCases {
    		t.Run(tc.description, func(t *testing.T) {
    			annotations, err := GenerateAnnotations("test-claim-uid", "test-driver-name", tc.deviceIDs)
    			as.ErrorIs(err, tc.expecteError)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 09:47:53 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top