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

This commit is contained in:
2025-05-14 21:40:31 -04:00
parent 6fd817726d
commit 5259fb9aa4
2 changed files with 33 additions and 8 deletions

View File

@@ -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("")
}