@@ -27,6 +27,7 @@ import (
27
27
"github.com/SovereignCloudStack/csctl/pkg/github"
28
28
"github.com/SovereignCloudStack/csctl/pkg/github/client"
29
29
"github.com/SovereignCloudStack/csctl/pkg/hash"
30
+ "github.com/SovereignCloudStack/csctl/pkg/providerplugin"
30
31
"github.com/SovereignCloudStack/csctl/pkg/template"
31
32
"github.com/spf13/cobra"
32
33
"gopkg.in/yaml.v3"
@@ -91,6 +92,11 @@ func GetCreateOptions(ctx context.Context, clusterStackPath string) (*CreateOpti
91
92
createOption .ClusterStackPath = clusterStackPath
92
93
createOption .Config = config
93
94
95
+ _ , _ , err = providerplugin .GetProviderExecutable (& config )
96
+ if err != nil {
97
+ return createOption , err
98
+ }
99
+
94
100
currentHash , err := hash .GetHash (clusterStackPath )
95
101
if err != nil {
96
102
return nil , fmt .Errorf ("failed to get hash: %w" , err )
@@ -109,7 +115,7 @@ func GetCreateOptions(ctx context.Context, clusterStackPath string) (*CreateOpti
109
115
return nil , fmt .Errorf ("failed to create new github client: %w" , err )
110
116
}
111
117
112
- // update the metadata kubernetes version with the csmctl .yaml config
118
+ // update the metadata kubernetes version with the csctl .yaml config
113
119
createOption .Metadata .Versions .Kubernetes = config .Config .KubernetesVersion
114
120
115
121
latestRepoRelease , err := github .GetLatestReleaseFromRemoteRepository (ctx , mode , & config , gc )
@@ -189,7 +195,7 @@ func (c *CreateOptions) generateRelease() error {
189
195
if err := os .MkdirAll (c .ClusterStackReleaseDir , os .ModePerm ); err != nil {
190
196
return fmt .Errorf ("failed to create output directory: %w" , err )
191
197
}
192
-
198
+ fmt . Printf ( "Creating output in %s \n " , c . ClusterStackReleaseDir )
193
199
// Write the current hash
194
200
hashJSONData , err := json .MarshalIndent (c .CurrentReleaseHash , "" , " " )
195
201
if err != nil {
@@ -244,5 +250,5 @@ func (c *CreateOptions) generateRelease() error {
244
250
return fmt .Errorf ("failed to write metadata: %w" , err )
245
251
}
246
252
247
- return nil
253
+ return providerplugin . CreateNodeImages ( & c . Config , c . ClusterStackPath , c . ClusterStackReleaseDir )
248
254
}
0 commit comments