Skip to content

Commit

Permalink
Bump the default k3s version from to rancher/k3s:v1.19.14-k3s1 (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen authored Sep 11, 2021
1 parent e5b37ce commit a23ec63
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kubectl-plugin/install/k3d.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You can get more details from https://github.com/rancher/k3d/`,
"Specify how many agents you want to create")
flags.IntVarP(&opt.servers, "servers", "", 1,
"Specify how many servers you want to create")
flags.StringVarP(&opt.image, "image", "", "rancher/k3s:v1.18.20-k3s1",
flags.StringVarP(&opt.image, "image", "", "rancher/k3s:v1.19.14-k3s1",
"The image of k3s, get more images from https://hub.docker.com/r/rancher/k3s/tags")
flags.StringVarP(&opt.registry, "registry", "r", "registry",
"Connect to one or more k3d-managed registries running locally")
Expand All @@ -48,6 +48,11 @@ You can get more details from https://github.com/rancher/k3d/`,
"The components that you want to Enabled with KubeSphere")
flags.BoolVarP(&opt.fetch, "fetch", "", true,
"Indicate if fetch the latest config of tools")

// completion for flags
_ = cmd.RegisterFlagCompletionFunc("image", common.ArrayCompletion("rancher/k3s:v1.19.14-k3s1",
"rancher/k3s:v1.20.10-k3s1",
"rancher/k3s:v1.21.4-k3s1"))
return
}

Expand Down

0 comments on commit a23ec63

Please sign in to comment.