Skip to content

Commit

Permalink
Add missing deploy failure
Browse files Browse the repository at this point in the history
Signed-off-by: David Gageot <david@gageot.net>
  • Loading branch information
dgageot committed Jul 24, 2019
1 parent 3e1ea73 commit a14f151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/skaffold/deploy/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func (k *KubectlDeployer) Deploy(ctx context.Context, out io.Writer, builds []bu
for _, transform := range manifestTransforms {
manifests, err = transform(manifests, builds, k.insecureRegistries)
if err != nil {
event.DeployFailed(err)
return errors.Wrap(err, "unable to transform manifests")
}
}
Expand Down
1 change: 1 addition & 0 deletions pkg/skaffold/deploy/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (k *KustomizeDeployer) Deploy(ctx context.Context, out io.Writer, builds []
for _, transform := range manifestTransforms {
manifests, err = transform(manifests, builds, k.insecureRegistries)
if err != nil {
event.DeployFailed(err)
return errors.Wrap(err, "unable to transform manifests")
}
}
Expand Down

0 comments on commit a14f151

Please sign in to comment.