Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for getCondition (0.17 sec)

  1. pkg/apis/storagemigration/validation/validation.go

    func isSuccessful(svm *storagemigration.StorageVersionMigration) bool {
    	successCondition := getCondition(svm, storagemigration.MigrationSucceeded)
    	if successCondition != nil && successCondition.Status == corev1.ConditionTrue {
    		return true
    	}
    	return false
    }
    
    func isFailed(svm *storagemigration.StorageVersionMigration) bool {
    	failedCondition := getCondition(svm, storagemigration.MigrationFailed)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. security/pkg/k8s/chiron/utils_test.go

    				}
    			}
    		}
    	}()
    	return client
    }
    
    func approved(csr *cert.CertificateSigningRequest) bool {
    	return GetCondition(csr.Status.Conditions, cert.CertificateApproved).Status == corev1.ConditionTrue
    }
    
    func GetCondition(conditions []cert.CertificateSigningRequestCondition, condition cert.RequestConditionType) cert.CertificateSigningRequestCondition {
    	for _, cond := range conditions {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. tests/integration/pilot/gateway_test.go

    	check := func() error {
    		gw, _ := client.Get(context.Background(), "managed-owner", metav1.GetOptions{})
    		if gw == nil {
    			return fmt.Errorf("failed to find gateway")
    		}
    		cond := kstatus.GetCondition(gw.Status.Conditions, string(k8sv1.GatewayConditionProgrammed))
    		if cond.Status != metav1.ConditionTrue {
    			return fmt.Errorf("failed to find programmed condition: %+v", cond)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/ide/visualstudio/fixtures/ProjectFile.groovy

            }
    
            private Node getConfiguration() {
                projectXml.PropertyGroup.find({ it.'@Label' == 'Configuration' && it.'@Condition' == condition}) as Node
            }
    
            private String getCondition() {
                "'\$(Configuration)|\$(Platform)'=='${name}|${platformName}'"
            }
        }
    
        void assertHasComponentSources(TestNativeComponent component, String basePath) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. operator/pkg/helmreconciler/wait.go

    				return fmt.Sprintf("container failed to start: %v: %v", cs.State.Waiting.Reason, cs.State.Waiting.Message)
    			}
    		}
    		if c := getCondition(pod.Status.Conditions, corev1.PodReady); c != nil && c.Status == corev1.ConditionFalse {
    			return fmt.Sprintf(c.Message)
    		}
    	}
    	return ""
    }
    
    func getCondition(conditions []corev1.PodCondition, condition corev1.PodConditionType) *corev1.PodCondition {
    	for _, cond := range conditions {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 08 03:13:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/converter_gen.cc

                      valueKind.substr(0, 1).upper(), valueKind.substr(1),
                      static_value.index());
    
        os << "      (void)v;\n"
           << "      if (!("
           << tgfmt(pred.getCondition(), &fctx.withSelf("v.getType()")) << ")) {\n"
           << "        if (emit_error_on_verify_fail) {\n"
           << formatv(
                  "        return op->emitOpError(\"{0} #\") << index "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  7. tests/integration/ambient/waypoint_test.go

    				if gwc == nil {
    					return fmt.Errorf("failed to find GatewayClass %v", constants.WaypointGatewayClassName)
    				}
    				cond := kstatus.GetCondition(gwc.Status.Conditions, string(k8s.GatewayClassConditionStatusAccepted))
    				if cond.Status != metav1.ConditionTrue {
    					return fmt.Errorf("failed to find accepted condition: %+v", cond)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. pkg/controller/job/job_controller_test.go

    				t.Error("Missing .status.startTime")
    			}
    			// validate conditions
    			if !getCondition(actual, tc.expectedCondition, v1.ConditionTrue, tc.expectedConditionReason) {
    				t.Errorf("Expected fail condition.  Got %#v", actual.Status.Conditions)
    			}
    		})
    	}
    }
    
    func getCondition(job *batch.Job, condition batch.JobConditionType, status v1.ConditionStatus, reason string) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  9. pilot/pkg/autoregistration/controller_test.go

    	if cfg == nil {
    		return fmt.Errorf("expected WorkloadEntry %s/%s to exist", proxy.Metadata.Namespace, name)
    	}
    	if cfg.Status == nil {
    		return nil
    	}
    	s := cfg.Status.(*v1alpha1.IstioStatus)
    	if status.GetCondition(s.Conditions, "Healthy") != nil {
    		return fmt.Errorf("expected WorkloadEntry %s/%s not to have %q condition",
    			proxy.Metadata.Namespace, name, "Healthy")
    	}
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 00:00:36 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  10. pkg/controller/replicaset/replica_set_test.go

    		{
    			name: "condition does not exist",
    
    			status:   *exampleStatus,
    			condType: imagePullBackOff,
    
    			expected: false,
    		},
    	}
    
    	for _, test := range tests {
    		cond := GetCondition(test.status, test.condType)
    		exists := cond != nil
    		if exists != test.expected {
    			t.Errorf("%s: expected condition to exist: %t, got: %t", test.name, test.expected, exists)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
Back to top