add optional parameter extra_groups for k8s_nodes (#9211)

This commit is contained in:
rptaylor
2022-09-13 00:13:08 -07:00
committed by GitHub
parent fc57c0b27e
commit 5bce39abf8
2 changed files with 4 additions and 2 deletions

View File

@@ -742,7 +742,7 @@ resource "openstack_compute_instance_v2" "k8s_nodes" {
metadata = {
ssh_user = var.ssh_user
kubespray_groups = "kube_node,k8s_cluster,%{if each.value.floating_ip == false}no_floating,%{endif}${var.supplementary_node_groups}"
kubespray_groups = "kube_node,k8s_cluster,%{if each.value.floating_ip == false}no_floating,%{endif}${var.supplementary_node_groups},${try(each.value.extra_groups, "")}"
depends_on = var.network_router_id
use_access_ip = var.use_access_ip
}