Warn instead of error on missing config version
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -189,6 +189,8 @@ checkout as-is. Recipe commit hashes are also supported as values for
|
||||
deployedVersion = deployMeta.Version
|
||||
}
|
||||
|
||||
// Gather secrets
|
||||
|
||||
secStats, err := secret.PollSecretsStatus(cl, app)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
@ -204,6 +206,8 @@ checkout as-is. Recipe commit hashes are also supported as values for
|
||||
secretInfo = append(secretInfo, fmt.Sprintf("%s: %s", secStat.LocalName, secStat.Version))
|
||||
}
|
||||
|
||||
// Gather configs
|
||||
|
||||
// Get current configs from existing deployment
|
||||
currentConfigNames, err := client.GetConfigNamesForStack(cl, context.Background(), app.StackName())
|
||||
if err != nil {
|
||||
@ -230,7 +234,9 @@ checkout as-is. Recipe commit hashes are also supported as values for
|
||||
versionKey := strings.ToUpper(configName) + "_VERSION"
|
||||
newVersion, exists := abraShEnv[versionKey]
|
||||
if !exists {
|
||||
log.Fatalf("No version found for config %s", configName)
|
||||
log.Warnf("No version found for config %s", configName)
|
||||
configInfo = append(configInfo, fmt.Sprintf("%s: ? (missing)", configName))
|
||||
continue
|
||||
}
|
||||
|
||||
if currentVersion, exists := currentConfigs[configName]; exists {
|
||||
@ -261,6 +267,7 @@ checkout as-is. Recipe commit hashes are also supported as values for
|
||||
); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
// FIXME: just for debugging
|
||||
return
|
||||
|
||||
stack.WaitTimeout, err = appPkg.GetTimeoutFromLabel(compose, stackName)
|
||||
|
Reference in New Issue
Block a user