Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 907 for claims0 (0.21 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1alpha1/types.go

    	// claim is the JWT claim to use.
    	// Either claim or expression must be set.
    	// Mutually exclusive with expression.
    	// +optional
    	Claim string `json:"claim,omitempty"`
    
    	// expression represents the expression which will be evaluated by CEL.
    	//
    	// CEL expressions have access to the contents of the token claims, organized into CEL variable:
    	// - 'claims' is a map of claim names to claim values.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 17:59:05 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  2. pkg/controller/volume/persistentvolume/pv_controller.go

    					claimMsg := fmt.Sprintf("volume %q already bound to a different claim.", volume.Name)
    					ctrl.eventRecorder.Event(claim, v1.EventTypeWarning, events.FailedBinding, claimMsg)
    
    					return fmt.Errorf("invalid binding of claim %q to volume %q: volume already claimed by %q", claimToClaimKey(claim), claim.Spec.VolumeName, claimrefToClaimKey(volume.Spec.ClaimRef))
    				}
    			}
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 89.2K bytes
    - Viewed (0)
  3. pkg/controller/resourceclaim/controller_test.go

    	}
    }
    
    func normalizeClaims(claims []resourcev1alpha2.ResourceClaim) []resourcev1alpha2.ResourceClaim {
    	sort.Slice(claims, func(i, j int) bool {
    		if claims[i].Namespace < claims[j].Namespace {
    			return true
    		}
    		if claims[i].Namespace > claims[j].Namespace {
    			return false
    		}
    		return claims[i].Name < claims[j].Name
    	})
    	for i := range claims {
    		if len(claims[i].Status.ReservedFor) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. pkg/controller/volume/persistentvolume/framework_test.go

    	if claims[0].Annotations == nil {
    		claims[0].Annotations = map[string]string{name: value}
    	} else {
    		claims[0].Annotations[name] = value
    	}
    	return claims
    }
    
    func claimWithDataSource(name, kind, apiGroup string, claims []*v1.PersistentVolumeClaim) []*v1.PersistentVolumeClaim {
    	claims[0].Spec.DataSource = &v1.TypedLocalObjectReference{
    		Name:     name,
    		Kind:     kind,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    		t.Errorf("In-flight claims are different (- expected, + actual):\n%s", diff)
    	}
    }
    
    func (tc *testContext) listAll(t *testing.T) (objects []metav1.Object) {
    	t.Helper()
    	claims, err := tc.client.ResourceV1alpha2().ResourceClaims("").List(tc.ctx, metav1.ListOptions{})
    	require.NoError(t, err, "list claims")
    	for _, claim := range claims.Items {
    		claim := claim
    		objects = append(objects, &claim)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  6. pkg/controller/volume/persistentvolume/delete_test.go

    				// Bind the volume to resurrected claim (this should never
    				// happen)
    				claim := newClaim("claim8-7", "uid8-7", "10Gi", "volume8-7", v1.ClaimBound, nil)
    				reactor.AddClaimBoundToVolume(claim)
    				ctrl.claims.Add(claim)
    			}),
    		},
    		{
    			// delete success - volume bound by user is deleted, while a new
    			// claim is created with another UID.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. pkg/controller/volume/persistentvolume/testing/testing.go

    		obj := action.(core.UpdateAction).GetObject()
    		claim := obj.(*v1.PersistentVolumeClaim)
    
    		// check the claim does not exist
    		_, found := r.claims[claim.Name]
    		if found {
    			return true, nil, fmt.Errorf("cannot create claim %s: claim already exists", claim.Name)
    		}
    
    		// Store the updated object to appropriate places.
    		r.claims[claim.Name] = claim
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  8. cmd/jwt.go

    func authenticateNode(accessKey, secretKey, audience string) (string, error) {
    	claims := xjwt.NewStandardClaims()
    	claims.SetExpiry(UTCNow().Add(defaultInterNodeJWTExpiry))
    	claims.SetAccessKey(accessKey)
    	claims.SetAudience(audience)
    
    	jwt := jwtgo.NewWithClaims(jwtgo.SigningMethodHS512, claims)
    	return jwt.SignedString([]byte(secretKey))
    }
    
    // Check if the request is authenticated.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. internal/jwt/parser_test.go

    			var err error
    
    			// Figure out correct claims type
    			switch claims := data.claims.(type) {
    			case *MapClaims:
    				if data.tokenString == "" {
    					data.tokenString = mapClaimsToken(claims)
    				}
    				err = ParseWithClaims(data.tokenString, &MapClaims{}, data.keyfunc)
    			case *StandardClaims:
    				if data.tokenString == "" {
    					data.tokenString = standardClaimsToken(claims)
    				}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Nov 05 19:20:08 UTC 2021
    - 6K bytes
    - Viewed (0)
  10. security/tools/jwt/samples/gen-jwt.py

                            help="iss claim. Default is `******@****.***`")
        parser.add_argument("-aud", "--aud",
                            help="aud claim. This is comma-separated-list of audiences")
        parser.add_argument("-sub", "--sub",
                            help="sub claim. If not provided, it is set to the same as iss claim.")
        parser.add_argument("-claims", "--claims",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 16:38:57 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top