Skip to content

Commit

Permalink
fix: add *_drain to kubernetes_ready
Browse files Browse the repository at this point in the history
Because kubernetes_ready will be used as dependency, we need to add
*_drain resources to avoid draining nodes before removing resources
which depend on it.
  • Loading branch information
Alexandre NICOLAIE committed Feb 17, 2021
1 parent 7867fa8 commit fe766da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ locals {
// null_resource used as dependency agregation.
resource "null_resource" "kubernetes_ready" {
depends_on = [
null_resource.servers_install, null_resource.servers_annotation, null_resource.servers_label, null_resource.servers_taint,
null_resource.agents_install, null_resource.agents_annotation, null_resource.agents_label, null_resource.agents_taint
null_resource.servers_install, null_resource.servers_drain, null_resource.servers_annotation, null_resource.servers_label, null_resource.servers_taint,
null_resource.agents_install, null_resource.agents_drain, null_resource.agents_annotation, null_resource.agents_label, null_resource.agents_taint,
]
}

0 comments on commit fe766da

Please sign in to comment.