From 0b17d929a7c2c4d50a041211e53c0b7271c68d1c Mon Sep 17 00:00:00 2001 From: Erin Call Date: Fri, 22 May 2020 15:35:43 -0700 Subject: [PATCH] Document the purpose of settingAliases [#95] --- internal/env/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/env/config.go b/internal/env/config.go index dd5c352..6751be9 100644 --- a/internal/env/config.go +++ b/internal/env/config.go @@ -144,6 +144,10 @@ func (cfg *Config) deprecationWarn() { } } +// settingAliases provides alternate environment variable names for certain settings, either because +// they were renamed during drone-helm3's lifetime or for backward-compatibility with the original +// drone-helm. Most config options don't need to be included here; adding them to the main Config +// struct is sufficient. type settingAliases struct { Command string `envconfig:"helm_command"` AddRepos []string `envconfig:"helm_repos"`