From c7e7f5ceef6ebb4722a4b8327bca741209efc3e9 Mon Sep 17 00:00:00 2001 From: DrummyFloyd Date: Thu, 25 Jan 2024 00:54:13 +0100 Subject: [PATCH] feat: add --tls-san default when servers-public-ips Signed-off-by: DrummyFloyd --- cmd/k3s/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/k3s/command.go b/cmd/k3s/command.go index c78e8ffaf..6e198f700 100644 --- a/cmd/k3s/command.go +++ b/cmd/k3s/command.go @@ -89,7 +89,7 @@ func Create() *cobra.Command { createCmd.Flags().StringSliceVar(&k3sServersPrivateIpsFlag, "servers-private-ips", []string{}, "the list of k3s (servers) private ip x.x.x.x,y.y.y.y comma separated (required)") createCmd.MarkFlagRequired("servers-private-ips") createCmd.Flags().StringSliceVar(&k3sServersPublicIpsFlag, "servers-public-ips", []string{}, "the list of k3s (servers) public ip x.x.x.x,y.y.y.y comma separated (required)") - createCmd.Flags().StringSliceVar(&K3sServersArgsFlags, "servers-args", []string{"--disable traefik", "--write-kubeconfig-mode 644"}, "list of k3s extras flags to add to the k3s server installation,comma separated in between quote") + createCmd.Flags().StringSliceVar(&K3sServersArgsFlags, "servers-args", []string{"--disable traefik", "--write-kubeconfig-mode 644"}, "list of k3s extras args to add to the k3s server installation,comma separated in between quote, if --servers-publis-ips --tls-san is added to default --servers-args") createCmd.Flags().StringVar(&k3sSshUserflag, "ssh-user", "root", "the user used to log into servers with ssh connection") createCmd.Flags().StringVar(&k3sSshPrivateKeyflag, "ssh-privatekey", "", "the private key used to log into servers with ssh connection") createCmd.MarkFlagRequired("ssh-privatekey")