-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from helgi/feature/env-handling
- Loading branch information
Showing
13 changed files
with
221 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package main | ||
|
||
import "time" | ||
|
||
// Configs struct deals with env configuration | ||
type Configs struct { | ||
Interval time.Duration `env:"ROLLER_INTERVAL" envDefault:"30s"` | ||
CheckDelay int `env:"ROLLER_CHECK_DELAY" envDefault:"30"` | ||
Drain bool `env:"ROLLER_DRAIN" envDefault:"true"` | ||
DrainForce bool `env:"ROLLER_DRAIN_FORCE" envDefault:"true"` | ||
IncreaseMax bool `env:"ROLLER_CAN_INCREASE_MAX" envDefault:"false"` | ||
IgnoreDaemonSets bool `env:"ROLLER_IGNORE_DAEMONSETS" envDefault:"true"` | ||
DeleteLocalData bool `env:"ROLLER_DELETE_LOCAL_DATA" envDefault:"false"` | ||
OriginalDesiredOnTag bool `env:"ROLLER_ORIGINAL_DESIRED_ON_TAG" envDefault:"false"` | ||
ASGS []string `env:"ROLLER_ASG,required" envSeparator:","` | ||
KubernetesEnabled bool `env:"ROLLER_KUBERNETES" envDefault:"true"` | ||
Verbose bool `env:"ROLLER_VERBOSE" envDefault:"false"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.