Skip to content

Commit

Permalink
fix: output cause of kubernetes manifest parsing error vs generic mes…
Browse files Browse the repository at this point in the history
…sage (#8463)
  • Loading branch information
aaron-prindle authored Feb 23, 2023
1 parent 5ff2764 commit f0a4ed7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/skaffold/kubernetes/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ func HasKubernetesFileExtension(n string) bool {
// IsKubernetesManifest is for determining if a file is a valid Kubernetes manifest
func IsKubernetesManifest(file string) bool {
_, err := parseKubernetesObjects(file)
if err != nil {
log.Entry(context.TODO()).Error(err)
}
return err == nil
}

Expand Down

0 comments on commit f0a4ed7

Please sign in to comment.