ensure imagevolume name
This commit is contained in:
parent
42e8b5435c
commit
6f835ca80d
@ -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 {
|
||||
|
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user