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(karpenter): Ignore kubernetes_groups changes in lifecycle #2013

Closed
wants to merge 1 commit into from
Closed
Changes from all 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
10 changes: 10 additions & 0 deletions patterns/karpenter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,16 @@ resource "aws_eks_access_entry" "karpenter_node_access_entry" {
principal_arn = module.eks_blueprints_addons.karpenter.node_iam_role_arn
kubernetes_groups = []
type = "EC2_LINUX"

# EKS automatically adds the 'system:nodes' group to kubernetes_groups.
# Terraform detects this auto-added group and attempts to remove it.
# To prevent this, we ignore changes to kubernetes_groups.
# This avoids unnecessary drift between Terraform state and actual EKS state.
lifecycle {
ignore_changes = [
kubernetes_groups
]
}
}

################################################################################
Expand Down
Loading