Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for claim (0.05 sec)

  1. pkg/apis/resource/validation/validation_resourceclaim_test.go

    				return claim
    			}(),
    		},
    		"uid": {
    			claim: func() *resource.ResourceClaim {
    				claim := testClaim(goodName, goodNS, goodClaimSpec)
    				claim.UID = "ac051fac-2ead-46d9-b8b4-4e0fbeb7455d"
    				return claim
    			}(),
    		},
    		"resource-version": {
    			claim: func() *resource.ResourceClaim {
    				claim := testClaim(goodName, goodNS, goodClaimSpec)
    				claim.ResourceVersion = "1"
    				return claim
    			}(),
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_pod_control_test.go

    			for k := range claims0 {
    				claim, err := claimLister.PersistentVolumeClaims(claims0[k].Namespace).Get(claims0[k].Name)
    				if err != nil {
    					t.Errorf("Unexpected error getting Claim %s/%s: %v", claim.Namespace, claim.Name, err)
    				}
    				if hasOwnerRef(claim, set) != expectRef {
    					t.Errorf("%s: Claim %s/%s bad set owner ref", tc.name, claim.Namespace, claim.Name)
    				}
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  3. pkg/controller/statefulset/stateful_set_utils.go

    	templates := set.Spec.VolumeClaimTemplates
    	claims := make(map[string]v1.PersistentVolumeClaim, len(templates))
    	for i := range templates {
    		claim := templates[i].DeepCopy()
    		claim.Name = getPersistentVolumeClaimName(set, claim, ordinal)
    		claim.Namespace = set.Namespace
    		if claim.Labels != nil {
    			for key, value := range set.Spec.Selector.MatchLabels {
    				claim.Labels[key] = value
    			}
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  4. pkg/controller/statefulset/stateful_pod_control.go

    				updateClaimOwnerRefForSetAndPod(logger, claim, set, pod)
    				if err := spc.objectMgr.UpdateClaim(claim); err != nil {
    					return fmt.Errorf("could not update claim %s for delete policy ownerRefs: %w", claimName, err)
    				}
    			}
    		}
    	}
    	return nil
    }
    
    // PodClaimIsStale returns true for a stale PVC that should block pod creation. If the scaling
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_utils_test.go

    	set := apps.StatefulSet{}
    	set.Name = "my-set"
    	claim := v1.PersistentVolumeClaim{}
    	claim.Name = "volume-my-set-2"
    	if pod := getClaimPodName(&set, &claim); pod != "my-set-2" {
    		t.Errorf("Expected my-set-2 found %s", pod)
    	}
    	claim.Name = "long-volume-my-set-20"
    	if pod := getClaimPodName(&set, &claim); pod != "my-set-20" {
    		t.Errorf("Expected my-set-20 found %s", pod)
    	}
    	claim.Name = "volume-2-my-set"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  6. cmd/sts-handlers.go

    	// metadata map
    	claims[expClaim] = UTCNow().Add(time.Duration(expiry) * time.Second).Unix()
    	claims[subClaim] = parentUser
    	claims[roleArnClaim] = roleArn.String()
    	claims[parentClaim] = parentUser
    
    	// Add all other claims from the plugin **without** replacing any
    	// existing claims.
    	for k, v := range res.Success.Claims {
    		if _, ok := claims[k]; !ok {
    			claims[k] = v
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  7. pkg/apis/resource/validation/validation_resourceclaimtemplate_test.go

    		oldClaimTemplate *resource.ResourceClaimTemplate
    		update           func(claim *resource.ResourceClaimTemplate) *resource.ResourceClaimTemplate
    		wantFailures     field.ErrorList
    	}{
    		"valid-no-op-update": {
    			oldClaimTemplate: validClaimTemplate,
    			update:           func(claim *resource.ResourceClaimTemplate) *resource.ResourceClaimTemplate { return claim },
    		},
    		"invalid-update-class": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. pkg/scheduler/internal/queue/events.go

    	// PvcAdd is the event when a persistent volume claim is added in the cluster.
    	PvcAdd = framework.ClusterEvent{Resource: framework.PersistentVolumeClaim, ActionType: framework.Add, Label: "PvcAdd"}
    	// PvcUpdate is the event when a persistent volume claim is updated in the cluster.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. cmd/iam.go

    		}
    
    		// Finally, if there is no parent policy, check if a policy claim is
    		// present in the session token.
    		if len(policies) == 0 {
    			// If there is no parent policy mapping, we fall back to
    			// using policy claim from JWT.
    			policySet, ok := args.GetPolicies(iamPolicyClaimNameOpenID())
    			if !ok {
    				// When claims are set, it should have a policy claim field.
    				return false
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  10. cmd/sts-handlers_test.go

    		}
    
    		// Retrieve the credential's claims.
    		secret, err := getTokenSigningKey()
    		if err != nil {
    			c.Fatalf("Error getting token signing key: %v", err)
    		}
    		claims, err := getClaimsFromTokenWithSecret(value.SessionToken, secret)
    		if err != nil {
    			c.Fatalf("Error getting claims from token: %v", err)
    		}
    
    		// Validate claims. Check if the sshPublicKey claim is present.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 18:45:50 UTC 2024
    - 90K bytes
    - Viewed (0)
Back to top