Skip to content

Commit

Permalink
Merge pull request #276 from lxiaopei/topic/lxiaopei/remove_config
Browse files Browse the repository at this point in the history
Remove validation check for default_project and external_ipv4_blocks
  • Loading branch information
lxiaopei committed Aug 14, 2023
2 parents d6c96f7 + 51e997c commit 9864be7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,6 @@ func (nsxConfig *NsxConfig) validate(enableVPC bool) error {
if err := nsxConfig.validateCert(); err != nil {
return err
}
nsxConfig.ExternalIPv4Blocks = removeEmptyItem(nsxConfig.ExternalIPv4Blocks)
if enableVPC {
if nsxConfig.DefaultProject == "" || len(nsxConfig.ExternalIPv4Blocks) == 0 {
err := errors.New("default_project is none or external_ipv4_blocks is empty")
log.Error(err, "validate VPCConfig failed")
return err
}
}
return nil
}

Expand Down

0 comments on commit 9864be7

Please sign in to comment.