Skip to content

Commit

Permalink
Merge pull request #7 from radiant-maxar/release-0.5.1
Browse files Browse the repository at this point in the history
Release 0.5.1
  • Loading branch information
jbronn authored Mar 9, 2023
2 parents 13ccc5d + 48b3022 commit 6794359
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ resource "null_resource" "eks_kubeconfig" {
# Authorize Amazon Load Balancer Controller
module "eks_lb_irsa" {
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
version = "5.11.2"
version = "5.12.0"

role_name = "${var.cluster_name}-lb-role"
attach_load_balancer_controller_policy = true
Expand All @@ -131,7 +131,7 @@ module "eks_lb_irsa" {
# Authorize VPC CNI via IRSA.
module "eks_vpc_cni_irsa" {
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
version = "5.11.2"
version = "5.12.0"

role_name = "${var.cluster_name}-vpc-cni-role"
attach_vpc_cni_policy = true
Expand All @@ -150,7 +150,7 @@ module "eks_vpc_cni_irsa" {
# Allow PVCs backed by EBS
module "eks_ebs_csi_irsa" {
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
version = "5.11.2"
version = "5.12.0"

role_name = "${var.cluster_name}-ebs-csi-role"
attach_ebs_csi_policy = true
Expand All @@ -168,7 +168,7 @@ module "eks_ebs_csi_irsa" {
# Allow PVCs backed by EFS
module "eks_efs_csi_controller_irsa" {
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
version = "5.11.2"
version = "5.12.0"

role_name = "${var.cluster_name}-efs-csi-controller-role"
attach_efs_csi_policy = true
Expand All @@ -186,7 +186,7 @@ module "eks_efs_csi_controller_irsa" {

module "eks_efs_csi_node_irsa" {
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
version = "5.11.2"
version = "5.12.0"

role_name = "${var.cluster_name}-efs-csi-node-role"
oidc_providers = {
Expand Down Expand Up @@ -348,10 +348,16 @@ resource "kubernetes_storage_class" "eks_ebs_storage_class" {
}

# Don't want gp2 storageclass set as default.
resource "null_resource" "eks_disable_gp2" {
provisioner "local-exec" {
command = "kubectl --context='${var.cluster_name}' patch storageclass gp2 -p '{\"metadata\": {\"annotations\":{\"storageclass.kubernetes.io/is-default-class\":\"false\"}}}'"
resource "kubernetes_annotations" "eks_disable_gp2" {
api_version = "storage.k8s.io/v1"
kind = "StorageClass"
metadata {
name = "gp2"
}
annotations = {
"storageclass.kubernetes.io/is-default-class" = "false"
}

depends_on = [
kubernetes_storage_class.eks_ebs_storage_class
]
Expand Down Expand Up @@ -431,7 +437,7 @@ resource "null_resource" "eks_nvidia_device_plugin" {
module "cert_manager_irsa" {
count = local.cert_manager ? 1 : 0
source = "terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks"
version = "5.11.2"
version = "5.12.0"

role_name = "${var.cluster_name}-cert-manager-role"

Expand Down

0 comments on commit 6794359

Please sign in to comment.