generated from terraform-modules/template_aws_submodules
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
81 additions
and
148 deletions.
There are no files selected for viewing
11 changes: 7 additions & 4 deletions
11
examples/full-cluster-tf-upgrade/1.25/addons/addon_coredns.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,11 @@ | ||
| resource "aws_eks_addon" "coredns" { | ||
| count = lookup(local.addon_versions, "coredns", null) != null ? 1 : 0 | ||
|
|
||
| cluster_name = var.cluster_name | ||
| addon_name = "coredns" | ||
| addon_version = lokup(local.addon_versions, "coredns") | ||
| resolve_conflicts = "OVERWRITE" | ||
| cluster_name = var.cluster_name | ||
| addon_name = "coredns" | ||
| addon_version = lookup(local.addon_versions, "coredns") | ||
| # resolve_conflicts = "OVERWRITE" | ||
| # note OVERWRITE resets to eks addon defaults, PRESERVE uses any values set here | ||
| resolve_conflicts_on_create = "OVERWRITE" | ||
| resolve_conflicts_on_update = "OVERWRITE" | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
examples/full-cluster-tf-upgrade/1.25/addons/addon_kube-proxy.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,13 @@ | ||
| resource "aws_eks_addon" "kube-proxy" { | ||
| count = lookup(local.addon_versions, "kube-proxy", null) != null ? 1 : 0 | ||
|
|
||
| cluster_name = var.cluster_name | ||
| addon_name = "kube-proxy" | ||
| addon_version = lokup(local.addon_versions, "kube-proxy") | ||
| resolve_conflicts = "OVERWRITE" | ||
| cluster_name = var.cluster_name | ||
| addon_name = "kube-proxy" | ||
| addon_version = lookup(local.addon_versions, "kube-proxy") | ||
| # resolve_conflicts = "OVERWRITE" | ||
| # note OVERWRITE resets to eks addon defaults, PRESERVE uses any values set here | ||
| resolve_conflicts_on_create = "OVERWRITE" | ||
| resolve_conflicts_on_update = "OVERWRITE" | ||
| } | ||
|
|
||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,5 @@ | ||
| locals { | ||
| addon_versions = lookup(var.addon_version, var.cluster_version, {}) | ||
| account_id = data.aws_caller_identity.current.account_id | ||
| principal = format("arn:%v:iam::%v:oidc-provider/%v", data.aws_arn.current.partition, local.account_id, local.oidc_provider_url) | ||
| addon_versions = lookup(var.addon_versions, var.cluster_version, {}) | ||
| } | ||
|
|
||
|
|
||
| variable "addon_versions" { | ||
| description = "Map of addon versions by Kubernetes version" | ||
| type = map(map(string)) | ||
| default = { | ||
| "1.24" = {} | ||
| "1.25" = { | ||
| "coredns" = "v1.9.3-eksbuild.2" | ||
| "kube-proxy" = "v1.25.6-eksbuild.1" | ||
| "vpc-cni" = "v1.12.2-eksbuild.1" | ||
| } | ||
| } | ||
| } | ||
|
|
This file was deleted.
Oops, something went wrong.
77 changes: 0 additions & 77 deletions
77
examples/full-cluster-tf-upgrade/1.25/addons/copy_images.tf
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions
6
examples/full-cluster-tf-upgrade/1.25/ebs/tf-run.destroy.data
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters