Skip to content

Commit

Permalink
chore: renamed network.cidr to network.subnet_cidr
Browse files Browse the repository at this point in the history
Signed-off-by: leonsteinhaeuser <leon.steinhaeuser@tagesspiegel.de>
  • Loading branch information
leonsteinhaeuser committed Feb 1, 2024
1 parent 666a320 commit 3544bf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "metakube_cluster" "this" {
}
network = var.openstack_network_config.network_id != null && var.openstack_network_config.subnet_id != null ? var.openstack_network_config.network_id : null
subnet_id = var.openstack_network_config.network_id != null && var.openstack_network_config.subnet_id != null ? var.openstack_network_config.subnet_id : null
subnet_cidr = (var.openstack_network_config.network_id == null && var.openstack_network_config.subnet_id == null) && var.openstack_network_config.cidr != null ? var.openstack_network_config.cidr : null
subnet_cidr = (var.openstack_network_config.network_id == null && var.openstack_network_config.subnet_id == null) && var.openstack_network_config.subnet_cidr != null ? var.openstack_network_config.subnet_cidr : null
}
}
// configure OIDC authentication
Expand Down
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ variable "openstack_application_credential_secret" {

variable "openstack_network_config" {
type = object({
network_id = optional(string)
subnet_id = optional(string)
cidr = optional(string)
network_id = optional(string)
subnet_id = optional(string)
subnet_cidr = optional(string)
})
}

Expand Down

0 comments on commit 3544bf3

Please sign in to comment.