Skip to content

Commit

Permalink
pkg/cluster/executors: Remove temporary Kubespray patch
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Apr 6, 2024
1 parent 11ccaf8 commit 7180075
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/cluster/executors/kubespray/kubespray.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/MusicDin/kubitect/pkg/tools/git"
"github.com/MusicDin/kubitect/pkg/tools/virtualenv"
"github.com/MusicDin/kubitect/pkg/ui"
"github.com/MusicDin/kubitect/pkg/utils/file"
"gopkg.in/yaml.v3"
)

Expand Down Expand Up @@ -83,14 +82,6 @@ func (e *kubespray) Init() error {
return err
}

// Patch: There is an issue with unsafe conditionals in
// Kubespray with ansible-core version > 2.14.11.
reqPath := path.Join(dst, "requirements.txt")
reqPatch := []byte("ansible-core==2.14.11")
if err := file.Append(reqPath, reqPatch); err != nil {
return err
}

if err := e.VirtualEnv.Init(); err != nil {
return fmt.Errorf("kubespray exec: initialize virtual environment: %v", err)
}
Expand Down

0 comments on commit 7180075

Please sign in to comment.