From 718007559cac10c7046f4195cfbe577052faf4d4 Mon Sep 17 00:00:00 2001 From: Din Music Date: Sat, 6 Apr 2024 20:23:53 +0200 Subject: [PATCH] pkg/cluster/executors: Remove temporary Kubespray patch Signed-off-by: Din Music --- pkg/cluster/executors/kubespray/kubespray.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/cluster/executors/kubespray/kubespray.go b/pkg/cluster/executors/kubespray/kubespray.go index 3f83cb81..7e288224 100644 --- a/pkg/cluster/executors/kubespray/kubespray.go +++ b/pkg/cluster/executors/kubespray/kubespray.go @@ -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" ) @@ -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) }