Skip to content

Commit

Permalink
chore: drop calico from interactive installer
Browse files Browse the repository at this point in the history
Drop calico from interactive installer.

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed Aug 28, 2024
1 parent 106c17d commit 88601bf
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions internal/pkg/tui/installer/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ import (
"github.com/siderolabs/talos/pkg/machinery/nethelpers"
)

const canalCustomCNI = "canal"

var customCNIPresets = map[string][]string{
canalCustomCNI: {
"https://docs.projectcalico.org/archive/v3.20/manifests/canal.yaml",
},
}

// NewState creates new installer state.
//
//nolint:gocyclo
Expand Down Expand Up @@ -154,7 +146,6 @@ func NewState(ctx context.Context, installer *Installer, conn *Connection) (*Sta
&state.cni,
components.NewTableHeaders("CNI", "description"),
constants.FlannelCNI, "CNI used by Talos by default",
canalCustomCNI, "Canal v3.20",
constants.NoneCNI, "CNI will not be installed",
))
}
Expand Down Expand Up @@ -226,11 +217,6 @@ func (s *State) GenConfig() (*machineapi.GenerateConfigurationResponse, error) {
Name: s.cni,
}

if urls, ok := customCNIPresets[s.cni]; ok {
cniConfig.Name = constants.CustomCNI
cniConfig.Urls = urls
}

s.opts.ClusterConfig.ClusterNetwork.CniConfig = cniConfig

s.opts.OverrideTime = timestamppb.New(time.Now().UTC())
Expand Down

0 comments on commit 88601bf

Please sign in to comment.