Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 561 for claims0 (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/scheduler/framework/plugins/volumebinding/binder.go

    func (b *volumeBinder) revertAssumedPVCs(claims []*v1.PersistentVolumeClaim) {
    	for _, claim := range claims {
    		b.pvcCache.Restore(getPVCName(claim))
    	}
    }
    
    // hasEnoughCapacity checks whether the provisioner has enough capacity left for a new volume of the given size
    // that is available from the node.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. pkg/controller/statefulset/stateful_set_test.go

    				if hasNamedOwnerRef(claim, podName) || hasNamedOwnerRef(claim, set.Name) {
    					t.Errorf("bad claim ownerRefs: %s: %v", claim.Name, claim.GetOwnerReferences())
    				}
    			case scaledownPolicy == retain && deletionPolicy == delete:
    				if hasNamedOwnerRef(claim, podName) || !hasNamedOwnerRef(claim, set.Name) {
    					t.Errorf("bad claim ownerRefs: %s: %v", claim.Name, claim.GetOwnerReferences())
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top