Skip to content

Commit

Permalink
k3s: Fix server startup in HA mode (#197)
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin authored Apr 21, 2024
1 parent 3cfdac5 commit 5acfce2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions pkg/cluster/managers/k3s.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ func (e *k3s) Init() error {
}

// Clone repository with k3s playbooks.
url := env.ConstK3sURL
commitHash := env.ConstK3sVersion
err = git.NewGitRepo(url).WithCommitHash(commitHash).Clone(e.ProjectDir)
err = git.NewGitRepo(env.ConstK3sURL).WithRef(env.ConstK3sVersion).Clone(e.ProjectDir)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/env/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package env
const (
ConstProjectUrl = "https://github.com/MusicDin/kubitect"
ConstProjectVersion = "v3.3.1"
ConstK3sURL = "https://github.com/k3s-io/k3s-ansible"
ConstK3sVersion = "7ec16a8d53363ace979e5585323311ab1bd1641d" // K3s has no tags, therefore use specific commit hash.
ConstK3sURL = "https://github.com/MusicDin/k3s-ansible"
ConstK3sVersion = "v0.0.1"
ConstKubesprayUrl = "https://github.com/kubernetes-sigs/kubespray"
ConstKubesprayVersion = "v2.24.1"
ConstKubernetesVersion = "v1.28.6"
Expand Down

0 comments on commit 5acfce2

Please sign in to comment.