Commit Graph

12 Commits (f04105bedecf42eaa5ec6e0f3c6d629f6a995f36)

Author SHA1 Message Date
Jonathan A. Sternberg e640104c9c
Fix ApplyEnvOverrides when a type that implements Unmarshaler is in a slice
Most parts of `ApplyEnvOverrides` will check if the value is empty
before attempting to apply the environment override. One exception is
that when a type implements Unmarshaler and it is within a slice, it
does not check that an empty value was passed.

This change fixes it so that we will not call `UnmarshalText` when the
environment variable is set to empty.
2018-11-18 10:49:04 -06:00
Jonathan A. Sternberg 1b738d3991 Allow customizing the unix socket group and permissions created by the server 2018-04-05 14:40:12 -05:00
Mark Rushakoff 4dc92875ef Handle embedded and ignored fields in toml env override
One of the closed source copies of applyEnvOverrides needed this
behavior.
2018-03-16 08:38:56 -07:00
Mark Rushakoff fbddcf7cad Move ApplyEnvOverrides to toml package
This code has been duplicated to other projects and its implementations
have grown out of sync. Now the code can live as a package-level
function rather than a method coupled with particular structs.
2018-03-14 15:23:46 -07:00
Jonathan A. Sternberg 87ed89ee74 Implement pull request feedback for human readable sizes 2017-11-01 13:08:51 -05:00
Andrew Hare ecb3952fa9 Allow human-readable byte sizes in config
Update support in the `toml` package for parsing human-readble byte sizes.
Supported size suffixes are "k" or "K" for kibibytes, "m" or "M" for
mebibytes, and "g" or "G" for gibibytes. If a size suffix isn't specified
then bytes are assumed.

In the config, `cache-max-memory-size` and `cache-snapshot-memory-size` are
now typed as `toml.Size` and support the new syntax.
2017-11-01 11:09:09 -05:00
Jason Wilder 6cc1a34704 Rename cluster package to coordinator 2016-05-11 11:41:05 -06:00
Ben Johnson 5a0d1ab7c1 rename influxdb/influxdb to influxdata/influxdb
This commit changes all the import and URL references from:

    github.com/influxdb/influxdb

to:

    github.com/influxdata/influxdb
2016-02-10 10:26:18 -07:00
Cory LaNou 516a80e4be reneable toml test TestConfig_Encode fixes #4691 2015-11-05 18:40:42 -06:00
Philip O'Toole 29dc25b90b Reduce test size to 1gb, for 32-int compatibility 2015-08-19 12:50:54 -07:00
Philip O'Toole 0848d9469f A gigabyte parsing testing only requires 2GB
Fixes issue #3732.
2015-08-19 11:20:19 -07:00
Ben Johnson 9d4527071e Refactor run command. 2015-05-29 14:59:57 -06:00