Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #103 from wandera/JSC-49867
Browse files Browse the repository at this point in the history
JSC-49867 Add support for AdditionalUserData and ChainInsertMode
  • Loading branch information
jfrantisek authored Jan 27, 2023
2 parents 2aedf4d + a31f44f commit 8fce8e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aws/cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ variable "container-networking-params-amazonvpc" {

variable "container-networking-params-calico" {
type = object({
chainInsertMode = string
crossSubnet = bool
bpfEnabled = bool
bpfExternalServiceMode = string
Expand All @@ -288,6 +289,7 @@ variable "container-networking-params-calico" {
description = "Calico CNI params"

default = {
chainInsertMode = "insert"
crossSubnet = true
bpfEnabled = false
bpfExternalServiceMode = "Tunnel"
Expand Down
1 change: 1 addition & 0 deletions aws/ig/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ locals {
maxSize = var.max-size
minSize = var.min-size
externalLoadBalancers = var.external-load-balancers
additionalUserData = var.user-data
role = "Node"
rootVolumeSize = var.volume-size
rootVolumeType = var.volume-type
Expand Down
10 changes: 10 additions & 0 deletions aws/ig/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,13 @@ variable "warm-pool" {

nullable = true
}

variable "user-data" {
type = list(object({
name = string
type = string
content = string
}))
description = "UserData defines a user-data section to be passed to the host"
default = []
}

0 comments on commit 8fce8e8

Please sign in to comment.