mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
update the api conversion tool to v1
This commit is contained in:
parent
b65c321a87
commit
34e443a1aa
@ -28,7 +28,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||||
_ "github.com/GoogleCloudPlatform/kubernetes/pkg/api/v1beta3"
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/latest"
|
||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
|
||||||
|
|
||||||
"github.com/ghodss/yaml"
|
"github.com/ghodss/yaml"
|
||||||
@ -39,7 +39,7 @@ var (
|
|||||||
inputSource = flag.StringP("input", "i", "-", "Input source; '-' means stdin")
|
inputSource = flag.StringP("input", "i", "-", "Input source; '-' means stdin")
|
||||||
outputDest = flag.StringP("output", "o", "-", "Output destination; '-' means stdout")
|
outputDest = flag.StringP("output", "o", "-", "Output destination; '-' means stdout")
|
||||||
rewrite = flag.StringP("rewrite", "r", "", "If nonempty, use this as both input and output.")
|
rewrite = flag.StringP("rewrite", "r", "", "If nonempty, use this as both input and output.")
|
||||||
outputVersion = flag.StringP("out-version", "v", "v1beta3", "Version to convert input to")
|
outputVersion = flag.StringP("out-version", "v", latest.Version, "Version to convert input to")
|
||||||
)
|
)
|
||||||
|
|
||||||
// isYAML determines whether data is JSON or YAML formatted by seeing
|
// isYAML determines whether data is JSON or YAML formatted by seeing
|
||||||
|
Loading…
Reference in New Issue
Block a user