Skip to content

Commit

Permalink
Correct param values
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Jul 11, 2024
1 parent a79cd14 commit c896b61
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
12 changes: 6 additions & 6 deletions dev/stacks/dpe-sandbox-k8s/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ module "sage-aws-vpc" {

module "sage-aws-eks" {
source = "spacelift.io/sagebionetworks/sage-aws-eks/aws"
version = "0.2.5"

cluster_name = "dpe-k8-sandbox"
private_vpc_subnet_ids = module.sage-aws-vpc.private_subnet_ids
vpc_id = module.sage-aws-vpc.vpc_id
vpc_security_group_id = module.sage-aws-vpc.vpc_security_group_id
version = "0.2.6"

cluster_name = "dpe-k8-sandbox"
private_vpc_subnet_ids = module.sage-aws-vpc.private_subnet_ids
vpc_id = module.sage-aws-vpc.vpc_id
vpc_security_group_id = module.sage-aws-vpc.vpc_security_group_id
enable_policy_event_logs = true
}
2 changes: 1 addition & 1 deletion modules/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ resource "spacelift_module" "sage-aws-eks" {

resource "spacelift_version" "sage-aws-eks-version" {
module_id = spacelift_module.sage-aws-eks.id
version_number = "0.2.5"
version_number = "0.2.6"
}

resource "spacelift_module" "sage-aws-eks-autoscaler" {
Expand Down
5 changes: 3 additions & 2 deletions modules/sage-aws-eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,16 @@ module "eks" {
}
vpc-cni = {
most_recent = true
# Derived from https://github.com/aws/amazon-vpc-cni-k8s/blob/master/charts/aws-vpc-cni/values.yaml
configuration_values = jsonencode({
enableNetworkPolicy = "true",
init = {
env = {
DISABLE_TCP_EARLY_DEMUX = "true"
}
}
nodeagent = {
enablePolicyEventLogs = "true"
nodeAgent = {
enablePolicyEventLogs = var.enable_policy_event_logs ? "true" : "false"
}
env = {
ENABLE_POD_ENI = "true",
Expand Down
6 changes: 6 additions & 0 deletions modules/sage-aws-eks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ variable "vpc_security_group_id" {
description = "Security group ID to attach to the EKS cluster"
type = string
}

variable "enable_policy_event_logs" {
description = "Enable logging of policy events"
type = bool
default = false
}

0 comments on commit c896b61

Please sign in to comment.