Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for pdb (0.02 sec)

  1. 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)
  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/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)
  4. staging/src/k8s.io/api/policy/v1beta1/types.go

    	// Healthy pods will be subject to the PDB for eviction.
    	//
    	// AlwaysAllow policy means that all running pods (status.phase="Running"),
    	// but not yet healthy are considered disrupted and can be evicted regardless
    	// of whether the criteria in a PDB is met. This means perspective running
    	// pods of a disrupted application might not get a chance to become healthy.
    	// Healthy pods will be subject to the PDB for eviction.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/policy/v1/types.go

    	// Healthy pods will be subject to the PDB for eviction.
    	//
    	// AlwaysAllow policy means that all running pods (status.phase="Running"),
    	// but not yet healthy are considered disrupted and can be evicted regardless
    	// of whether the criteria in a PDB is met. This means perspective running
    	// pods of a disrupted application might not get a chance to become healthy.
    	// Healthy pods will be subject to the PDB for eviction.
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. 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)
  7. pkg/registry/core/pod/storage/eviction_test.go

    }
    
    func TestEvictionPDBStatus(t *testing.T) {
    	testcases := []struct {
    		name                       string
    		pdb                        *policyv1.PodDisruptionBudget
    		expectedDisruptionsAllowed int32
    		expectedReason             string
    	}{
    		{
    			name: "pdb status is updated after eviction",
    			pdb: &policyv1.PodDisruptionBudget{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "default"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/policy/v1beta1/generated.proto

      // disrupted (status.currentHealthy is at least equal to status.desiredHealthy).
      // Healthy pods will be subject to the PDB for eviction.
      //
      // AlwaysAllow policy means that all running pods (status.phase="Running"),
      // but not yet healthy are considered disrupted and can be evicted regardless
      // of whether the criteria in a PDB is met. This means perspective running
      // pods of a disrupted application might not get a chance to become healthy.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/test/groovy/org/gradle/language/plugins/NativeBasePluginTest.groovy

            def toolProvider = Stub(PlatformToolProvider)
            toolProvider.getSharedLibraryName(_) >> { String p -> p + ".dll" }
            toolProvider.getLibrarySymbolFileName(_) >> { String p -> p + ".dll.pdb" }
            toolProvider.requiresDebugBinaryStripping() >> true
    
            def runtimeFileProp = project.objects.fileProperty()
            def linkTaskProp = project.objects.property(LinkSharedLibrary)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/preemption/preemption.go

    // along with the list of victims that should be evicted for the preemptor to fit the node.
    type Candidate interface {
    	// Victims wraps a list of to-be-preempted Pods and the number of PDB violation.
    	Victims() *extenderv1.Victims
    	// Name returns the target node name where the preemptor gets nominated to run.
    	Name() string
    }
    
    type candidate struct {
    	victims *extenderv1.Victims
    	name    string
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
Back to top