fix: registries.yaml file not marshalled correctly by k8s yaml package

pull/1283/head
iwilltry42 1 year ago
parent 5e582b87d6
commit f80cd8f374
No known key found for this signature in database
GPG Key ID: FD4E78FBAD6B1550
  1. 3
      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(&registryConfig)
regConfBytes, err := goyaml.Marshal(&registryConfig)
if err != nil {
return fmt.Errorf("Failed to marshal registry configuration: %+v", err)
}

Loading…
Cancel
Save