Skip to content

Commit

Permalink
chore: Replace deprecated resolve conflicts field (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 authored Jun 17, 2024
1 parent 6e2932e commit be152e5
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions modules/app_eks/add-ons.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ resource "aws_iam_role" "oidc" {

### add-ons
resource "aws_eks_addon" "aws_efs_csi_driver" {
depends_on = [
aws_eks_addon.vpc_cni
]
cluster_name = var.namespace
addon_name = "aws-efs-csi-driver"
addon_version = "v1.7.7-eksbuild.1"
resolve_conflicts = "OVERWRITE"
}
depends_on = [
aws_eks_addon.vpc_cni
]
cluster_name = var.namespace
addon_name = "aws-efs-csi-driver"
addon_version = "v1.7.7-eksbuild.1"
resolve_conflicts_on_create = "OVERWRITE"
resolve_conflicts_on_update = "OVERWRITE"
}

resource "aws_eks_addon" "aws_ebs_csi_driver" {
depends_on = [
Expand All @@ -48,7 +49,8 @@ resource "aws_eks_addon" "aws_ebs_csi_driver" {
cluster_name = var.namespace
addon_name = "aws-ebs-csi-driver"
addon_version = "v1.25.0-eksbuild.1"
resolve_conflicts = "OVERWRITE"
resolve_conflicts_on_create = "OVERWRITE"
resolve_conflicts_on_update = "OVERWRITE"
}

resource "aws_eks_addon" "coredns" {
Expand All @@ -58,7 +60,8 @@ resource "aws_eks_addon" "coredns" {
cluster_name = var.namespace
addon_name = "coredns"
addon_version = "v1.9.3-eksbuild.11"
resolve_conflicts = "OVERWRITE"
resolve_conflicts_on_create = "OVERWRITE"
resolve_conflicts_on_update = "OVERWRITE"
}

resource "aws_eks_addon" "kube_proxy" {
Expand All @@ -68,13 +71,15 @@ resource "aws_eks_addon" "kube_proxy" {
cluster_name = var.namespace
addon_name = "kube-proxy"
addon_version = "v1.25.14-eksbuild.2"
resolve_conflicts = "OVERWRITE"
resolve_conflicts_on_create = "OVERWRITE"
resolve_conflicts_on_update = "OVERWRITE"
}

resource "aws_eks_addon" "vpc_cni" {
cluster_name = var.namespace
addon_name = "vpc-cni"
addon_version = "v1.18.0-eksbuild.1"
resolve_conflicts = "OVERWRITE"
service_account_role_arn = aws_iam_role.oidc.arn
}
resolve_conflicts_on_create = "OVERWRITE"
resolve_conflicts_on_update = "OVERWRITE"
service_account_role_arn = aws_iam_role.oidc.arn
}

0 comments on commit be152e5

Please sign in to comment.