- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for newConditions (0.17 sec)
-
pkg/controller/namespace/deletion/status_condition_utils.go
} } func updateConditions(status *v1.NamespaceStatus, newConditions []v1.NamespaceCondition) (hasChanged bool) { 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) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 06 13:58:41 UTC 2019 - 8.1K bytes - Viewed (0) -
pkg/controller/replication/replication_controller_utils.go
var newConditions []v1.ReplicationControllerCondition for _, c := range conditions { if c.Type == condType { continue } newConditions = append(newConditions, c) } return newConditions
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 28 14:41:20 UTC 2023 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/conditions.go
return true } if existingCondition.Status != newCondition.Status { existingCondition.Status = newCondition.Status if !newCondition.LastTransitionTime.IsZero() { existingCondition.LastTransitionTime = newCondition.LastTransitionTime } else { existingCondition.LastTransitionTime = metav1.NewTime(time.Now()) } changed = true } if existingCondition.Reason != newCondition.Reason {
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/controller/replicaset/replica_set_utils.go
func filterOutCondition(conditions []apps.ReplicaSetCondition, condType apps.ReplicaSetConditionType) []apps.ReplicaSetCondition { var newConditions []apps.ReplicaSetCondition for _, c := range conditions { if c.Type == condType { continue } newConditions = append(newConditions, c) } return newConditions
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 12:19:51 UTC 2023 - 7.1K bytes - Viewed (0) -
pkg/controller/namespace/deletion/status_condition_utils_test.go
) func TestUpdateConditions(t *testing.T) { tests := []struct { name string newConditions []v1.NamespaceCondition startingStatus *v1.NamespaceStatus expecteds []v1.NamespaceCondition }{ { name: "leave unknown", newConditions: []v1.NamespaceCondition{}, startingStatus: &v1.NamespaceStatus{ Conditions: []v1.NamespaceCondition{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 06 13:58:41 UTC 2019 - 7.7K bytes - Viewed (0) -
pkg/volume/util/resize_util.go
newConditions = append(newConditions, newCondition.condition) } else { newConditions = append(newConditions, condition) } newCondition.processed = true } } // append all unprocessed conditions for _, newCondition := range resizeConditionMap { if !newCondition.processed { newConditions = append(newConditions, newCondition.condition) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 17 19:30:35 UTC 2023 - 14.8K bytes - Viewed (0) -
pkg/volume/util/resize_util_test.go
{ description: "when removing all conditions", pvc: pvc.DeepCopy(), newConditions: []v1.PersistentVolumeClaimCondition{}, finalConditions: []v1.PersistentVolumeClaimCondition{}, }, { description: "adding new condition", pvc: pvc.DeepCopy(), newConditions: []v1.PersistentVolumeClaimCondition{ { Type: v1.PersistentVolumeClaimFileSystemResizePending,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 9.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apihelpers/helpers.go
} existingCondition.Status = newCondition.Status existingCondition.Reason = newCondition.Reason existingCondition.Message = newCondition.Message } // RemoveCRDCondition removes the status condition. func RemoveCRDCondition(crd *apiextensionsv1.CustomResourceDefinition, conditionType apiextensionsv1.CustomResourceDefinitionConditionType) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 03 16:49:27 UTC 2019 - 9.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/helpers.go
} existingCondition.Status = newCondition.Status existingCondition.Reason = newCondition.Reason existingCondition.Message = newCondition.Message } // RemoveCRDCondition removes the status condition. func RemoveCRDCondition(crd *CustomResourceDefinition, conditionType CustomResourceDefinitionConditionType) { newConditions := []CustomResourceDefinitionCondition{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 27 10:54:44 UTC 2019 - 9K bytes - Viewed (0) -
pkg/apis/certificates/validation/validation.go
oldConditions := findConditions(oldCSR, t) newConditions := findConditions(newCSR, t) switch { case len(newConditions) < len(oldConditions): // removals are prevented above case len(newConditions) > len(oldConditions):
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:49 UTC 2023 - 20.1K bytes - Viewed (0)