Skip to content

Commit

Permalink
fix exported yaml for stack on k3d (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
strickvl authored Nov 23, 2023
1 parent b4bbe28 commit f59be6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mlstacks/terraform/k3d-modular/output_stack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
Expand Down Expand Up @@ -63,7 +63,7 @@ resource "local_file" "stack_file" {
id: ${uuid()}
flavor: local
name: default
configuration: {}
configuration: {}
%{endif}
%{endif}
%{endif}
Expand Down Expand Up @@ -95,4 +95,4 @@ resource "local_file" "stack_file" {
%{endif}
ADD
filename = "./k3d_stack_${replace(substr(timestamp(), 0, 16), ":", "_")}.yaml"
}
}

0 comments on commit f59be6b

Please sign in to comment.