- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 168 for conditionType (0.15 sec)
-
pkg/kubelet/status/generate_test.go
expectReady: getPodCondition(v1.PodReady, v1.ConditionTrue, "", ""), }, { spec: &v1.PodSpec{ ReadinessGates: []v1.PodReadinessGate{ {ConditionType: v1.PodConditionType("gate1")}, {ConditionType: v1.PodConditionType("gate2")}, }, }, conditions: []v1.PodCondition{ getPodCondition("gate1", v1.ConditionTrue, "", ""), }, containerStatuses: []v1.ContainerStatus{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 12 15:18:11 UTC 2023 - 18.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apihelpers/helpers_test.go
name string crdCondition []apiextensionsv1.CustomResourceDefinitionCondition conditionType apiextensionsv1.CustomResourceDefinitionConditionType expectedcrdCondition []apiextensionsv1.CustomResourceDefinitionCondition }{ { name: "test remove CRDCondition when the conditionType meets", crdCondition: []apiextensionsv1.CustomResourceDefinitionCondition{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 03 16:49:27 UTC 2019 - 20.3K 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) -
pkg/registry/certificates/certificates/strategy.go
// or returns false if the newCSR added or removed instances func preserveConditionInstances(newCSR, oldCSR *certificates.CertificateSigningRequest, conditionType certificates.RequestConditionType) bool { oldIndices := findConditionIndices(oldCSR, conditionType) newIndices := findConditionIndices(newCSR, conditionType) if len(oldIndices) != len(newIndices) { // instances were added or removed, we cannot preserve the existing values return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 21:41:43 UTC 2022 - 11.4K bytes - Viewed (0) -
pkg/controller/job/util/utils_test.go
Conditions: test.conditions, }, } isJobFinished, conditionType := FinishedCondition(job) if isJobFinished != test.wantJobFinished { if test.wantJobFinished { t.Error("Expected the job to be finished") } else { t.Error("Expected the job to be unfinished") } } if conditionType != test.wantConditionType {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 09:27:46 UTC 2024 - 4.7K bytes - Viewed (0) -
pilot/pkg/controllers/untaint/nodeuntainter.go
_, condition := GetPodCondition(&status, v1.PodReady) return condition } func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition) { if status == nil { return -1, nil } return GetPodConditionFromList(status.Conditions, conditionType) } // GetPodConditionFromList extracts the provided condition from the given list of condition and
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 00:50:31 UTC 2024 - 6.9K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/helpers.go
_, condition := GetPodCondition(&status, v1.PodReady) return condition } func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition) { if status == nil { return -1, nil } return GetPodConditionFromList(status.Conditions, conditionType) } // GetPodConditionFromList extracts the provided condition from the given list of condition and
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 22 20:35:23 UTC 2024 - 7.2K bytes - Viewed (0) -
pkg/kubelet/status/generate.go
if c == nil { unreadyMessages = append(unreadyMessages, fmt.Sprintf("corresponding condition of pod readiness gate %q does not exist.", string(rg.ConditionType))) } else if c.Status != v1.ConditionTrue { unreadyMessages = append(unreadyMessages, fmt.Sprintf("the status of pod readiness gate %q is not \"True\", but %v", string(rg.ConditionType), c.Status)) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 12 15:18:11 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/api/v1/pod/util.go
// Returns nil and -1 if the condition is not present, and the index of the located condition. func GetPodCondition(status *v1.PodStatus, conditionType v1.PodConditionType) (int, *v1.PodCondition) { if status == nil { return -1, nil } return GetPodConditionFromList(status.Conditions, conditionType) } // GetPodConditionFromList extracts the provided condition from the given list of condition and
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 17:18:04 UTC 2023 - 13.2K bytes - Viewed (0)