From ccf79968b42854c1afff002b5b7c0811f093b831 Mon Sep 17 00:00:00 2001 From: Georgi Ivanov Date: Fri, 28 Jun 2024 15:45:47 +0100 Subject: [PATCH] typo fixes --- k8s-tcp-keepalive.tf | 83 +------------------------------------------- 1 file changed, 1 insertion(+), 82 deletions(-) diff --git a/k8s-tcp-keepalive.tf b/k8s-tcp-keepalive.tf index ab3c282..59759ff 100644 --- a/k8s-tcp-keepalive.tf +++ b/k8s-tcp-keepalive.tf @@ -63,85 +63,4 @@ resource "kubernetes_role_binding" "tcp_keepalive" { kind = "Group" name = "system:serviceaccounts:${var.metastore_namespace}" } -} - -resource "kubernetes_service_account_v1" "hms_readwrite" { - count = var.hms_instance_type == "k8s" ? 1 : 0 - metadata { - name = "${local.hms_alias}-readwrite" - namespace = var.metastore_namespace - annotations = { - "eks.amazonaws.com/role-arn" = var.oidc_provider == "" ? "" : aws_iam_role.apiary_hms_readwrite.arn - } - } -} - -resource "kubernetes_secret_v1" "hms_readwrite" { - metadata { - name = "${local.hms_alias}-readwrite" - namespace = var.metastore_namespace - annotations = { - "kubernetes.io/service-account.name" ="${local.hms_alias}-readwrite" - "kubernetes.io/service-account.namespace" = var.metastore_namespace - } - } - type = "kubernetes.io/service-account-token" - - depends_on = [ - kubernetes_service_account_v1.hms_readwrite - ] -} - -resource "kubernetes_service_account_v1" "hms_readonly" { - count = var.hms_instance_type == "k8s" ? 1 : 0 - metadata { - name = "${local.hms_alias}-readonly" - namespace = var.metastore_namespace - annotations = { - "eks.amazonaws.com/role-arn" = var.oidc_provider == "" ? "" : aws_iam_role.apiary_hms_readonly.arn - } - } -} - -resource "kubernetes_secret_v1" "hms_readonly" { - metadata { - name = "${local.hms_alias}-readonly" - namespace = var.metastore_namespace - annotations = { - "kubernetes.io/service-account.name" ="${local.hms_alias}-readonly" - "kubernetes.io/service-account.namespace" = var.metastore_namespace - } - } - type = "kubernetes.io/service-account-token" - - depends_on = [ - kubernetes_service_account_v1.hms_readonly - ] -} - -resource "kubernetes_service_account_v1" "s3_inventory" { - count = var.hms_instance_type == "k8s" ? 1 : 0 - metadata { - name = "${local.instance_alias}-s3-inventory" - namespace = var.metastore_namespace - annotations = { - "eks.amazonaws.com/role-arn" = var.oidc_provider == "" ? "" : aws_iam_role.apiary_s3_inventory.arn - } - } -} - -resource "kubernetes_secret_v1" "s3_inventory" { - metadata { - name = "${local.hms_alias}-s3-inventory" - namespace = var.metastore_namespace - annotations = { - "kubernetes.io/service-account.name" ="${local.hms_alias}-s3-inventory" - "kubernetes.io/service-account.namespace" = var.metastore_namespace - } - } - type = "kubernetes.io/service-account-token" - - depends_on = [ - kubernetes_service_account_v1.s3_inventory - ] -} +} \ No newline at end of file