Skip to content

Commit 36b6bd4

Browse files
committed
feat: Remove outdated Calico extension
Signed-off-by: Devon Crouse <[email protected]>
1 parent dd162f3 commit 36b6bd4

18 files changed

+7
-705
lines changed

docs/src/dependencies.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
|------|--------|---------|
2525
| <a name="module_bastion"></a> [bastion](#module\_bastion) | ./modules/bastion | n/a |
2626
| <a name="module_cluster"></a> [cluster](#module\_cluster) | ./modules/cluster | n/a |
27-
| <a name="module_drg"></a> [drg](#module\_drg) | oracle-terraform-modules/drg/oci | 1.0.3 |
2827
| <a name="module_extensions"></a> [extensions](#module\_extensions) | ./modules/extensions | n/a |
2928
| <a name="module_iam"></a> [iam](#module\_iam) | ./modules/iam | n/a |
3029
| <a name="module_network"></a> [network](#module\_network) | ./modules/network | n/a |

docs/src/guide/extensions_networking.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,6 @@
1616

1717
****
1818

19-
## Calico CNI
20-
21-
### Usage
22-
```javascript
23-
{{#include ../../../examples/extensions/vars-extensions-calico.auto.tfvars:4:}}
24-
```
25-
26-
### References
27-
* [System requirements](https://docs.tigera.io/calico/latest/getting-started/openstack/requirements)
28-
* [Overlay networks](https://docs.tigera.io/calico/latest/networking/determine-best-networking#overlay-networks)
29-
* [Installing Calico and Setting Up Network Policies](https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengsettingupcalico.htm)
30-
31-
****
32-
3319
## Cilium CNI
3420

3521
### Usage

docs/src/inputs_root.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ The module supports the following configuration for created resources:
1919
| <a name="input_assign_dns"></a> [assign\_dns](#input\_assign\_dns)| Whether to assign DNS records to created instances or disable DNS resolution of hostnames in the VCN.| bool| true| no|
2020
| <a name="input_bastion_is_public"></a> [bastion\_is\_public](#input\_bastion\_is\_public)| Whether to create allocate a public IP and subnet for the created bastion host.| bool| true| no|
2121
| <a name="input_bastion_upgrade"></a> [bastion\_upgrade](#input\_bastion\_upgrade)| Whether to upgrade bastion packages after provisioning.| bool| false| no|
22-
| <a name="input_calico_apiserver_install"></a> [calico\_apiserver\_install](#input\_calico\_apiserver\_install)| Whether to enable the Calico apiserver.| bool| false| no|
23-
| <a name="input_calico_install"></a> [calico\_install](#input\_calico\_install)| Whether to install calico for network pod security policy. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk.| bool| false| no|
24-
| <a name="input_calico_typha_install"></a> [calico\_typha\_install](#input\_calico\_typha\_install)| Whether to enable Typha (automatically enabled for > 50 nodes).| bool| false| no|
2522
| <a name="input_cluster_autoscaler_install"></a> [cluster\_autoscaler\_install](#input\_cluster\_autoscaler\_install)| Whether to deploy the Kubernetes Cluster Autoscaler Helm chart. See <a href=https://github.com/kubernetes/autoscaler>kubernetes/autoscaler</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk.| bool| false| no|
2623
| <a name="input_control_plane_is_public"></a> [control\_plane\_is\_public](#input\_control\_plane\_is\_public)| Whether the Kubernetes control plane endpoint should be allocated a public IP address to enable access over public internet.| bool| false| no|
2724
| <a name="input_create_bastion"></a> [create\_bastion](#input\_create\_bastion)| Whether to create a bastion host.| bool| true| no|
@@ -55,6 +52,8 @@ The module supports the following configuration for created resources:
5552
| <a name="input_use_signed_images"></a> [use\_signed\_images](#input\_use\_signed\_images)| Whether to enforce the use of signed images. If set to true, at least 1 RSA key must be provided through image\_signing\_keys.| bool| false| no|
5653
| <a name="input_whereabouts_install"></a> [whereabouts\_install](#input\_whereabouts\_install)| Whether to deploy the MPI Operator. See <a href=https://github.com/k8snetworkplumbingwg/whereabouts>k8snetworkplumbingwg/whereabouts</a>. NOTE: Provided only as a convenience and not supported by or sourced from Oracle - use at your own risk.| bool| false| no|
5754
| <a name="input_worker_disable_default_cloud_init"></a> [worker\_disable\_default\_cloud\_init](#input\_worker\_disable\_default\_cloud\_init)| Whether to disable the default OKE cloud init and only use the cloud init explicitly passed to the worker pool in 'worker\_cloud\_init'.| bool| false| no|
55+
| <a name="input_worker_drain_delete_local_data"></a> [worker\_drain\_delete\_local\_data](#input\_worker\_drain\_delete\_local\_data)| Whether to accept removal of data stored locally on draining worker pools. See <a href=https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#drain>kubectl drain</a> for more information.| bool| true| no|
56+
| <a name="input_worker_drain_ignore_daemonsets"></a> [worker\_drain\_ignore\_daemonsets](#input\_worker\_drain\_ignore\_daemonsets)| Whether to ignore DaemonSet-managed Pods when draining worker pools. See <a href=https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#drain>kubectl drain</a> for more information.| bool| true| no|
5857
| <a name="input_worker_is_public"></a> [worker\_is\_public](#input\_worker\_is\_public)| Whether to provision workers with public IPs allocated by default when unspecified on a pool.| bool| false| no|
5958
| <a name="input_worker_pv_transit_encryption"></a> [worker\_pv\_transit\_encryption](#input\_worker\_pv\_transit\_encryption)| Whether to enable in-transit encryption for the data volume's paravirtualized attachment by default when unspecified on a pool.| bool| false| no|
6059
| <a name="input_internet_gateway_route_rules"></a> [internet\_gateway\_route\_rules](#input\_internet\_gateway\_route\_rules)| (Updatable) List of routing rules to add to Internet Gateway Route Table.| list(map(string))| null| no|
@@ -103,9 +102,8 @@ The module supports the following configuration for created resources:
103102
| <a name="input_worker_node_metadata"></a> [worker\_node\_metadata](#input\_worker\_node\_metadata)| Map of additional worker node instance metadata. Merged with metadata defined on each pool.| map(string)| {}| no|
104103
| <a name="input_workers_defined_tags"></a> [workers\_defined\_tags](#input\_workers\_defined\_tags)| Defined tags applied to created resources.| map(string)| {}| no|
105104
| <a name="input_workers_freeform_tags"></a> [workers\_freeform\_tags](#input\_workers\_freeform\_tags)| Freeform tags applied to created resources.| map(string)| {}| no|
106-
| <a name="input_calico_mtu"></a> [calico\_mtu](#input\_calico\_mtu)| Interface MTU for Calico device(s) (0 = auto).| number| 0| no|
107-
| <a name="input_calico_typha_replicas"></a> [calico\_typha\_replicas](#input\_calico\_typha\_replicas)| The number of replicas for the Typha deployment (0 = auto).| number| 0| no|
108105
| <a name="input_max_pods_per_node"></a> [max\_pods\_per\_node](#input\_max\_pods\_per\_node)| The default maximum number of pods to deploy per node when unspecified on a pool. Absolute maximum is 110. Ignored when when cni\_type != 'npn'.| number| 31| no|
106+
| <a name="input_worker_drain_timeout_seconds"></a> [worker\_drain\_timeout\_seconds](#input\_worker\_drain\_timeout\_seconds)| The length of time to wait before giving up on draining nodes in a pool. See <a href=https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#drain>kubectl drain</a> for more information.| number| 900| no|
109107
| <a name="input_worker_pool_size"></a> [worker\_pool\_size](#input\_worker\_pool\_size)| Default size for worker pools when unspecified on a pool.| number| 0| no|
110108
| <a name="input_platform_config"></a> [platform\_config](#input\_platform\_config)| Default platform\_config for self-managed worker pools created with mode: 'instance', 'instance-pool', or 'cluster-network'. See <a href=https://docs.oracle.com/en-us/iaas/api/#/en/iaas/20160918/datatypes/PlatformConfig>PlatformConfig</a> for more information.| object({<br> type = optional(string),<br> are\_virtual\_instructions\_enabled = optional(bool),<br> is\_access\_control\_service\_enabled = optional(bool),<br> is\_input\_output\_memory\_management\_unit\_enabled = optional(bool),<br> is\_measured\_boot\_enabled = optional(bool),<br> is\_memory\_encryption\_enabled = optional(bool),<br> is\_secure\_boot\_enabled = optional(bool),<br> is\_symmetric\_multi\_threading\_enabled = optional(bool),<br> is\_trusted\_platform\_module\_enabled = optional(bool),<br> numa\_nodes\_per\_socket = optional(number),<br> percentage\_of\_cores\_enabled = optional(bool),<br> })| null| no|
111109
| <a name="input_control_plane_nsg_ids"></a> [control\_plane\_nsg\_ids](#input\_control\_plane\_nsg\_ids)| An additional list of network security groups (NSG) ids for the cluster endpoint.| set(string)| []| no|
@@ -122,10 +120,6 @@ The module supports the following configuration for created resources:
122120
| <a name="input_bastion_image_type"></a> [bastion\_image\_type](#input\_bastion\_image\_type)| Whether to use a platform or custom image for the created bastion instance. When custom is set, the bastion\_image\_id must be specified.| string| "platform"| no|
123121
| <a name="input_bastion_public_ip"></a> [bastion\_public\_ip](#input\_bastion\_public\_ip)| The IP address of an existing bastion host, if create\_bastion = false.| string| null| no|
124122
| <a name="input_bastion_user"></a> [bastion\_user](#input\_bastion\_user)| User for SSH access through bastion host.| string| "opc"| no|
125-
| <a name="input_calico_mode"></a> [calico\_mode](#input\_calico\_mode)| The type of Calico manifest to install. The default of 'policy-only' is recommended.| string| "policy-only"| no|
126-
| <a name="input_calico_staging_dir"></a> [calico\_staging\_dir](#input\_calico\_staging\_dir)| Directory on the operator instance to stage Calico install files.| string| "/tmp/calico\_install"| no|
127-
| <a name="input_calico_url"></a> [calico\_url](#input\_calico\_url)| Optionally override the Calico manifest URL (empty string = auto).| string| ""| no|
128-
| <a name="input_calico_version"></a> [calico\_version](#input\_calico\_version)| The version of Calico to install.| string| "3.24.1"| no|
129123
| <a name="input_cluster_autoscaler_helm_version"></a> [cluster\_autoscaler\_helm\_version](#input\_cluster\_autoscaler\_helm\_version)| Version of the Helm chart to install. List available releases using `helm search repo [keyword] --versions`.| string| "9.24.0"| no|
130124
| <a name="input_cluster_autoscaler_namespace"></a> [cluster\_autoscaler\_namespace](#input\_cluster\_autoscaler\_namespace)| Kubernetes namespace for deployed resources.| string| "kube-system"| no|
131125
| <a name="input_cluster_ca_cert"></a> [cluster\_ca\_cert](#input\_cluster\_ca\_cert)| Base64+PEM-encoded cluster CA certificate for unmanaged instance pools. Determined automatically when 'create\_cluster' = true or 'cluster\_id' is provided.| string| null| no|

docs/src/outputs.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@
6060
<!-- BEGIN_TF_WORKERS -->
6161

6262
* **`worker_count_expected`**&nbsp;&nbsp; # of nodes expected from created worker pools
63-
* **`worker_instance_ids`**&nbsp;&nbsp; Created worker instance IDs (mode == 'instance'). Excludes pool-managed instances.
63+
* **`worker_drain_expected`**&nbsp;&nbsp; # of nodes expected to be draining in worker pools
64+
* **`worker_instances`**&nbsp;&nbsp; Created worker pools (mode == 'instance')
6465
* **`worker_pool_ids`**&nbsp;&nbsp; Created worker pool IDs
65-
* **`worker_pools`**&nbsp;&nbsp; Created worker pools
66+
* **`worker_pool_ips`**&nbsp;&nbsp; Created worker instance private IPs by pool for available modes ('node-pool', 'instance').
67+
* **`worker_pools`**&nbsp;&nbsp; Created worker pools (mode != 'instance')
6668

6769
<!-- END_TF_WORKERS -->
6870

examples/rms/oke-cluster-only/main.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,6 @@ module "oke" {
7979
services_cidr = var.services_cidr
8080
use_signed_images = var.use_signed_images
8181

82-
# CNI: Calico
83-
calico_install = var.calico_install
84-
calico_apiserver_install = var.calico_apiserver_install
85-
calico_mode = var.calico_mode
86-
calico_mtu = var.calico_mtu
87-
calico_staging_dir = var.calico_staging_dir
88-
calico_typha_install = var.calico_typha_install
89-
calico_typha_replicas = var.calico_typha_replicas
90-
calico_url = var.calico_url
91-
calico_version = var.calico_version
92-
9382
# CNI: Cilium
9483
cilium_install = var.cilium_install
9584
cilium_reapply = var.cilium_reapply

examples/rms/oke-cluster-only/schema.yaml

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ variableGroups:
2020
- timezone
2121
- subnets
2222
- await_node_readiness
23-
- calico_helm_values
24-
- calico_helm_values_files
2523

2624
- title: "Identity"
2725
variables:
@@ -117,7 +115,6 @@ variableGroups:
117115
- dcgm_exporter_install
118116
- gatekeeper_install
119117
- multus_install
120-
- calico_install
121118
- cilium_install
122119
- whereabouts_install
123120
- sriov_device_plugin_install
@@ -175,18 +172,6 @@ variableGroups:
175172
- multus_daemonset_url
176173
- multus_version
177174

178-
- title: "Calico"
179-
visible: calico_install
180-
variables:
181-
- calico_namespace
182-
- calico_reapply
183-
- calico_apiserver_install
184-
- calico_version
185-
- calico_url
186-
- calico_typha_replicas
187-
- calico_mtu
188-
- calico_helm_version
189-
190175
- title: "Cilium"
191176
visible: cilium_install
192177
variables:
@@ -724,44 +709,6 @@ variables:
724709
dependsOn:
725710
compartmentId: ${compartment_ocid}
726711

727-
# CNI: Calico
728-
calico_install:
729-
title: Install Calico
730-
description: Deploy Calico with Oracle Cloud configuration. See <a href=https://docs.tigera.io/calico/latest/getting-started>Install Calico</a> for more information.
731-
type: boolean
732-
default: false
733-
required: true
734-
calico_namespace:
735-
title: Kubernetes namespace
736-
type: string
737-
calico_reapply:
738-
title: Re-apply
739-
type: boolean
740-
default: false
741-
required: true
742-
calico_apiserver_install:
743-
title: Install Calico API Server
744-
type: boolean
745-
default: false
746-
required: true
747-
calico_mode:
748-
visible: false
749-
calico_staging_dir:
750-
visible: false
751-
calico_typha_install:
752-
title: Install Typha
753-
visible: ${calico_install}
754-
calico_helm_version:
755-
visible: false
756-
calico_mtu:
757-
visible: false
758-
calico_typha_replicas:
759-
visible: false
760-
calico_url:
761-
visible: false
762-
calico_version:
763-
visible: false
764-
765712
# Metrics server
766713
metrics_server_install:
767714
title: Install Metrics Server

examples/rms/oke-cluster-only/variables-extensions.tf

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
# Copyright (c) 2023 Oracle Corporation and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
33

4-
# CNI: Calico
5-
6-
variable "calico_install" { default = false }
7-
variable "calico_reapply" { default = false }
8-
variable "calico_version" { default = "3.24.1" }
9-
variable "calico_mode" { default = "policy-only" }
10-
variable "calico_mtu" { default = 0 }
11-
variable "calico_url" { default = "" }
12-
variable "calico_apiserver_install" { default = false }
13-
variable "calico_typha_install" { default = false }
14-
variable "calico_typha_replicas" { default = 0 }
15-
variable "calico_staging_dir" { default = "/tmp/calico_install" }
16-
variable "calico_namespace" { default = "network" }
17-
variable "calico_helm_version" { default = "3.25.0" }
18-
194
# CNI: Multus
205

216
variable "multus_install" { default = false }

module-extensions.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@ module "extensions" {
2424
cni_type = var.cni_type
2525
pods_cidr = var.pods_cidr
2626

27-
# CNI: Calico
28-
calico_install = var.calico_install
29-
calico_apiserver_install = var.calico_apiserver_install
30-
calico_mode = var.calico_mode
31-
calico_mtu = var.calico_mtu
32-
calico_staging_dir = var.calico_staging_dir
33-
calico_typha_install = var.calico_typha_install
34-
calico_typha_replicas = var.calico_typha_replicas
35-
calico_url = var.calico_url
36-
calico_version = var.calico_version
37-
3827
# CNI: Multus
3928
multus_install = var.multus_install
4029
multus_namespace = var.multus_namespace

modules/extensions/calico.tf

Lines changed: 0 additions & 72 deletions
This file was deleted.

modules/extensions/resources/calico/calico-node-env-flannel.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)