Skip to content

Commit 7e3ad83

Browse files
authored
AGENT-1179: Return console-url for agent-installer (#7510)
The console-url should be returned prior to cluster completion for the agent-installer. This url is necessary for display in the OVE UI prior to the operator being available since it can't be accessed via this endpoint when the cluster installation is complete for the agent-installer.
1 parent ecf4703 commit 7e3ad83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/bminventory/inventory.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4142,7 +4142,8 @@ func (b *bareMetalInventory) GetCredentialsInternal(ctx context.Context, params
41424142
}
41434143
var consoleURL string
41444144
if operatorscommon.HasOperator(cluster.Cluster.MonitoredOperators, operators.OperatorConsole.Name) {
4145-
if !b.clusterApi.IsOperatorAvailable(&cluster, operators.OperatorConsole.Name) {
4145+
// For the agent-installer, the console URL needs to be available prior to the finalizing stage
4146+
if b.installerInvoker != "agent-installer" && !b.clusterApi.IsOperatorAvailable(&cluster, operators.OperatorConsole.Name) {
41464147
err := errors.New("console-url isn't available yet, it will be once console operator is ready as part of cluster finalizing stage")
41474148
log.WithError(err).Error("Failed to validate if operator is available")
41484149
return nil, common.NewApiError(http.StatusConflict, err)

0 commit comments

Comments
 (0)