Skip to content

Commit

Permalink
fix[ui]: handle properly helm releases that use OCI repo sources (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersongirao authored Oct 15, 2024
1 parent bd74d3c commit 05a6a54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/HelmRevisionWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export function HelmRevisionWidget(props) {
const reconcilingCondition = reconcilingConditions.length === 1 ? reconcilingConditions[0] : undefined
const reconciling = reconcilingCondition && reconcilingConditions[0].status === "True"

const sourceRef = helmRelease.spec.chart.spec.sourceRef
const sourceRef = helmRelease.spec.chart ? helmRelease.spec.chart.spec.sourceRef : helmRelease.spec.chartRef

const namespace = sourceRef.namespace ? sourceRef.namespace : helmRelease.metadata.namespace
const navigationHandler = () => handleNavigationSelect("Sources", namespace, sourceRef.name, sourceRef.kind)

Expand Down Expand Up @@ -84,4 +85,4 @@ export function HelmRevisionWidget(props) {
</>

)
}
}

0 comments on commit 05a6a54

Please sign in to comment.