forked from nebari-dev/nebari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding openid connect provider to enable irsa feature (nebari-dev#1903)
Co-authored-by: Scott Blair <sblair@metrostar.com> Co-authored-by: Ken Foster <kfoster@metrostar.com>
- Loading branch information
1 parent
40cfb49
commit 0a0e988
Showing
6 changed files
with
45 additions
and
12 deletions.
There are no files selected for viewing
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
14 changes: 8 additions & 6 deletions
14
src/_nebari/stages/infrastructure/template/aws/modules/kubernetes/locals.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,16 +1,18 @@ | ||
locals { | ||
cluster_policies = concat([ | ||
"arn:${var.partition}:iam::aws:policy/AmazonEKSClusterPolicy", | ||
"arn:${var.partition}:iam::aws:policy/AmazonEKSServicePolicy", | ||
"arn:${var.partition}:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy", | ||
"arn:${local.partition}:iam::aws:policy/AmazonEKSClusterPolicy", | ||
"arn:${local.partition}:iam::aws:policy/AmazonEKSServicePolicy", | ||
"arn:${local.partition}:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy", | ||
], var.cluster_additional_policies) | ||
|
||
node_group_policies = concat([ | ||
"arn:${var.partition}:iam::aws:policy/AmazonEKSWorkerNodePolicy", | ||
"arn:${var.partition}:iam::aws:policy/AmazonEKS_CNI_Policy", | ||
"arn:${var.partition}:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy", | ||
"arn:${local.partition}:iam::aws:policy/AmazonEKSWorkerNodePolicy", | ||
"arn:${local.partition}:iam::aws:policy/AmazonEKS_CNI_Policy", | ||
"arn:${local.partition}:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy", | ||
aws_iam_policy.worker_autoscaling.arn | ||
], var.node_group_additional_policies) | ||
|
||
gpu_node_group_names = [for node_group in var.node_groups : node_group.name if node_group.gpu == true] | ||
|
||
partition = data.aws_partition.current.partition | ||
} |
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