diff --git a/launchpad/publish.go b/launchpad/publish.go index 55d52dc..b657f83 100644 --- a/launchpad/publish.go +++ b/launchpad/publish.go @@ -114,7 +114,7 @@ type PublishPlan struct { type PublishOutput struct { Duration time.Duration - RegistryHost registryHost + registryHost registryHost publishedImages map[string]string } @@ -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, @@ -479,7 +486,7 @@ func (p *Pad) publishDockerImage( return &PublishOutput{ publishedImages: published, - RegistryHost: plan.registry.GetHost(), + registryHost: plan.registry.GetHost(), }, nil } diff --git a/padcli/command/deploy.go b/padcli/command/deploy.go index 78aca85..8d55d3c 100644 --- a/padcli/command/deploy.go +++ b/padcli/command/deploy.go @@ -63,7 +63,7 @@ func makeDeployOptions( helm.NewImageProvider( buildOutput.Image.String(), publishOutput.PublishedImages(), - string(publishOutput.RegistryHost), + publishOutput.RegistryHost(), ), jetCfg, cluster,