Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump add-on versions #159

Merged
merged 3 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@ module "secrets_store_csi_driver" {
namespace = try(var.secrets_store_csi_driver.namespace, "kube-system")
create_namespace = try(var.secrets_store_csi_driver.create_namespace, false)
chart = "secrets-store-csi-driver"
chart_version = try(var.secrets_store_csi_driver.chart_version, "1.3.2")
chart_version = try(var.secrets_store_csi_driver.chart_version, "1.3.3")
repository = try(var.secrets_store_csi_driver.repository, "https://kubernetes-sigs.github.io/secrets-store-csi-driver/charts")
values = try(var.secrets_store_csi_driver.values, [])

Expand Down Expand Up @@ -2751,17 +2751,13 @@ module "secrets_store_csi_driver" {
# Secrets Store CSI Driver Provider AWS
################################################################################

locals {
secrets_store_csi_driver_provider_aws_service_account = try(var.secrets_store_csi_driver_provider_aws.service_account_name, "secrets-store-csi-driver-provider-aws-sa")
}

module "secrets_store_csi_driver_provider_aws" {
source = "aws-ia/eks-blueprints-addon/aws"
version = "1.0.0"

create = var.enable_secrets_store_csi_driver_provider_aws

# https://github.com/aws/eks-charts/blob/master/stable/csi-secrets-store-provider-aws/Chart.yaml
# https://github.com/aws/secrets-store-csi-driver-provider-aws/blob/main/charts/secrets-store-csi-driver-provider-aws/Chart.yaml
name = try(var.secrets_store_csi_driver_provider_aws.name, "secrets-store-csi-driver-provider-aws")
description = try(var.secrets_store_csi_driver_provider_aws.description, "A Helm chart to install the Secrets Store CSI Driver and the AWS Key Management Service Provider inside a Kubernetes cluster.")
namespace = try(var.secrets_store_csi_driver_provider_aws.namespace, "kube-system")
Expand Down Expand Up @@ -2797,14 +2793,8 @@ module "secrets_store_csi_driver_provider_aws" {
replace = try(var.secrets_store_csi_driver_provider_aws.replace, null)
lint = try(var.secrets_store_csi_driver_provider_aws.lint, null)

postrender = try(var.secrets_store_csi_driver_provider_aws.postrender, [])
set = concat([
{
name = "serviceAccount.name"
value = local.secrets_store_csi_driver_provider_aws_service_account
}],
try(var.secrets_store_csi_driver_provider_aws.set, [])
)
postrender = try(var.secrets_store_csi_driver_provider_aws.postrender, [])
set = try(var.secrets_store_csi_driver_provider_aws.set, [])
set_sensitive = try(var.secrets_store_csi_driver_provider_aws.set_sensitive, [])

tags = var.tags
Expand Down Expand Up @@ -3003,7 +2993,7 @@ module "vpa" {
namespace = try(var.vpa.namespace, "vpa")
create_namespace = try(var.vpa.create_namespace, true)
chart = "vpa"
chart_version = try(var.vpa.chart_version, "1.7.2")
chart_version = try(var.vpa.chart_version, "1.7.5")
repository = try(var.vpa.repository, "https://charts.fairwinds.com/stable")
values = try(var.vpa.values, [])

Expand Down Expand Up @@ -3033,8 +3023,14 @@ module "vpa" {
replace = try(var.vpa.replace, null)
lint = try(var.vpa.lint, null)

postrender = try(var.vpa.postrender, [])
set = try(var.vpa.set, [])
postrender = try(var.vpa.postrender, [])
set = concat([
{
name = "admissionController.enabled"
value = true
}],
try(var.vpa.set, [])
)
set_sensitive = try(var.vpa.set_sensitive, [])

tags = var.tags
Expand Down
56 changes: 29 additions & 27 deletions tests/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,41 @@ module "eks" {
version = "~> 19.13"

cluster_name = local.name
cluster_version = "1.25"
cluster_version = "1.26"
cluster_endpoint_public_access = true

vpc_id = module.vpc.vpc_id
subnet_ids = module.vpc.private_subnets

manage_aws_auth_configmap = true

cluster_addons = {
aws-ebs-csi-driver = {
most_recent = true
service_account_role_arn = module.ebs_csi_driver_irsa.iam_role_arn
}
coredns = {
preserve = true
askulkarni2 marked this conversation as resolved.
Show resolved Hide resolved
most_recent = true

timeouts = {
create = "25m"
delete = "10m"
}
}
vpc-cni = {
most_recent = true
service_account_role_arn = module.vpc_cni_irsa.iam_role_arn
}
kube-proxy = {}
# ADOT has a dependency on cert-manager.
#adot = {
# most_recent = true
# service_account_role_arn = module.adot_irsa.iam_role_arn
#}
aws-guardduty-agent = {}
}

eks_managed_node_groups = {
initial = {
instance_types = ["m5.xlarge"]
Expand Down Expand Up @@ -106,31 +133,6 @@ module "eks_blueprints_addons" {
cluster_version = module.eks.cluster_version
oidc_provider_arn = module.eks.oidc_provider_arn

eks_addons = {
aws-ebs-csi-driver = {
most_recent = true
service_account_role_arn = module.ebs_csi_driver_irsa.iam_role_arn
}
coredns = {
preserve = true
most_recent = true
}
vpc-cni = {
most_recent = true
service_account_role_arn = module.vpc_cni_irsa.iam_role_arn
}
kube-proxy = {
most_recent = true
}
adot = {
most_recent = true
service_account_role_arn = module.adot_irsa.iam_role_arn
}
aws-guardduty-agent = {
most_recent = true
}
}

enable_aws_efs_csi_driver = true
enable_aws_fsx_csi_driver = true
enable_argocd = true
Expand Down Expand Up @@ -162,7 +164,7 @@ module "eks_blueprints_addons" {
}

enable_velero = true
# An S3 Bucket ARN is required. This can be declared with or without a Prefix.
## An S3 Bucket ARN is required. This can be declared with or without a Prefix.
velero = {
s3_backup_location = "${module.velero_backup_s3_bucket.s3_bucket_arn}/backups"
}
Expand Down