From 4410f505a210996db983c1a2058161988fad9c47 Mon Sep 17 00:00:00 2001 From: Samuel Maftoul Date: Tue, 30 Nov 2021 20:22:09 +0100 Subject: [PATCH] fix: IsSkaffoldConfig doesn't need to check file extension --- pkg/skaffold/schema/versions.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/skaffold/schema/versions.go b/pkg/skaffold/schema/versions.go index ba5558d77ad..657e8a668ba 100644 --- a/pkg/skaffold/schema/versions.go +++ b/pkg/skaffold/schema/versions.go @@ -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" @@ -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 }