- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for updateCondition (0.14 sec)
-
pilot/pkg/model/status/helper.go
var status *v1alpha1.IstioStatus if cfg.Status == nil { cfg.Status = &v1alpha1.IstioStatus{} } status = cfg.Status.(*v1alpha1.IstioStatus) status.Conditions = updateCondition(status.Conditions, condition) return cfg } func updateCondition(conditions []*v1alpha1.IstioCondition, condition *v1alpha1.IstioCondition) []*v1alpha1.IstioCondition { for i, cond := range conditions { if cond.Type == condition.Type {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 21 15:06:10 UTC 2023 - 2.9K bytes - Viewed (0) -
pilot/pkg/model/status/helper_test.go
Message: "just a new condition", }, }, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := updateCondition(tt.args.conditions, tt.args.condition); !reflect.DeepEqual(got, tt.want) { t.Errorf("updateCondition() = %v, want %v", got, tt.want) } }) } } func Test_deleteCondition(t *testing.T) { type args struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 21 15:06:10 UTC 2023 - 3.7K bytes - Viewed (0) -
pkg/volume/util/resize_util_test.go
updatePVC := MergeResizeConditionOnPVC(testcase.pvc, testcase.newConditions) updateConditions := updatePVC.Status.Conditions if !reflect.DeepEqual(updateConditions, testcase.finalConditions) { t.Errorf("Expected updated conditions for test %s to be %v but got %v", testcase.description, testcase.finalConditions, updateConditions) } } } func TestResizeFunctions(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/controller/namespace/deletion/status_condition_utils.go
if c := makeDeleteContentCondition(u.deleteContentErrors); c != nil { u.newConditions = append(u.newConditions, *c) } } return updateConditions(&ns.Status, u.newConditions) } func makeDeleteContentCondition(err []error) *v1.NamespaceCondition { if len(err) == 0 { return nil } msgs := make([]string, 0, len(err)) for _, e := range err {
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/namespace/deletion/status_condition_utils_test.go
*newSuccessfulCondition(v1.NamespaceFinalizersRemaining), }, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { updateConditions(test.startingStatus, test.newConditions) actuals := test.startingStatus.Conditions if len(actuals) != len(test.expecteds) { t.Fatal(actuals) } for i := range actuals {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 06 13:58:41 UTC 2019 - 7.7K bytes - Viewed (0)