Skip to content

Commit cd5c809

Browse files
committed
Support for iksVersionName Variable in policy
1 parent 12ecf1e commit cd5c809

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ variable "tags" {
327327
| <a name="input_sysconfig"></a> [sysconfig](#input\_sysconfig) | n/a | <pre>object({<br> use_existing = bool<br> name = string<br> ntp_servers = optional(list(string))<br> dns_servers = optional(list(string))<br> timezone = optional(string)<br> domain_name = optional(string)<br> })</pre> | n/a | yes |
328328
| <a name="input_tags"></a> [tags](#input\_tags) | n/a | `list(map(string))` | `[]` | no |
329329
| <a name="input_tr_policy"></a> [tr\_policy](#input\_tr\_policy) | n/a | <pre>object({<br> use_existing = bool<br> create_new = bool<br> name = optional(string)<br> root_ca_registries = optional(list(string))<br> unsigned_registries = optional(list(string))<br> })</pre> | n/a | yes |
330-
| <a name="input_versionPolicy"></a> [versionPolicy](#input\_versionPolicy) | n/a | <pre>object({<br> useExisting = bool<br> policyName = string<br> description = optional(string)<br> versionName = optional(string)<br> })</pre> | n/a | yes |
330+
| <a name="input_versionPolicy"></a> [versionPolicy](#input\_versionPolicy) | n/a | <pre>object({<br> useExisting = bool<br> policyName = string<br> iksVersionName = string<br> description = optional(string)<br> versionName = optional(string)<br> })</pre> | n/a | yes |
331331

332332
## Outputs
333333

examples/complete_cluster_deployment/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ No providers.
199199

200200
| Name | Source | Version |
201201
|------|--------|---------|
202-
| <a name="module_iks_cluster"></a> [iks\_cluster](#module\_iks\_cluster) | terraform-cisco-modules/iks/intersight// | 2.1.3 |
202+
| <a name="module_iks_cluster"></a> [iks\_cluster](#module\_iks\_cluster) | ../../ | n/a |
203203

204204
## Resources
205205

examples/complete_cluster_deployment/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ provider "intersight" {
55
}
66

77
module "iks_cluster" {
8-
source = "terraform-cisco-modules/iks/intersight//"
9-
version = "2.1.3"
8+
# source = "terraform-cisco-modules/iks/intersight//"
9+
# version = "2.1.3"
10+
source = "../../"
1011

1112
# Kubernetes Cluster Profile Adjust the values as needed.
1213
cluster = {

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ data "intersight_kubernetes_container_runtime_policy" "this" {
2626
}
2727
data "intersight_kubernetes_version_policy" "this" {
2828
count = var.versionPolicy.useExisting == true ? 1 : 0
29-
name = var.versionPolicy.versionName
29+
name = var.versionPolicy.iksVersionName
3030
}
3131
data "intersight_kubernetes_virtual_machine_instance_type" "this" {
3232
count = var.instance_type.use_existing == true ? 1 : 0
@@ -116,7 +116,7 @@ module "runtime_policy" {
116116
module "k8s_version" {
117117
source = "terraform-cisco-modules/iks/intersight//modules/version"
118118
count = var.versionPolicy.useExisting == true ? 0 : 1
119-
iksVersionName = var.versionPolicy.versionName
119+
iksVersionName = var.versionPolicy.iksVersionName
120120
policyName = var.versionPolicy.policyName
121121
description = var.versionPolicy.description
122122
org_name = var.organization

variables.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
variable "versionPolicy" {
22
type = object({
3-
useExisting = bool
4-
policyName = string
5-
description = optional(string)
6-
versionName = optional(string)
3+
useExisting = bool
4+
policyName = string
5+
iksVersionName = string
6+
description = optional(string)
7+
versionName = optional(string)
78
})
89
}
910
variable "infraConfigPolicy" {

0 commit comments

Comments
 (0)