@@ -41,8 +41,6 @@ import (
41
41
42
42
// DeployAndLog deploys a list of already built artifacts and optionally show the logs.
43
43
func (r * SkaffoldRunner ) DeployAndLog (ctx context.Context , out io.Writer , artifacts []graph.Artifact ) error {
44
- eventV2 .TaskInProgress (constants .Deploy , "Deploy to cluster" )
45
-
46
44
// Update which images are logged.
47
45
r .AddTagsToPodSelector (artifacts )
48
46
@@ -53,7 +51,6 @@ func (r *SkaffoldRunner) DeployAndLog(ctx context.Context, out io.Writer, artifa
53
51
logger .SetSince (time .Now ())
54
52
// First deploy
55
53
if err := r .Deploy (ctx , out , artifacts ); err != nil {
56
- eventV2 .TaskFailed (constants .Deploy , err )
57
54
return err
58
55
}
59
56
@@ -66,7 +63,6 @@ func (r *SkaffoldRunner) DeployAndLog(ctx context.Context, out io.Writer, artifa
66
63
67
64
// Start printing the logs after deploy is finished
68
65
if err := logger .Start (ctx , r .runCtx .GetNamespaces ()); err != nil {
69
- eventV2 .TaskFailed (constants .Deploy , err )
70
66
return fmt .Errorf ("starting logger: %w" , err )
71
67
}
72
68
@@ -75,7 +71,6 @@ func (r *SkaffoldRunner) DeployAndLog(ctx context.Context, out io.Writer, artifa
75
71
<- ctx .Done ()
76
72
}
77
73
78
- eventV2 .TaskSucceeded (constants .Deploy )
79
74
return nil
80
75
}
81
76
@@ -126,7 +121,7 @@ See https://skaffold.dev/docs/pipeline-stages/taggers/#how-tagging-works`)
126
121
}
127
122
128
123
event .DeployInProgress ()
129
- eventV2 .TaskInProgress (constants .Deploy , "" )
124
+ eventV2 .TaskInProgress (constants .Deploy , "Deploy to cluster " )
130
125
ctx , endTrace := instrumentation .StartTrace (ctx , "Deploy_Deploying" )
131
126
defer endTrace ()
132
127
0 commit comments