Skip to content

Commit

Permalink
Merge pull request #26 from alanty/efa-plugin-update
Browse files Browse the repository at this point in the history
feat: Update EFA device plugin to use the EKS charts repo
  • Loading branch information
vara-bonthu authored Mar 16, 2024
2 parents d5610c3 + a2d7bf3 commit 3f58acc
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 293 deletions.
23 changes: 19 additions & 4 deletions aws-efa-k8s-device-plugin.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
locals {
aws_efa_k8s_device_plugin_default_values = <<-EOT
tolerations:
- operator: Exists # DaemonSet is tolerant of any taints, regardless of the key or value of the taint.
- key: CriticalAddonsOnly
operator: Exists
EOT

aws_efa_k8s_device_plugin_merged_values_yaml = yamlencode(merge(
yamldecode(local.aws_efa_k8s_device_plugin_default_values),
try(yamldecode(var.aws_efa_k8s_device_plugin_helm_config.values[0]), {})
))
}


resource "helm_release" "aws_efa_k8s_device_plugin" {
count = var.enable_aws_efa_k8s_device_plugin ? 1 : 0

name = try(var.aws_efa_k8s_device_plugin_helm_config["name"], "aws-efa-k8s-device-plugin")
repository = try(var.aws_efa_k8s_device_plugin_helm_config["repository"], null)
chart = try(var.aws_efa_k8s_device_plugin_helm_config["chart"], "${path.module}/helm-charts/aws-efa-k8s-device-plugin")
version = try(var.aws_efa_k8s_device_plugin_helm_config["version"], "0.1.0")
repository = try(var.aws_efa_k8s_device_plugin_helm_config["repository"], "https://aws.github.io/eks-charts")
chart = try(var.aws_efa_k8s_device_plugin_helm_config["chart"], "aws-efa-k8s-device-plugin")
version = try(var.aws_efa_k8s_device_plugin_helm_config["version"], "v0.4.4")
timeout = try(var.aws_efa_k8s_device_plugin_helm_config["timeout"], 300)
values = try(var.aws_efa_k8s_device_plugin_helm_config["values"], null)
values = [local.aws_efa_k8s_device_plugin_merged_values_yaml]
create_namespace = try(var.aws_efa_k8s_device_plugin_helm_config["create_namespace"], false)
namespace = try(var.aws_efa_k8s_device_plugin_helm_config["namespace"], "kube-system")
lint = try(var.aws_efa_k8s_device_plugin_helm_config["lint"], false)
Expand Down
23 changes: 0 additions & 23 deletions helm-charts/aws-efa-k8s-device-plugin/.helmignore

This file was deleted.

6 changes: 0 additions & 6 deletions helm-charts/aws-efa-k8s-device-plugin/Chart.yaml

This file was deleted.

1 change: 0 additions & 1 deletion helm-charts/aws-efa-k8s-device-plugin/templates/NOTES.txt

This file was deleted.

62 changes: 0 additions & 62 deletions helm-charts/aws-efa-k8s-device-plugin/templates/_helpers.tpl

This file was deleted.

73 changes: 0 additions & 73 deletions helm-charts/aws-efa-k8s-device-plugin/templates/daemonset.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions helm-charts/aws-efa-k8s-device-plugin/templates/test/test-efa.yaml

This file was deleted.

98 changes: 0 additions & 98 deletions helm-charts/aws-efa-k8s-device-plugin/values.yaml

This file was deleted.

0 comments on commit 3f58acc

Please sign in to comment.