Skip to content

Commit

Permalink
Automatically create the directory if it does not exist (kurator-dev#617
Browse files Browse the repository at this point in the history
)

Signed-off-by: wulianglongrd <[email protected]>
  • Loading branch information
wulianglongrd authored Apr 8, 2024
1 parent 93f98e1 commit 1248e6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/crd-gen-tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func main() {
clusterApiVersion := env("CLUSTER_API_PROVIDER_VERSION", "v1.2.5")
awsProviderVersion := env("AWS_PROVIDER_VERSION", "v2.0.0")

if err := os.MkdirAll(crdOutputDir, 0755); err != nil {
log.Fatalf("MkdirAll %s got error %+v", crdOutputDir, err)
}

genCapiCore(crdOutputDir, clusterApiVersion)
genCapiBootstrap(crdOutputDir, clusterApiVersion)
genCapiControlplane(crdOutputDir, clusterApiVersion)
Expand Down

0 comments on commit 1248e6b

Please sign in to comment.