Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for PDB (1.48 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/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)
  3. 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)
  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/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 (1)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/msvcpp/VisualCppPlatformToolProvider.java

        public String getLibrarySymbolFileName(String libraryPath) {
            return withExtension(getSharedLibraryName(libraryPath), ".pdb");
        }
    
        @Override
        public String getExecutableSymbolFileName(String executablePath) {
            return withExtension(getExecutableName(executablePath), ".pdb");
        }
    
        @Override
        public VisualCppMetadata getCompilerMetadata(ToolType toolType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  10. operator/pkg/object/objects_test.go

                      kind: PodDisruptionBudget
                      metadata:
                        name: zk-pdb
                      spec:
                        minAvailable: 2`),
    			o2: getK8sObject(`
                      apiVersion: policy/v1
                      kind: PodDisruptionBudget
                      metadata:
                        name: zk-pdb
                      spec:
                        minAvailable: 2`),
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 21 07:16:46 UTC 2023
    - 18.4K bytes
    - Viewed (0)
Back to top