Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-bitonti committed Oct 19, 2023
1 parent 28244c5 commit ca321da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gke-cluster-standard/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/
locals {
bkp_plans_list = [for k, v in var.backup_configs.backup_plans : k]
bkp_plans_list = compact([for k, v in var.backup_configs.backup_plans : v.applications == null ? "" : k])
bkp_namespaces_object_map = { for backup in local.bkp_plans_list : backup => flatten([
for k, v in var.backup_configs.backup_plans[backup].applications : [
for object_name in v : {
Expand Down
1 change: 0 additions & 1 deletion tests/modules/gke_cluster_standard/examples/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ values:
- namespaced_names:
- namespace: namespace-1
name: app-1
- namespaced_names:
- namespace: namespace-1
name: app-2
selected_namespaces: []
Expand Down

0 comments on commit ca321da

Please sign in to comment.