Skip to content

Commit

Permalink
Fix broken workload upgrade (#4669)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmac authored Oct 13, 2020
1 parent 687ec2f commit cd50ca3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export class UpgradeReleaseComponent {
// Future
public showAdvancedOptions = false;

private chartUrl: string;

constructor(
store: Store<any>,
public helper: HelmReleaseHelperService,
Expand Down Expand Up @@ -103,6 +105,7 @@ export class UpgradeReleaseComponent {
).pipe(
first(),
tap(([release, chartVersionDetail]) => {
this.chartUrl = this.chartsService.getChartURL(chartVersionDetail);
const schemaUrl = this.chartsService.getChartSchemaURL(chartVersionDetail, chart.name, chart.repo);
this.config = {
schemaUrl,
Expand Down Expand Up @@ -137,7 +140,7 @@ export class UpgradeReleaseComponent {
version: this.version.attributes.version,
},
monocularEndpoint: this.monocularEndpointId === stratosMonocularEndpointGuid ? null : this.monocularEndpointId,
chartUrl: this.chartsService.getChartURL(this.version)
chartUrl: this.chartUrl
};

// Make the request
Expand Down

0 comments on commit cd50ca3

Please sign in to comment.