Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for pdb1 (0.05 sec)

  1. pkg/printers/internalversion/printers_test.go

    			expected: []metav1.TableRow{{Cells: []interface{}{"pdb1", "22", "N/A", int64(5), "0s"}}},
    		},
    		// Max Available set, no Min Available.
    		{
    			pdb: policy.PodDisruptionBudget{
    				ObjectMeta: metav1.ObjectMeta{
    					Namespace:         "ns2",
    					Name:              "pdb2",
    					CreationTimestamp: metav1.Time{Time: time.Now().Add(1.9e9)},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  2. pkg/registry/core/pod/storage/eviction.go

    	if pdb.Status.ObservedGeneration < pdb.Generation {
    
    		return createTooManyRequestsError(pdb.Name)
    	}
    	if pdb.Status.DisruptionsAllowed < 0 {
    		return errors.NewForbidden(policy.Resource("poddisruptionbudget"), pdb.Name, fmt.Errorf("pdb disruptions allowed is negative"))
    	}
    	if len(pdb.Status.DisruptedPods) > MaxDisruptedPodSize {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 11:58:48 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  3. pkg/registry/core/pod/storage/eviction_test.go

    	testcases := []struct {
    		name     string
    		pdbs     []runtime.Object
    		policies []*policyv1.UnhealthyPodEvictionPolicyType
    		eviction *policy.Eviction
    
    		badNameInURL bool
    
    		expectError   string
    		expectDeleted bool
    		podPhase      api.PodPhase
    		podName       string
    	}{
    		{
    			name: "matching pdbs with no disruptions allowed, pod running",
    			pdbs: []runtime.Object{&policyv1.PodDisruptionBudget{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  4. releasenotes/notes/update-pdb-version.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: installation
    issue:
    - 32005
    
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 09 21:42:52 UTC 2022
    - 134 bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go

    	pdbsAllowed := make([]int32, len(pdbs))
    	for i, pdb := range pdbs {
    		pdbsAllowed[i] = pdb.Status.DisruptionsAllowed
    	}
    
    	for _, podInfo := range podInfos {
    		pod := podInfo.Pod
    		pdbForPodIsViolated := false
    		// A pod with no labels will not match any PDB. So, no need to check.
    		if len(pod.Labels) != 0 {
    			for i, pdb := range pdbs {
    				if pdb.Namespace != pod.Namespace {
    					continue
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 25 19:36:04 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  6. pkg/controller/disruption/disruption.go

    	pdb := dc.getPdbForPod(logger, pod)
    	if pdb == nil {
    		logger.V(4).Info("No matching PDB for pod", "pod", klog.KObj(pod))
    		return
    	}
    	logger.V(4).Info("DeletePod -> PDB", "pod", klog.KObj(pod), "podDisruptionBudget", klog.KObj(pdb))
    	dc.enqueuePdb(logger, pdb)
    }
    
    func (dc *DisruptionController) enqueuePdb(logger klog.Logger, pdb *policy.PodDisruptionBudget) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/preemption/preemption.go

    // candidates, ones that do not violate PDB are preferred over ones that do.
    // NOTE: This method is exported for easier testing in default preemption.
    func (ev *Evaluator) DryRunPreemption(ctx context.Context, pod *v1.Pod, potentialNodes []*framework.NodeInfo,
    	pdbs []*policy.PodDisruptionBudget, offset int32, numCandidates int32) ([]Candidate, framework.NodeToStatusMap, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/phiopt.go

    				if sdom.IsAncestorEq(sb1, pb1) {
    					convertPhi(pb0, v, ei)
    					break
    				}
    			} else if pb1.Kind == BlockIf && pb1 == sdom.Parent(b) {
    				// special case: pb1 is the dominator block b0.
    				//       b0(pb1)
    				//     /   |
    				//    sb0  |
    				//    ...  |
    				//    pb0  |
    				//      \  |
    				//        b
    				// if another successor sb0 of b0(pb0) dominates pb0, do replace.
    				ei := b.Preds[1].i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  9. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    		},
    	}
    
    	Strategy.PrepareForCreate(ctx, pdb)
    	errs := Strategy.Validate(ctx, pdb)
    	if len(errs) != 0 {
    		if !tc.expectedValidationErr {
    			t.Errorf("Unexpected error validating %v", errs)
    		}
    		return // no point going further when we have invalid PDB
    	}
    	if len(errs) == 0 && tc.expectedValidationErr {
    		t.Errorf("Expected error validating")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r112/PublicationsCrossVersionSpec.groovy

            }
    
            then:
            publications.publications.size() == 2
    
            and:
            def pub1 = publications.publications.find { it.id.group == "test.org" }
            pub1 != null
            pub1.id.name == "test-module"
            pub1.id.version == "1.1"
    
            and:
            def pub2 = publications.publications.find { it.id.group == "test.groupId" }
            pub2 != null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top