allow ldflags to overwrite k8s version

Signed-off-by: Sverre Boschman <1142569+sboschman@users.noreply.github.com>
(cherry picked from commit 81a373ead5)
release-3.7
Sverre Boschman 4 years ago committed by Matt Farina
parent dfb24521ac
commit 7e750ff4e9
No known key found for this signature in database
GPG Key ID: 92C44A3D421FF7F9

@ -28,12 +28,10 @@ import (
helmversion "helm.sh/helm/v3/internal/version"
)
const (
var (
k8sVersionMajor = 1
k8sVersionMinor = 20
)
var (
// DefaultVersionSet is the default version set, which includes only Core V1 ("v1").
DefaultVersionSet = allKnownVersions()

@ -25,7 +25,7 @@ import (
kscheme "k8s.io/client-go/kubernetes/scheme"
)
const (
var (
// This should be set in the Makefile based on the version of client-go being imported.
// These constants will be overwritten with LDFLAGS
k8sVersionMajor = 1

Loading…
Cancel
Save