Skip to content

Commit d4d037b

Browse files
authored
Merge pull request #78 from 3pings/main
Fixed issue #47
2 parents e4ad39b + 09483bd commit d4d037b

File tree

9 files changed

+10
-14
lines changed

9 files changed

+10
-14
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ variable "tags" {
282282
| Name | Source | Version |
283283
|------|--------|---------|
284284
| <a name="module_addons"></a> [addons](#module\_addons) | terraform-cisco-modules/iks/intersight//modules/addon_policy | n/a |
285-
| <a name="module_cluster_addon_profile"></a> [cluster\_addon\_profile](#module\_cluster\_addon\_profile) | ./modules/cluster_addon_profile | n/a |
285+
| <a name="module_cluster_addon_profile"></a> [cluster\_addon\_profile](#module\_cluster\_addon\_profile) | terraform-cisco-modules/iks/intersight//modules/cluster_addon_profile | n/a |
286286
| <a name="module_cluster_profile"></a> [cluster\_profile](#module\_cluster\_profile) | terraform-cisco-modules/iks/intersight//modules/cluster | n/a |
287287
| <a name="module_control_profile"></a> [control\_profile](#module\_control\_profile) | terraform-cisco-modules/iks/intersight//modules/node_profile | n/a |
288288
| <a name="module_control_provider"></a> [control\_provider](#module\_control\_provider) | terraform-cisco-modules/iks/intersight//modules/infra_provider | n/a |
@@ -334,5 +334,4 @@ variable "tags" {
334334
| Name | Description |
335335
|------|-------------|
336336
| <a name="output_k8s_cluster_moid"></a> [k8s\_cluster\_moid](#output\_k8s\_cluster\_moid) | n/a |
337-
| <a name="output_k8s_cluster_profile_moid"></a> [k8s\_cluster\_profile\_moid](#output\_k8s\_cluster\_profile\_moid) | n/a |
338337
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
output "cluster_moid" {
2-
value = module.iks_cluster.cluster_moid
2+
value = module.iks_cluster.k8s_cluster_moid
33
}

main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ module "addons" {
188188

189189
module "cluster_addon_profile" {
190190

191-
# source = "terraform-cisco-modules/iks/intersight//modules/cluster_addon_profile"
192-
source = "./modules/cluster_addon_profile"
191+
source = "terraform-cisco-modules/iks/intersight//modules/cluster_addon_profile"
193192
depends_on = [module.addons]
194193
count = var.addons != null ? 1 : 0
195194
profile_name = "${var.cluster.name}-addon-profile"

modules/cluster/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,4 @@ No modules.
6767
| Name | Description |
6868
|------|-------------|
6969
| <a name="output_k8s_cluster_moid"></a> [k8s\_cluster\_moid](#output\_k8s\_cluster\_moid) | n/a |
70-
| <a name="output_k8s_cluster_profile_moid"></a> [k8s\_cluster\_profile\_moid](#output\_k8s\_cluster\_profile\_moid) | n/a |
7170
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/cluster/output.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
output "k8s_cluster_profile_moid" {
2-
value = intersight_kubernetes_cluster_profile.this.moid
3-
}
41
output "k8s_cluster_moid" {
52
value = intersight_kubernetes_cluster_profile.this.associated_cluster.0.moid
63
}

modules/node_profile/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ No modules.
4949

5050
| Name | Description | Type | Default | Required |
5151
|------|-------------|------|---------|:--------:|
52+
| <a name="input_action"></a> [action](#input\_action) | User Initiated action. Options are {{Delete\|Deploy\|Ready\|No-op\|Unassign}. | `string` | `"No-op"` | no |
5253
| <a name="input_cluster_moid"></a> [cluster\_moid](#input\_cluster\_moid) | MOID derived from the Cluster that is being consumed. | `string` | n/a | yes |
5354
| <a name="input_description"></a> [description](#input\_description) | Descripton of the Node Profile. | `string` | `""` | no |
5455
| <a name="input_ip_pool_moid"></a> [ip\_pool\_moid](#input\_ip\_pool\_moid) | MOID derived from the IP Pool that is being consumed. | `string` | n/a | yes |

modules/node_profile/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
resource "intersight_kubernetes_node_group_profile" "this" {
22

33
name = var.name
4+
action = var.action
45
description = var.description
56
node_type = var.profile_type
67
minsize = var.min_size

modules/node_profile/variables.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ variable "description" {
77
description = "Descripton of the Node Profile."
88
default = ""
99
}
10-
10+
variable "action" {
11+
default = "No-op"
12+
description = "User Initiated action. Options are {{Delete|Deploy|Ready|No-op|Unassign}."
13+
type = string
14+
}
1115
variable "profile_type" {
1216
type = string
1317
description = "Type of profile to be created. i.e Master or Worker"

output.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
output "k8s_cluster_profile_moid" {
2-
value = module.cluster_profile.k8s_cluster_profile_moid
3-
}
4-
51
output "k8s_cluster_moid" {
62
value = module.cluster_profile.k8s_cluster_moid
73
}

0 commit comments

Comments
 (0)