Skip to content

Commit c26eb31

Browse files
authored
feat: bump provider to v2 (#6)
Signed-off-by: Kevin Lefevre <[email protected]>
1 parent 9aef349 commit c26eb31

File tree

5 files changed

+35
-56
lines changed

5 files changed

+35
-56
lines changed

README.md

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,61 +10,59 @@ A terraform module to create a managed Kubernetes cluster on Scaleway Element.
1010

1111
| Name | Version |
1212
|------|---------|
13-
| terraform | >= 0.13 |
14-
| scaleway | 2.0.0-rc.2 |
13+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
14+
| <a name="requirement_scaleway"></a> [scaleway](#requirement\_scaleway) | ~> 2.0 |
1515

1616
## Providers
1717

1818
| Name | Version |
1919
|------|---------|
20-
| scaleway | 2.0.0-rc.2 |
20+
| <a name="provider_scaleway"></a> [scaleway](#provider\_scaleway) | ~> 2.0 |
2121

2222
## Modules
2323

24-
No Modules.
24+
No modules.
2525

2626
## Resources
2727

28-
| Name |
29-
|------|
30-
| [scaleway_k8s_cluster](https://registry.terraform.io/providers/scaleway/scaleway/2.0.0-rc.2/docs/resources/k8s_cluster) |
31-
| [scaleway_k8s_pool](https://registry.terraform.io/providers/scaleway/scaleway/2.0.0-rc.2/docs/resources/k8s_pool) |
28+
| Name | Type |
29+
|------|------|
30+
| [scaleway_k8s_cluster.this](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/k8s_cluster) | resource |
31+
| [scaleway_k8s_pool.this](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/k8s_pool) | resource |
3232

3333
## Inputs
3434

3535
| Name | Description | Type | Default | Required |
3636
|------|-------------|------|---------|:--------:|
37-
| admission\_plugins | The list of admission plugins to enable on the cluster. | `list` | `[]` | no |
38-
| apiserver\_cert\_sans | Additional Subject Alternative Names for the Kubernetes API server certificate | `any` | `null` | no |
39-
| auto\_upgrade | The auto upgrade configuration. | <pre>object({<br> enable = bool<br> maintenance_window_start_hour = number<br> maintenance_window_day = string<br> })</pre> | `null` | no |
40-
| autoscaler\_config | The configuration options for the Kubernetes cluster autoscaler. | <pre>object({<br> enabled = bool<br> disable_scale_down = bool<br> scale_down_delay_after_add = string<br> scale_down_unneeded_time = string<br> estimator = string<br> expander = string<br> ignore_daemonsets_utilization = bool<br> balance_similar_node_groups = bool<br> expendable_pods_priority_cutoff = number<br> scale_down_utilization_threshold = number<br> max_graceful_termination_sec = number<br> })</pre> | `null` | no |
41-
| cluster\_description | A description for the Kubernetes cluster. | `any` | n/a | yes |
42-
| cluster\_name | The name for the Kubernetes cluster. | `any` | n/a | yes |
43-
| cluster\_tags | The tags associated with the Kubernetes cluster. | `list` | `[]` | no |
44-
| cni\_plugin | The Container Network Interface (CNI) for the Kubernetes cluster. | `string` | `"cilium"` | no |
45-
| delete\_additional\_resources | Delete additional resources like block volumes and loadbalancers that were created in Kubernetes on cluster deletion. | `bool` | `false` | no |
46-
| enable\_dashboard | Enables the Kubernetes dashboard for the Kubernetes cluster. | `bool` | `false` | no |
47-
| feature\_gates | The list of feature gates to enable on the cluster. | `list` | `[]` | no |
48-
| ingress\_controller | The ingress controller to be deployed on the Kubernetes cluster. | `string` | `"none"` | no |
49-
| kubernetes\_version | The version of the Kubernetes cluster. | `string` | `"1.20.4"` | no |
50-
| node\_pools | Creates and manages Scaleway Kubernetes cluster pools. | `any` | `{}` | no |
51-
| node\_pools\_defaults | Default configuration for Kubernetes cluster pools. | `map(any)` | `{}` | no |
52-
| open\_id\_connect\_config | The OpenID Connect configuration of the cluster | <pre>object({<br> enabled = bool<br> issuer_url = string<br> client_id = string<br> username_claim = string<br> username_prefix = string<br> groups_claim = list(string)<br> groups_prefix = string<br> required_claim = list(string)<br> })</pre> | `null` | no |
53-
| project\_id | (Defaults to provider project\_id) The ID of the project the cluster is associated with. | `any` | `null` | no |
54-
| region | (Defaults to provider region) The region in which the cluster should be created. | `any` | `null` | no |
55-
| tags | Tags applied to all ressources. | `list` | `[]` | no |
37+
| <a name="input_admission_plugins"></a> [admission\_plugins](#input\_admission\_plugins) | The list of admission plugins to enable on the cluster. | `list` | `[]` | no |
38+
| <a name="input_apiserver_cert_sans"></a> [apiserver\_cert\_sans](#input\_apiserver\_cert\_sans) | Additional Subject Alternative Names for the Kubernetes API server certificate | `any` | `null` | no |
39+
| <a name="input_auto_upgrade"></a> [auto\_upgrade](#input\_auto\_upgrade) | The auto upgrade configuration. | <pre>object({<br> enable = bool<br> maintenance_window_start_hour = number<br> maintenance_window_day = string<br> })</pre> | `null` | no |
40+
| <a name="input_autoscaler_config"></a> [autoscaler\_config](#input\_autoscaler\_config) | The configuration options for the Kubernetes cluster autoscaler. | <pre>object({<br> enabled = bool<br> disable_scale_down = bool<br> scale_down_delay_after_add = string<br> scale_down_unneeded_time = string<br> estimator = string<br> expander = string<br> ignore_daemonsets_utilization = bool<br> balance_similar_node_groups = bool<br> expendable_pods_priority_cutoff = number<br> scale_down_utilization_threshold = number<br> max_graceful_termination_sec = number<br> })</pre> | `null` | no |
41+
| <a name="input_cluster_description"></a> [cluster\_description](#input\_cluster\_description) | A description for the Kubernetes cluster. | `any` | n/a | yes |
42+
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | The name for the Kubernetes cluster. | `any` | n/a | yes |
43+
| <a name="input_cluster_tags"></a> [cluster\_tags](#input\_cluster\_tags) | The tags associated with the Kubernetes cluster. | `list` | `[]` | no |
44+
| <a name="input_cni_plugin"></a> [cni\_plugin](#input\_cni\_plugin) | The Container Network Interface (CNI) for the Kubernetes cluster. | `string` | `"cilium"` | no |
45+
| <a name="input_delete_additional_resources"></a> [delete\_additional\_resources](#input\_delete\_additional\_resources) | Delete additional resources like block volumes and loadbalancers that were created in Kubernetes on cluster deletion. | `bool` | `false` | no |
46+
| <a name="input_feature_gates"></a> [feature\_gates](#input\_feature\_gates) | The list of feature gates to enable on the cluster. | `list` | `[]` | no |
47+
| <a name="input_kubernetes_version"></a> [kubernetes\_version](#input\_kubernetes\_version) | The version of the Kubernetes cluster. | `string` | `"1.20.4"` | no |
48+
| <a name="input_node_pools"></a> [node\_pools](#input\_node\_pools) | Creates and manages Scaleway Kubernetes cluster pools. | `any` | `{}` | no |
49+
| <a name="input_node_pools_defaults"></a> [node\_pools\_defaults](#input\_node\_pools\_defaults) | Default configuration for Kubernetes cluster pools. | `map(any)` | `{}` | no |
50+
| <a name="input_open_id_connect_config"></a> [open\_id\_connect\_config](#input\_open\_id\_connect\_config) | The OpenID Connect configuration of the cluster | <pre>object({<br> enabled = bool<br> issuer_url = string<br> client_id = string<br> username_claim = string<br> username_prefix = string<br> groups_claim = list(string)<br> groups_prefix = string<br> required_claim = list(string)<br> })</pre> | `null` | no |
51+
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | (Defaults to provider project\_id) The ID of the project the cluster is associated with. | `any` | `null` | no |
52+
| <a name="input_region"></a> [region](#input\_region) | (Defaults to provider region) The region in which the cluster should be created. | `any` | `null` | no |
53+
| <a name="input_tags"></a> [tags](#input\_tags) | Tags applied to all ressources. | `list` | `[]` | no |
5654

5755
## Outputs
5856

5957
| Name | Description |
6058
|------|-------------|
61-
| apiserver\_url | The URL of the Kubernetes API server. |
62-
| created\_at | The creation date of the cluster. |
63-
| id | The ID of the cluster. |
64-
| kubeconfig | The Kubernetes configuration. |
65-
| node\_pools | Node Pools configuration and status. |
66-
| status | The status of the Kubernetes cluster. |
67-
| updated\_at | The last update date of the cluster. |
68-
| upgrade\_available | Set to `true` if a newer Kubernetes version is available. |
69-
| wildcard\_dns | The DNS wildcard that points to all ready nodes. |
59+
| <a name="output_apiserver_url"></a> [apiserver\_url](#output\_apiserver\_url) | The URL of the Kubernetes API server. |
60+
| <a name="output_created_at"></a> [created\_at](#output\_created\_at) | The creation date of the cluster. |
61+
| <a name="output_id"></a> [id](#output\_id) | The ID of the cluster. |
62+
| <a name="output_kubeconfig"></a> [kubeconfig](#output\_kubeconfig) | The Kubernetes configuration. |
63+
| <a name="output_node_pools"></a> [node\_pools](#output\_node\_pools) | Node Pools configuration and status. |
64+
| <a name="output_status"></a> [status](#output\_status) | The status of the Kubernetes cluster. |
65+
| <a name="output_updated_at"></a> [updated\_at](#output\_updated\_at) | The last update date of the cluster. |
66+
| <a name="output_upgrade_available"></a> [upgrade\_available](#output\_upgrade\_available) | Set to `true` if a newer Kubernetes version is available. |
67+
| <a name="output_wildcard_dns"></a> [wildcard\_dns](#output\_wildcard\_dns) | The DNS wildcard that points to all ready nodes. |
7068
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

cluster.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ resource "scaleway_k8s_cluster" "this" {
44
project_id = local.project_id
55
version = local.kubernetes_version
66
cni = local.cni_plugin
7-
enable_dashboard = local.enable_dashboard
8-
ingress = local.ingress_controller
97
tags = distinct(compact(concat(local.cluster_tags, local.tags)))
108
delete_additional_resources = local.delete_additional_resources
119

locals.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ locals {
55
kubernetes_version = var.kubernetes_version
66
project_id = var.project_id
77
cni_plugin = var.cni_plugin
8-
enable_dashboard = var.enable_dashboard
9-
ingress_controller = var.ingress_controller
108
cluster_tags = var.cluster_tags
119
tags = var.tags
1210
delete_additional_resources = var.delete_additional_resources

variables.tf

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,6 @@ variable "cni_plugin" {
2626
}
2727
}
2828

29-
variable "enable_dashboard" {
30-
default = false
31-
description = "Enables the Kubernetes dashboard for the Kubernetes cluster."
32-
}
33-
34-
variable "ingress_controller" {
35-
default = "none"
36-
description = "The ingress controller to be deployed on the Kubernetes cluster."
37-
38-
validation {
39-
condition = contains(["nginx", "traefik", "traefik2", "none"], var.ingress_controller)
40-
error_message = "Values can only be \"nginx\", \"treafik\" or \"traefik2\"."
41-
}
42-
}
43-
4429
variable "cluster_tags" {
4530
default = []
4631
description = "The tags associated with the Kubernetes cluster."

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
scaleway = {
44
source = "scaleway/scaleway"
5-
version = "2.0.0-rc.2"
5+
version = "~> 2.0"
66
}
77
}
88
required_version = ">= 0.13"

0 commit comments

Comments
 (0)