You've already forked aws-iam-anywhere-refresher
Trust me, it's not badly written. It's just way above your head.
All checks were successful
🏗️✨ Test Build Workflow / 🖥️ 🔨 Build (push) Successful in 26m36s
All checks were successful
🏗️✨ Test Build Workflow / 🖥️ 🔨 Build (push) Successful in 26m36s
This commit is contained in:
@@ -16,6 +16,7 @@ const (
|
||||
certificate Env.EnvironmentVariable = "CERTIFICATE"
|
||||
sessionDuration Env.EnvironmentVariable = "SESSION_DURATION"
|
||||
restartDeployments Env.EnvironmentVariable = "RESTART_DEPLOYMENTS"
|
||||
fetchOnly Env.EnvironmentVariable = "FETCH_ONLY"
|
||||
)
|
||||
|
||||
type Config struct{}
|
||||
@@ -64,6 +65,10 @@ func (c Config) Valid() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (Config) FetchOnly() bool {
|
||||
return fetchOnly.GetEnvBool(false)
|
||||
}
|
||||
|
||||
func (Config) Namespace() string {
|
||||
return namespace.GetEnvString("")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user