diff --git a/cli/commands.go b/cli/commands.go index f138868b..9106afc5 100644 --- a/cli/commands.go +++ b/cli/commands.go @@ -68,17 +68,6 @@ func CreateCluster(c *cli.Context) error { // define image image := c.String("image") - if c.IsSet("version") { - // TODO: --version to be deprecated - log.Println("[WARNING] The `--version` flag will be deprecated soon, please use `--image rancher/k3s:` instead") - if c.IsSet("image") { - // version specified, custom image = error (to push deprecation of version flag) - log.Fatalln("[ERROR] Please use `--image :` instead of --image and --version") - } else { - // version specified, default image = ok (until deprecation of version flag) - image = fmt.Sprintf("%s:%s", strings.Split(image, ":")[0], c.String("version")) - } - } if len(strings.Split(image, "/")) <= 2 { // fallback to default registry image = fmt.Sprintf("%s/%s", defaultRegistry, image) diff --git a/main.go b/main.go index 35d11e74..6b7abb92 100644 --- a/main.go +++ b/main.go @@ -91,11 +91,6 @@ func main() { Value: 0, Usage: "Automatically add an offset (* worker number) to the chosen host port when using `--publish` to map the same container-port from multiple k3d workers to the host", }, - cli.StringFlag{ - // TODO: to be deprecated - Name: "version", - Usage: "Choose the k3s image version", - }, cli.StringFlag{ // TODO: only --api-port, -a soon since we want to use --port, -p for the --publish/--add-port functionality Name: "api-port, a, port, p",