Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of about 10,000 for condition3 (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/openapi/enablement_test.go

    						SchemaProps: spec.SchemaProps{
    							Description: "The last time this condition was updated.",
    							Default:     map[string]interface{}{},
    							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
    						},
    					},
    					"lastTransitionTime": {
    						SchemaProps: spec.SchemaProps{
    							Description: "Last time the condition transitioned from one status to another.",
    							Default:     map[string]interface{}{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. tests/integration/pilot/analysis/analysis_test.go

    	}
    
    	if len(status.Conditions) < 1 {
    		return fmt.Errorf("expected conditions to exist, but got nothing")
    	}
    	found := false
    	for _, condition := range status.Conditions {
    		if condition.Type == "Reconciled" {
    			found = true
    			if condition.Status != "True" {
    				return fmt.Errorf("expected Reconciled to be true but was %v", condition.Status)
    			}
    		}
    	}
    	if !found {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. pkg/controller/replicaset/replica_set_utils.go

    func SetCondition(status *apps.ReplicaSetStatus, condition apps.ReplicaSetCondition) {
    	currentCond := GetCondition(*status, condition.Type)
    	if currentCond != nil && currentCond.Status == condition.Status && currentCond.Reason == condition.Reason {
    		return
    	}
    	newConditions := filterOutCondition(status.Conditions, condition.Type)
    	status.Conditions = append(newConditions, condition)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 12:19:51 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. pkg/util/pod/pod_test.go

    		},
    		{
    			"pod condition change",
    			func(input v1.PodStatus) v1.PodStatus {
    				input.Conditions[0].Status = v1.ConditionFalse
    				return input
    			},
    			false,
    			[]byte(fmt.Sprintf(`{"metadata":{"uid":"myuid"},"status":{"$setElementOrder/conditions":[{"type":"Ready"},{"type":"PodScheduled"}],"conditions":[{"status":"False","type":"Ready"}]}}`)),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  5. pkg/api/v1/pod/util.go

    	// Try to find this pod condition.
    	conditionIndex, oldCondition := GetPodCondition(status, condition.Type)
    
    	if oldCondition == nil {
    		// We are adding new pod condition.
    		status.Conditions = append(status.Conditions, *condition)
    		return true
    	}
    	// We are updating an existing condition, so we need to check if it has changed.
    	if condition.Status == oldCondition.Status {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 17:18:04 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  6. pkg/controller/namespace/deletion/status_condition_utils.go

    		if newCondition == nil {
    			newCondition = newSuccessfulCondition(conditionType)
    		}
    		oldCondition := getCondition(status.Conditions, conditionType)
    
    		// only new condition of this type exists, add to the list
    		if oldCondition == nil {
    			status.Conditions = append(status.Conditions, *newCondition)
    			hasChanged = true
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 06 13:58:41 UTC 2019
    - 8.1K bytes
    - Viewed (0)
  7. pkg/util/pod/pod.go

    // ReplaceOrAppendPodCondition replaces the first pod condition with equal type or appends if there is none
    func ReplaceOrAppendPodCondition(conditions []v1.PodCondition, condition *v1.PodCondition) []v1.PodCondition {
    	if i, _ := podutil.GetPodConditionFromList(conditions, condition.Type); i >= 0 {
    		conditions[i] = *condition
    	} else {
    		conditions = append(conditions, *condition)
    	}
    	return conditions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 15:22:29 UTC 2022
    - 3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/helpers.go

    }
    
    // RemoveCRDCondition removes the status condition.
    func RemoveCRDCondition(crd *CustomResourceDefinition, conditionType CustomResourceDefinitionConditionType) {
    	newConditions := []CustomResourceDefinitionCondition{}
    	for _, condition := range crd.Status.Conditions {
    		if condition.Type != conditionType {
    			newConditions = append(newConditions, condition)
    		}
    	}
    	crd.Status.Conditions = newConditions
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 27 10:54:44 UTC 2019
    - 9K bytes
    - Viewed (0)
  9. pkg/apis/certificates/validation/validation_test.go

    			strictErrs:  []string{`status.conditions[1].type: Invalid value: "Denied": Approved and Denied conditions are mutually exclusive`},
    		}, {
    			name: "duplicate condition",
    			csr: &capi.CertificateSigningRequest{ObjectMeta: validObjectMeta, Spec: validSpec,
    				Status: capi.CertificateSigningRequestStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  10. pkg/apis/apps/types.go

    type DeploymentCondition struct {
    	// Type of deployment condition.
    	Type DeploymentConditionType
    	// Status of the condition, one of True, False, Unknown.
    	Status api.ConditionStatus
    	// The last time this condition was updated.
    	LastUpdateTime metav1.Time
    	// Last time the condition transitioned from one status to another.
    	LastTransitionTime metav1.Time
    	// The reason for the condition's last transition.
    	Reason string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:09:29 UTC 2023
    - 36.4K bytes
    - Viewed (0)
Back to top