Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions launchpad/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ type PublishPlan struct {

type PublishOutput struct {
Duration time.Duration
RegistryHost registryHost
registryHost registryHost
publishedImages map[string]string
}

Expand Down Expand Up @@ -154,6 +154,13 @@ func (do *PublishOutput) SetDuration(d time.Duration) {
}
}

func (o *PublishOutput) RegistryHost() string {
if o == nil {
return ""
}
return string(o.registryHost)
}

func getRemoteRegistryInfo(
ctx context.Context,
pubOpts *PublishOptions,
Expand Down Expand Up @@ -479,7 +486,7 @@ func (p *Pad) publishDockerImage(

return &PublishOutput{
publishedImages: published,
RegistryHost: plan.registry.GetHost(),
registryHost: plan.registry.GetHost(),
}, nil
}

Expand Down
2 changes: 1 addition & 1 deletion padcli/command/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func makeDeployOptions(
helm.NewImageProvider(
buildOutput.Image.String(),
publishOutput.PublishedImages(),
string(publishOutput.RegistryHost),
publishOutput.RegistryHost(),
),
jetCfg,
cluster,
Expand Down