Skip to content

Commit

Permalink
feat: Add lifecycle ignore_changes and update GitHub Action version (#…
Browse files Browse the repository at this point in the history
…2850)

Add lifecycle ignore_changes and update GitHub Action version

Added a lifecycle block to the monitoring Helm release to ignore metadata changes, ensuring stability in resource management. Updated the GitHub Action for modified folders to version 1.22.0 to include the latest improvements and fixes.

Signed-off-by: Fabio Felici <[email protected]>
  • Loading branch information
ffppa authored Mar 3, 2025
1 parent 7401ede commit f05c819
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/static_analysis_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: 🔨 Get Modified Paths
id: get-paths
uses: pagopa/eng-github-actions-iac-template/global/get-modifed-folders@v1.19.0
uses: pagopa/eng-github-actions-iac-template/global/get-modifed-folders@v1.22.0
with:
start_folder: "src"
default_end_folder_depth: 3
Expand Down
6 changes: 6 additions & 0 deletions src/aks-platform/05_monitoring.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ resource "helm_release" "kube_prometheus_stack" {
"${file("${var.kube_prometheus_stack_helm.values_file}")}"
]

lifecycle {
ignore_changes = [
metadata
]
}

}

resource "helm_release" "monitoring_reloader" {
Expand Down

0 comments on commit f05c819

Please sign in to comment.