ensure imagevolume name

This commit is contained in:
iwilltry42 2021-09-22 21:22:21 +02:00
parent 42e8b5435c
commit 6f835ca80d
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
2 changed files with 2 additions and 1 deletions

View File

@ -298,6 +298,7 @@ func ClusterPrepImageVolume(ctx context.Context, runtime k3drt.Runtime, cluster
}
clusterCreateOpts.GlobalLabels[k3d.LabelImageVolume] = imageVolumeName
cluster.ImageVolume = imageVolumeName
// attach volume to nodes
for _, node := range cluster.Nodes {

View File

@ -268,7 +268,7 @@ func EnsureToolsNode(ctx context.Context, runtime runtimes.Runtime, cluster *k3d
var err error
cluster, err = ClusterGet(ctx, runtime, cluster)
if err != nil {
return nil, fmt.Errorf("failed to retrieve cluster '%s': %w", cluster.Name, err)
return nil, fmt.Errorf("failed to retrieve cluster: %w", err)
}
if cluster.Network.Name == "" {