From bbe730f590306e4a2ebbdc30f3873a271a2d175f Mon Sep 17 00:00:00 2001 From: Samuel <15628653+swibrow@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:39:58 +0200 Subject: [PATCH] fix: lacework module defines each node_affinity as an individual expresssion. Only set the fargte affinity( its a notin expression --- modules/lacework/README.md | 2 +- modules/lacework/variables.tf | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/modules/lacework/README.md b/modules/lacework/README.md index 97c1665..38c829c 100644 --- a/modules/lacework/README.md +++ b/modules/lacework/README.md @@ -47,7 +47,7 @@ module "lacework" { |------|-------------|------|---------|:--------:| | [cluster\_name](#input\_cluster\_name) | Name of the cluster | `string` | n/a | yes | | [namespace](#input\_namespace) | Namespace for Lacework resources | `string` | `"lacework"` | no | -| [node\_affinity](#input\_node\_affinity) | Node affinity settings |
list(object({|
key = string
operator = string
values = list(string)
}))
[| no | +| [node\_affinity](#input\_node\_affinity) | Node affinity settings |
{
"key": "kubernetes.io/arch",
"operator": "In",
"values": [
"amd64",
"arm64"
]
},
{
"key": "kubernetes.io/os",
"operator": "In",
"values": [
"linux"
]
},
{
"key": "eks.amazonaws.com/compute-type",
"operator": "NotIn",
"values": [
"fargate"
]
}
]
list(object({|
key = string
operator = string
values = list(string)
}))
[| no | | [pod\_priority\_class\_name](#input\_pod\_priority\_class\_name) | Name of the pod priority class | `string` | `"system-node-critical"` | no | | [resources](#input\_resources) | Resources for the Lacework agent |
{
"key": "eks.amazonaws.com/compute-type",
"operator": "NotIn",
"values": [
"fargate"
]
}
]
object({|
cpu_request = string
mem_request = string
cpu_limit = string
mem_limit = string
})
{| no | | [server\_url](#input\_server\_url) | Lacework server URL | `string` | `"https://api.fra.lacework.net"` | no | diff --git a/modules/lacework/variables.tf b/modules/lacework/variables.tf index 23b5983..f7abde9 100644 --- a/modules/lacework/variables.tf +++ b/modules/lacework/variables.tf @@ -29,21 +29,6 @@ variable "node_affinity" { values = list(string) })) default = [ - { - key = "kubernetes.io/arch" - operator = "In" - values = [ - "amd64", - "arm64" - ] - }, - { - key = "kubernetes.io/os" - operator = "In" - values = [ - "linux" - ] - }, { key = "eks.amazonaws.com/compute-type" operator = "NotIn"
"cpu_limit": "1000m",
"cpu_request": "100m",
"mem_limit": "1024Mi",
"mem_request": "256Mi"
}