Skip to content

Commit

Permalink
[ipamd] throw an error on configuration validation failure (#1698)
Browse files Browse the repository at this point in the history
  • Loading branch information
veshij authored Oct 25, 2021
1 parent db4e993 commit 2b91029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ipamd/ipamd.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func New(rawK8SClient client.Client, cachedK8SClient client.Client) (*IPAMContex
//Let's validate if the configured combination of env variables is supported before we
//proceed any further
if !c.isConfigValid() {
return nil, err
return nil, fmt.Errorf("ipamd: failed to validate configuration")
}

c.awsClient.InitCachedPrefixDelegation(c.enablePrefixDelegation)
Expand Down

0 comments on commit 2b91029

Please sign in to comment.