refactor: only apply the cluster issuers helm chart when setting properties
Otherwise, we're constantly re-installing the same helm chart during deploys, leading to longer deploys.
This commit is contained in:
1 parent
9ffd5ada71
commit
377cfc7f59
2 files changed
+10
-5
No files matched your search
@@ -734,6 +734,16 @@ func CommandReport(appName string, format string, infoFlag string) error {
|
||||
// CommandSet set or clear a scheduler-k3s property for an app
|
||||
func CommandSet(appName string, property string, value string) error {
|
||||
common.CommandPropertySet("scheduler-k3s", appName, property, value, DefaultProperties, GlobalProperties)
|
||||
|
||||
letsencryptProperties := map[string]bool{
|
||||
"letsencrypt-email-prod": true,
|
||||
"letsencrypt-email-stag": true,
|
||||
"letsencrypt-server": true,
|
||||
}
|
||||
if appName == "--global" && letsencryptProperties[property] {
|
||||
return applyClusterIssuers(context.Background())
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user