Skip to content

Commit bd731a6

Browse files
committed
add CurrentSequence comment
1 parent 7ae3430 commit bd731a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/handlers/embedded_cluster_node_join_command.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ func (h *Handler) GetEmbeddedClusterNodeJoinCommand(w http.ResponseWriter, r *ht
180180
// attempt to get the current app version label from the installed app
181181
installedApps, err := store.GetStore().ListInstalledApps()
182182
if err == nil && len(installedApps) > 0 {
183+
// "CurrentSequence" is the latest available version of the app in a non-embedded cluster.
184+
// However, in an embedded cluster, the "CurrentSequence" is the latest version of the app.
185+
// This is because EC uses the new upgrade flow, which only downloads and renders app releases when
186+
// the app version is being installed.
183187
appVersion, err := store.GetStore().GetAppVersion(installedApps[0].ID, installedApps[0].CurrentSequence)
184188
if err != nil {
185189
logger.Error(fmt.Errorf("failed to get app version: %w", err))

0 commit comments

Comments
 (0)