Skip to content

Commit

Permalink
Replace datastore endpoint override with cluster-init
Browse files Browse the repository at this point in the history
Ref: k3s-io/k3s#8392
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
brandond committed Sep 21, 2023
1 parent 043a4c2 commit a4038b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/cmds/etcd_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
const defaultSnapshotRentention = 5

func NewEtcdSnapshotCommand() cli.Command {
cmds.ServerConfig.DatastoreEndpoint = "etcd"
cmds.ServerConfig.ClusterInit = true
k3sOpts := K3SFlagSet{
"config": copyFlag,
"debug": copyFlag,
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func Set(_ *cli.Context, dataDir string) error {
return errors.Wrapf(err, "failed to create directory %s", logsDir)
}

cmds.ServerConfig.DatastoreEndpoint = "etcd"
cmds.ServerConfig.ClusterInit = true
cmds.ServerConfig.DisableNPC = true
cmds.ServerConfig.FlannelBackend = "none"
cmds.ServerConfig.AdvertisePort = 6443
Expand Down

0 comments on commit a4038b2

Please sign in to comment.