From f59be6b99e2515d03c62bca3752e69eda7552bb6 Mon Sep 17 00:00:00 2001 From: Alex Strick van Linschoten Date: Thu, 23 Nov 2023 09:27:53 +0100 Subject: [PATCH] fix exported yaml for stack on k3d (#112) --- src/mlstacks/terraform/k3d-modular/output_stack.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mlstacks/terraform/k3d-modular/output_stack.tf b/src/mlstacks/terraform/k3d-modular/output_stack.tf index 5e3a80bb..1f96bfba 100644 --- a/src/mlstacks/terraform/k3d-modular/output_stack.tf +++ b/src/mlstacks/terraform/k3d-modular/output_stack.tf @@ -23,14 +23,14 @@ resource "local_file" "stack_file" { name: default configuration: {} %{endif} - container_registry: %{if var.enable_container_registry || var.enable_orchestrator_kubeflow || var.enable_orchestrator_tekton || var.enable_orchestrator_kubernetes} + container_registry: id: ${uuid()} flavor: default name: k3d-${local.k3d_registry.name}-${random_string.cluster_id.result} configuration: uri: "k3d-${local.k3d_registry.name}-${random_string.cluster_id.result}.localhost:${local.k3d_registry.port}" -%{endif} +%{endif} orchestrator: %{if var.enable_orchestrator_kubeflow} id: ${uuid()} @@ -63,7 +63,7 @@ resource "local_file" "stack_file" { id: ${uuid()} flavor: local name: default - configuration: {} + configuration: {} %{endif} %{endif} %{endif} @@ -95,4 +95,4 @@ resource "local_file" "stack_file" { %{endif} ADD filename = "./k3d_stack_${replace(substr(timestamp(), 0, 16), ":", "_")}.yaml" -} \ No newline at end of file +}