Skip to content

Commit

Permalink
fix: workaround for nightly versions in checkConfig() (#1281)
Browse files Browse the repository at this point in the history
Co-authored-by: SIGSEGV <[email protected]>
  • Loading branch information
AstroProfundis and lucklove committed Apr 7, 2021
1 parent 2249e7e commit 297649b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/cluster/spec/server_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,14 @@ func checkConfig(ctx context.Context, e ctxt.Executor, componentName, clusterVer
return perrs.Annotate(ErrorCheckConfig, err.Error())
}

clsVer := utils.Version(clusterVersion)
ver := clusterVersion
if clsVer.IsNightly() {
ver = utils.NightlyVersionAlias
}
// FIXME: workaround for nightly versions, need refactor
if bindVersion != nil {
ver = bindVersion(componentName, clusterVersion)
ver = bindVersion(componentName, ver)
}

entry, err := repo.ComponentBinEntry(componentName, ver)
Expand Down

0 comments on commit 297649b

Please sign in to comment.