Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for pdb1 (0.04 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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/ide/problems-api/src/test/groovy/org/gradle/api/problems/internal/DefaultProblemDefinitionReport.groovy

            when:
            def pd1 = createProblemDefinition()
            def pd2 = createProblemDefinition()
    
            then:
            pd1 == pd2
            pd1 == pd1
        }
    
        def "Changed label causes equal to be false"() {
    
            when:
            def pd1 = createProblemDefinition()
            def pd2 = createProblemDefinition("otherLabel")
    
            then:
            pd1 != pd2
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/preemption/preemption_test.go

    )
    
    type FakePostFilterPlugin struct {
    	numViolatingVictim int
    }
    
    func (pl *FakePostFilterPlugin) SelectVictimsOnNode(
    	ctx context.Context, state *framework.CycleState, pod *v1.Pod,
    	nodeInfo *framework.NodeInfo, pdbs []*policy.PodDisruptionBudget) (victims []*v1.Pod, numViolatingVictim int, status *framework.Status) {
    	return append(victims, nodeInfo.Pods[0].Pod), pl.numViolatingVictim, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top