Skip to content

Commit

Permalink
remove main.tf dep_on
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoucgitter committed Sep 26, 2024
1 parent 9074f42 commit 4342169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ resource "terraform_data" "run_command" {
command = "kubectl --kubeconfig=${local.kubeconfig_path} patch storageclass gp2 --patch '{\"metadata\": {\"annotations\":{\"storageclass.kubernetes.io/is-default-class\":\"true\"}}}' "
}

depends_on = [module.kubeconfig.kube_config]
# depends_on = [module.kubeconfig.kube_config]
}

# Database Setup - https://registry.terraform.io/modules/terraform-aws-modules/rds/aws/6.2.0
Expand Down
2 changes: 1 addition & 1 deletion modules/kubeconfig/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ resource "kubernetes_service_account" "kubernetes_sa" {
name = local.service_account_name
namespace = var.namespace
}
depends_on = [ kubernetes_cluster_role_binding.kubernetes_crb ]
}

resource "kubernetes_cluster_role_binding" "kubernetes_crb" {
Expand All @@ -88,7 +89,6 @@ resource "kubernetes_cluster_role_binding" "kubernetes_crb" {

depends_on = [
data.aws_security_group.selected,
local_file.kubeconfig
]
}

Expand Down

0 comments on commit 4342169

Please sign in to comment.