Skip to content

Commit

Permalink
Add dependency config (#44)
Browse files Browse the repository at this point in the history
* Add dependency for config map

* Update config dependency to helm release
  • Loading branch information
vijay-veeranki committed Aug 18, 2022
1 parent 06c9d7f commit b2cc593
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ resource "helm_release" "nginx_ingress" {

depends_on = [
kubernetes_namespace.ingress_controllers,
kubernetes_config_map.modsecurity_nginx_config
]

lifecycle {
Expand Down Expand Up @@ -110,6 +111,10 @@ resource "kubernetes_config_map" "modsecurity_nginx_config" {
"modsecurity.conf" = file("${path.module}/templates/modsecurity.conf"),
}

depends_on = [
kubernetes_namespace.ingress_controllers,
]

lifecycle {
ignore_changes = [metadata.0.annotations]
}
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
helm = {
source = "hashicorp/helm"
source = "hashicorp/helm"
version = "~> 2.6.0"
}
kubernetes = {
Expand Down

0 comments on commit b2cc593

Please sign in to comment.