Skip to content

Commit

Permalink
Every type of artifact should be handled.
Browse files Browse the repository at this point in the history
If that’s not the case, we want to see it fail
during tests.

Signed-off-by: David Gageot <david@gageot.net>
  • Loading branch information
dgageot committed Oct 7, 2019
1 parent 18721bb commit 6fd176e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/skaffold/runner/diagnose.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ func typeOfArtifact(a *latest.Artifact) string {
return "Bazel artifact"
case a.JibArtifact != nil:
return "Jib artifact"
case a.CustomArtifact != nil:
return "Custom artifact"
default:
return "Unknown artifact"
panic("Unknown artifact")
}
}

Expand Down

0 comments on commit 6fd176e

Please sign in to comment.