- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for conditionType (0.31 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.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) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apihelpers/helpers.go
func IsCRDConditionTrue(crd *apiextensionsv1.CustomResourceDefinition, conditionType apiextensionsv1.CustomResourceDefinitionConditionType) bool { return IsCRDConditionPresentAndEqual(crd, conditionType, apiextensionsv1.ConditionTrue) } // IsCRDConditionFalse indicates if the condition is present and false. func IsCRDConditionFalse(crd *apiextensionsv1.CustomResourceDefinition, conditionType apiextensionsv1.CustomResourceDefinitionConditionType) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 03 16:49:27 UTC 2019 - 9.5K bytes - Viewed (0) -
pkg/controller/certificates/certificate_controller_utils.go
func HasTrueCondition(csr *certificates.CertificateSigningRequest, conditionType certificates.RequestConditionType) bool { for _, c := range csr.Status.Conditions { if c.Type == conditionType && (len(c.Status) == 0 || c.Status == v1.ConditionTrue) { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 02 07:05:23 UTC 2020 - 1.7K bytes - Viewed (0)