chore: drop calico from interactive installer
Drop calico from interactive installer. Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
parent
106c17d0b5
commit
88601bff4e
@ -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
|
||||
@ -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",
|
||||
))
|
||||
}
|
||||
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user