Output config version in skaffold version
@@ -23,13 +23,17 @@ import (
"github.com/blang/semver"
"github.com/pkg/errors"
+
+ "github.com/GoogleContainerTools/skaffold/pkg/skaffold/schema/latest"
)
var version, gitCommit, gitTreeState, buildDate string
var platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)
+var configVersion = latest.Version
type Info struct {
Version string
+ ConfigVersion string
GitVersion string
GitCommit string
GitTreeState string
@@ -44,6 +48,7 @@ func Get() *Info {
// These variables typically come from -ldflags settings to `go build`
return &Info{
Version: version,
+ ConfigVersion: configVersion,
GitCommit: gitCommit,
GitTreeState: gitTreeState,
BuildDate: buildDate,
