Skip to content

Commit

Permalink
feat: enable custom map_user
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiFleKs committed Jun 6, 2019
1 parent be89eeb commit c713b7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/modules/eks/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ data:
- system:bootstrappers
- system:nodes
${var.virtual_kubelet["create_iam_resources_kiam"] ? "- rolearn: ${join(",", aws_iam_role.eks-virtual-kubelet.*.arn)}\n username: virtual-kubelet\n groups:\n - system:masters\n" : ""}
mapUsers: |
${indent(4,var.map_users)}
CONFIGMAPAWSAUTH

kubeconfig = <<KUBECONFIG
Expand Down
4 changes: 4 additions & 0 deletions terraform/modules/eks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,7 @@ variable "allowed_cidr_blocks" {
type = "list"
default = ["0.0.0.0/0"]
}

variable "map_users" {
type = "string"
}

0 comments on commit c713b7c

Please sign in to comment.