Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Innis <[email protected]>
  • Loading branch information
jmdeal and jonathan-innis authored Oct 18, 2023
1 parent 93e5305 commit d8cfa93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/operator/options/options_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (o Options) validateAssumeRoleDuration() error {

func (o Options) validateIsolateVPC() error {
if o.isolatedVPC != "true" && o.isolatedVPC != "false" {
return fmt.Errorf("%q is not a valid value for isolate-vpc, options are true or false", o.isolatedVPC)
return fmt.Errorf("%q is not a valid value for isolated-vpc, options are true or false", o.isolatedVPC)
}
return nil
}
Expand All @@ -54,21 +54,21 @@ func (o Options) validateEndpoint() error {
// url.Parse() will accept a lot of input without error; make
// sure it's a real URL
if err != nil || !endpoint.IsAbs() || endpoint.Hostname() == "" {
return fmt.Errorf("%q not a valid cluster-endpoint URL", o.ClusterEndpoint)
return fmt.Errorf("%q is not a valid cluster-endpoint URL", o.ClusterEndpoint)
}
return nil
}

func (o Options) validateVMMemoryOverheadPercent() error {
if o.VMMemoryOverheadPercent < 0 {
return fmt.Errorf("vm-memory-overhead-percent may not be negative")
return fmt.Errorf("vm-memory-overhead-percent cannot be negative")
}
return nil
}

func (o Options) validateReservedENIs() error {
if o.ReservedENIs < 0 {
return fmt.Errorf("reserved-enis may not be negative")
return fmt.Errorf("reserved-enis cannot be negative")
}
return nil
}
Expand Down

0 comments on commit d8cfa93

Please sign in to comment.