Skip to content

Commit

Permalink
init-pod: don't init multus CR if multus is disable
Browse files Browse the repository at this point in the history
  • Loading branch information
cyclinder committed Dec 7, 2023
1 parent 7defbbf commit faa3809
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/spiderpool-init/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ func Execute() {
}
}

if err = InitMultusDefaultCR(ctx, &config, client); err != nil {
logger.Fatal(err.Error())
if config.enableMultusConfig {
if err = InitMultusDefaultCR(ctx, &config, client); err != nil {
logger.Fatal(err.Error())
}
}

if err = makeReadinessReady(&config); err != nil {
Expand Down

0 comments on commit faa3809

Please sign in to comment.