Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for DeploymentConditionType (0.23 sec)

  1. operator/pkg/verifier/verify_test.go

    				tt.Fatalf("unexpected error: %v", err)
    			}
    		})
    	}
    }
    
    func TestGetDeploymentCondition(t *testing.T) {
    	cases := []struct {
    		status     appsv1.DeploymentStatus
    		condType   appsv1.DeploymentConditionType
    		shouldFind bool
    	}{
    		{
    			// Simple "find Available in Available"
    			status:     availableDeployment.Status,
    			condType:   appsv1.DeploymentAvailable,
    			shouldFind: true,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 28 16:26:13 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. operator/pkg/verifier/k8s_util.go

    				daemonSet.Namespace, daemonSet.Name, daemonSet.Status.NumberReady, daemonSet.Status.DesiredNumberScheduled)
    		}
    	}
    	return nil
    }
    
    func getDeploymentCondition(status appsv1.DeploymentStatus, condType appsv1.DeploymentConditionType) *appsv1.DeploymentCondition {
    	for i := range status.Conditions {
    		c := status.Conditions[i]
    		if c.Type == condType {
    			return &c
    		}
    	}
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 28 16:26:13 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/apps/v1beta1/types.go

    }
    
    type DeploymentConditionType string
    
    // These are valid conditions of a deployment.
    const (
    	// Available means the deployment is available, ie. at least the minimum available
    	// replicas required are up and running for at least minReadySeconds.
    	DeploymentAvailable DeploymentConditionType = "Available"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:24 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  4. pkg/apis/apps/types.go

    	CollisionCount *int32
    }
    
    // DeploymentConditionType defines conditions of a deployment.
    type DeploymentConditionType string
    
    // These are valid conditions of a deployment.
    const (
    	// Available means the deployment is available, ie. at least the minimum available
    	// replicas required are up and running for at least minReadySeconds.
    	DeploymentAvailable DeploymentConditionType = "Available"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:09:29 UTC 2023
    - 36.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/apps/v1beta2/types.go

    }
    
    type DeploymentConditionType string
    
    // These are valid conditions of a deployment.
    const (
    	// Available means the deployment is available, ie. at least the minimum available
    	// replicas required are up and running for at least minReadySeconds.
    	DeploymentAvailable DeploymentConditionType = "Available"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:24 UTC 2023
    - 52.2K bytes
    - Viewed (0)
  6. pkg/controller/deployment/util/deployment_util.go

    func RemoveDeploymentCondition(status *apps.DeploymentStatus, condType apps.DeploymentConditionType) {
    	status.Conditions = filterOutCondition(status.Conditions, condType)
    }
    
    // filterOutCondition returns a new slice of deployment conditions without conditions with the provided type.
    func filterOutCondition(conditions []apps.DeploymentCondition, condType apps.DeploymentConditionType) []apps.DeploymentCondition {
    	var newConditions []apps.DeploymentCondition
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/apps/v1/types.go

    }
    
    type DeploymentConditionType string
    
    // These are valid conditions of a deployment.
    const (
    	// Available means the deployment is available, ie. at least the minimum available
    	// replicas required are up and running for at least minReadySeconds.
    	DeploymentAvailable DeploymentConditionType = "Available"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 49.1K bytes
    - Viewed (0)
  8. pkg/controller/deployment/util/deployment_util_test.go

    		}
    	}
    )
    
    func TestGetCondition(t *testing.T) {
    	exampleStatus := status()
    
    	tests := []struct {
    		name string
    
    		status   apps.DeploymentStatus
    		condType apps.DeploymentConditionType
    
    		expected bool
    	}{
    		{
    			name: "condition exists",
    
    			status:   *exampleStatus,
    			condType: apps.DeploymentAvailable,
    
    			expected: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/extensions/v1beta1/types.go

    }
    
    type DeploymentConditionType string
    
    // These are valid conditions of a deployment.
    const (
    	// Available means the deployment is available, ie. at least the minimum available
    	// replicas required are up and running for at least minReadySeconds.
    	DeploymentAvailable DeploymentConditionType = "Available"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:29 UTC 2023
    - 61.3K bytes
    - Viewed (0)
  10. pkg/controller/deployment/progress_test.go

    	}
    
    	tests := []struct {
    		name            string
    		d               *apps.Deployment
    		allRSs          []*apps.ReplicaSet
    		newRS           *apps.ReplicaSet
    		conditionType   apps.DeploymentConditionType
    		conditionStatus v1.ConditionStatus
    		conditionReason string
    		lastUpdate      metav1.Time
    		lastTransition  metav1.Time
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top