From 33dadd0441df66a03a69f338964083ea0fcf928c Mon Sep 17 00:00:00 2001 From: Valentin Khramtsov Date: Mon, 25 Nov 2024 16:17:29 +0300 Subject: [PATCH] fix: added depends on for external secrets and loki, update helm chart version for external secrets --- terraform/modules/k8s-addons/eks-external-secrets.tf | 1 + terraform/modules/k8s-addons/eks-loki-stack.tf | 5 ++++- terraform/modules/k8s-addons/helm-releases.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/terraform/modules/k8s-addons/eks-external-secrets.tf b/terraform/modules/k8s-addons/eks-external-secrets.tf index 5d14fee..2a59371 100644 --- a/terraform/modules/k8s-addons/eks-external-secrets.tf +++ b/terraform/modules/k8s-addons/eks-external-secrets.tf @@ -154,4 +154,5 @@ resource "helm_release" "external_secrets" { local.external_secrets_values ] + depends_on = [helm_release.aws_loadbalancer_controller] } diff --git a/terraform/modules/k8s-addons/eks-loki-stack.tf b/terraform/modules/k8s-addons/eks-loki-stack.tf index 3c22eb6..b358690 100644 --- a/terraform/modules/k8s-addons/eks-loki-stack.tf +++ b/terraform/modules/k8s-addons/eks-loki-stack.tf @@ -180,5 +180,8 @@ resource "helm_release" "loki_stack" { local.loki_stack_values ] - depends_on = [kubectl_manifest.kube_prometheus_stack_operator_crds] + depends_on = [ + kubectl_manifest.kube_prometheus_stack_operator_crds, + helm_release.aws_loadbalancer_controller + ] } diff --git a/terraform/modules/k8s-addons/helm-releases.yaml b/terraform/modules/k8s-addons/helm-releases.yaml index 16710c9..fd6a4eb 100644 --- a/terraform/modules/k8s-addons/helm-releases.yaml +++ b/terraform/modules/k8s-addons/helm-releases.yaml @@ -39,7 +39,7 @@ releases: enabled: true chart: external-secrets repository: https://charts.external-secrets.io - chart_version: 0.10.0 + chart_version: 0.10.4 namespace: external-secrets - id: gitlab-runner enabled: false