@@ -43,16 +43,16 @@ const (
43
43
)
44
44
45
45
// EnsureCNI installs the CNI plugin depending on the input.CNIManifestPath
46
- func EnsureCNI (ctx context.Context , input clusterctl.ApplyCustomClusterTemplateAndWaitInput , installHelmChart bool , cidrBlocks []string , hasWindows bool ) {
46
+ func EnsureCNI (ctx context.Context , input clusterctl.ApplyCustomClusterTemplateAndWaitInput , installHelmChart bool , cidrBlocks []string ) {
47
47
if input .CNIManifestPath != "" {
48
- InstallCNIManifest (ctx , input , cidrBlocks , hasWindows )
48
+ InstallCNIManifest (ctx , input , cidrBlocks )
49
49
} else {
50
- EnsureCalicoIsReady (ctx , input , installHelmChart , cidrBlocks , hasWindows )
50
+ EnsureCalicoIsReady (ctx , input , installHelmChart , cidrBlocks )
51
51
}
52
52
}
53
53
54
54
// InstallCNIManifest installs the CNI manifest provided by the user
55
- func InstallCNIManifest (ctx context.Context , input clusterctl.ApplyCustomClusterTemplateAndWaitInput , cidrBlocks []string , hasWindows bool ) { //nolint:revive // leaving unused cidrBlocks and hasWindows for understanding
55
+ func InstallCNIManifest (ctx context.Context , input clusterctl.ApplyCustomClusterTemplateAndWaitInput , cidrBlocks []string ) { //nolint:revive // leaving unused cidrBlocks
56
56
By ("Installing a CNI plugin to the workload cluster" )
57
57
workloadCluster := input .ClusterProxy .GetWorkloadCluster (ctx , input .Namespace , input .ClusterName )
58
58
@@ -63,7 +63,7 @@ func InstallCNIManifest(ctx context.Context, input clusterctl.ApplyCustomCluster
63
63
}
64
64
65
65
// EnsureCalicoIsReady copies the kubeadm configmap to the calico-system namespace and waits for the calico pods to be ready.
66
- func EnsureCalicoIsReady (ctx context.Context , input clusterctl.ApplyCustomClusterTemplateAndWaitInput , installHelmChart bool , cidrBlocks []string , hasWindows bool ) {
66
+ func EnsureCalicoIsReady (ctx context.Context , input clusterctl.ApplyCustomClusterTemplateAndWaitInput , installHelmChart bool , cidrBlocks []string ) {
67
67
specName := "ensure-calico"
68
68
69
69
clusterProxy := input .ClusterProxy .GetWorkloadCluster (ctx , input .Namespace , input .ClusterName )
0 commit comments