- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 168 for conditionType (0.21 sec)
-
pkg/controller/namespace/deletion/status_condition_utils.go
for _, conditionType := range conditionTypes { newCondition := getCondition(newConditions, conditionType) // if we weren't failing, then this returned nil. We should set the "ok" variant of the condition if newCondition == nil { newCondition = newSuccessfulCondition(conditionType) } oldCondition := getCondition(status.Conditions, conditionType)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 06 13:58:41 UTC 2019 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/conditions_test.go
conditions []metav1.Condition conditionType string expected *metav1.Condition }{ { name: "not-present", conditions: []metav1.Condition{ {Type: "first"}, }, conditionType: "second", expected: nil, }, { name: "present", conditions: []metav1.Condition{ {Type: "first"}, {Type: "second"}, }, conditionType: "second",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 22 01:13:33 UTC 2023 - 6.7K bytes - Viewed (0) -
pkg/controller/storageversionmigrator/util.go
func IsConditionTrue(svm *svmv1alpha1.StorageVersionMigration, conditionType svmv1alpha1.MigrationConditionType) bool { return indexOfCondition(svm, conditionType) != -1 } func indexOfCondition(svm *svmv1alpha1.StorageVersionMigration, conditionType svmv1alpha1.MigrationConditionType) int { for i, c := range svm.Status.Conditions { if c.Type == conditionType && c.Status == corev1.ConditionTrue { return i } } return -1
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 19:25:10 UTC 2024 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/core/v1/podreadinessgate.go
type PodReadinessGateApplyConfiguration struct { ConditionType *v1.PodConditionType `json:"conditionType,omitempty"` } // PodReadinessGateApplyConfiguration constructs an declarative configuration of the PodReadinessGate type for use with // apply. func PodReadinessGate() *PodReadinessGateApplyConfiguration { return &PodReadinessGateApplyConfiguration{} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 04 18:31:34 UTC 2021 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/conditions.go
return &conditions[i] } } return nil } // IsStatusConditionTrue returns true when the conditionType is present and set to `metav1.ConditionTrue` func IsStatusConditionTrue(conditions []metav1.Condition, conditionType string) bool { return IsStatusConditionPresentAndEqual(conditions, conditionType, metav1.ConditionTrue) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 22 01:13:33 UTC 2023 - 4.2K bytes - Viewed (0) -
pkg/kubelet/types/pod_status.go
// PodConditionByKubelet returns if the pod condition type is owned by kubelet func PodConditionByKubelet(conditionType v1.PodConditionType) bool { for _, c := range PodConditionsByKubelet { if c == conditionType { return true } } if utilfeature.DefaultFeatureGate.Enabled(features.PodReadyToStartContainersCondition) { if conditionType == v1.PodReadyToStartContainers { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 12 15:18:11 UTC 2023 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/helpers_test.go
tests := []struct { name string crdCondition []CustomResourceDefinitionCondition conditionType CustomResourceDefinitionConditionType expectedcrdCondition []CustomResourceDefinitionCondition }{ { name: "test remove CRDCondition when the conditionType meets", crdCondition: []CustomResourceDefinitionCondition{ { Type: Established,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 17 19:08:05 UTC 2019 - 15.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/helpers.go
return IsCRDConditionPresentAndEqual(crd, conditionType, ConditionTrue) } // IsCRDConditionFalse indicates if the condition is present and false. func IsCRDConditionFalse(crd *CustomResourceDefinition, conditionType CustomResourceDefinitionConditionType) bool { return IsCRDConditionPresentAndEqual(crd, conditionType, ConditionFalse) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 27 10:54:44 UTC 2019 - 9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/apihelpers/helpers.go
} // GetFlowSchemaConditionByType gets conditions. func GetFlowSchemaConditionByType(flowSchema *flowcontrol.FlowSchema, conditionType flowcontrol.FlowSchemaConditionType) *flowcontrol.FlowSchemaCondition { for i := range flowSchema.Status.Conditions { if flowSchema.Status.Conditions[i].Type == conditionType { return &flowSchema.Status.Conditions[i] } } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 3.4K bytes - Viewed (0) -
pkg/controller/deployment/progress_test.go
t.Error(err) } newCond := util.GetDeploymentCondition(test.d.Status, test.conditionType) switch { case newCond == nil: if test.d.Spec.ProgressDeadlineSeconds != nil && *test.d.Spec.ProgressDeadlineSeconds != math.MaxInt32 { t.Errorf("%s: expected deployment condition: %s", test.name, test.conditionType) } case newCond.Status != test.conditionStatus || newCond.Reason != test.conditionReason:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 13.3K bytes - Viewed (0)