- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetTypedStatus (0.25 sec)
-
pilot/pkg/status/distribution/state_test.go
}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { gotOut, err := status.GetTypedStatus(tt.args.in) if (err != nil) != tt.wantErr { t.Errorf("GetTypedStatus() error = %v, wantErr %v", err, tt.wantErr) return } if !reflect.DeepEqual(gotOut, tt.wantOut) { t.Errorf("GetTypedStatus() gotOut = %v, want %v", gotOut, tt.wantOut) } }) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 22 22:47:47 UTC 2022 - 4.3K bytes - Viewed (0) -
pilot/pkg/status/resource.go
} return Resource{ GroupVersionResource: gvr, Namespace: c.Namespace, Name: c.Name, Generation: strconv.FormatInt(c.Generation, 10), } } func GetTypedStatus(in any) (out *v1alpha1.IstioStatus, err error) { if ret, ok := in.(*v1alpha1.IstioStatus); ok { return ret, nil } return nil, fmt.Errorf("cannot cast %T: %v to IstioStatus", in, in) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 30 16:13:59 UTC 2023 - 3.2K bytes - Viewed (0)