Skip to content

Commit

Permalink
fix: IsSkaffoldConfig doesn't need to check file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
smaftoul committed Nov 30, 2021
1 parent b6a2922 commit 4410f50
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/skaffold/schema/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
"gopkg.in/yaml.v3"

"github.com/GoogleContainerTools/skaffold/pkg/skaffold/apiversion"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/kubernetes"
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/output/log"
sErrors "github.com/GoogleContainerTools/skaffold/pkg/skaffold/schema/errors"
latestV1 "github.com/GoogleContainerTools/skaffold/pkg/skaffold/schema/latest/v1"
Expand Down Expand Up @@ -185,10 +184,6 @@ func (v *Versions) Find(apiVersion string) (func() util.VersionedConfig, bool) {

// IsSkaffoldConfig is for determining if a file is skaffold config file.
func IsSkaffoldConfig(file string) bool {
if !kubernetes.HasKubernetesFileExtension(file) {
return false
}

if config, err := ParseConfig(file); err == nil && config != nil {
return true
}
Expand Down

0 comments on commit 4410f50

Please sign in to comment.