From f80cd8f3747ff897e86ddeca54a2de390eafc852 Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Wed, 17 May 2023 14:41:37 +0200 Subject: [PATCH] fix: registries.yaml file not marshalled correctly by k8s yaml package --- pkg/client/cluster.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/client/cluster.go b/pkg/client/cluster.go index 20c756da..52b49590 100644 --- a/pkg/client/cluster.go +++ b/pkg/client/cluster.go @@ -53,6 +53,7 @@ import ( k3d "github.com/k3d-io/k3d/v5/pkg/types" "github.com/k3d-io/k3d/v5/pkg/types/k3s" "github.com/k3d-io/k3d/v5/pkg/util" + goyaml "gopkg.in/yaml.v2" ) // ClusterRun orchestrates the steps of cluster creation, configuration and starting @@ -233,7 +234,7 @@ func ClusterPrep(ctx context.Context, runtime k3drt.Runtime, clusterConfig *conf } } if registryConfig != nil { - regConfBytes, err := yaml.Marshal(®istryConfig) + regConfBytes, err := goyaml.Marshal(®istryConfig) if err != nil { return fmt.Errorf("Failed to marshal registry configuration: %+v", err) }