- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for getCondition (0.32 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
PatternRewriter &rewriter) const override { // This lowering only works on ranked types. auto cond_type = mlir::dyn_cast<RankedTensorType>(op.getCondition().getType()); auto then_type = mlir::dyn_cast<RankedTensorType>(op.getThenValue().getType()); auto else_type = mlir::dyn_cast<RankedTensorType>(op.getElseValue().getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
LogicalResult matchAndRewrite(AssertOp op, PatternRewriter& rewriter) const override { ElementsAttr cst; if (matchPattern(op.getCondition(), m_Constant(&cst))) { if (cst.getValues<bool>()[0]) { rewriter.eraseOp(op); return success(); } } return failure(); } }; } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal.go
if invalidMetricsCount >= len(metricSpecs) || (invalidMetricsCount > 0 && replicas < specReplicas) { setCondition(hpa, invalidMetricCondition.Type, invalidMetricCondition.Status, invalidMetricCondition.Reason, invalidMetricCondition.Message) return -1, "", statuses, time.Time{}, invalidMetricError }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
if (else_tensor.getRank() > 0) data_first_dim = else_tensor.getShape().front(); } else { // Neither has a rank. return success(); } auto cond_tensor = op.getCondition().getType().dyn_cast<RankedTensorType>(); if (!cond_tensor) return success(); auto cond_rank = cond_tensor.getRank(); // Check (2a) and (2b). if (cond_rank == 0 || cond_rank == data_rank) return success();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0)