@@ -136,8 +136,6 @@ func (d *Deployment) CheckStatus(ctx context.Context, cfg kubectl.Config) {
136
136
ae := parseKubectlRolloutError (details , d .deadline , err )
137
137
d .UpdateStatus (ae )
138
138
// send event update in check status.
139
- event .ResourceStatusCheckEventUpdated (d .String (), ae )
140
- eventV2 .ResourceStatusCheckEventUpdated (d .String (), sErrors .V2fromV1 (ae ))
141
139
// if deployment is successfully rolled out, send pod success event to make sure
142
140
// all pod are marked as success in V2
143
141
// See https://github.com/GoogleCloudPlatform/cloud-code-vscode-internal/issues/5277
@@ -307,14 +305,8 @@ func (d *Deployment) fetchPods(ctx context.Context) error {
307
305
if ! found || originalPod .StatusUpdated (p ) {
308
306
d .status .changed = true
309
307
prefix := fmt .Sprintf ("%s %s:" , tabHeader , p .String ())
310
- switch p .ActionableError ().ErrCode {
311
- case proto .StatusCode_STATUSCHECK_SUCCESS :
312
- event .ResourceStatusCheckEventCompleted (p .String (), p .ActionableError ())
313
- eventV2 .ResourceStatusCheckEventCompletedMessage (
314
- p .String (),
315
- fmt .Sprintf ("%s running.\n " , prefix ),
316
- sErrors .V2fromV1 (p .ActionableError ()))
317
- default :
308
+ if p .ActionableError ().ErrCode != proto .StatusCode_STATUSCHECK_SUCCESS &&
309
+ p .ActionableError ().Message != "" {
318
310
event .ResourceStatusCheckEventUpdated (p .String (), p .ActionableError ())
319
311
eventV2 .ResourceStatusCheckEventUpdatedMessage (
320
312
p .String (),
0 commit comments