diff --git a/web/src/Service.jsx b/web/src/Service.jsx index c7e592f..6b74be0 100644 --- a/web/src/Service.jsx +++ b/web/src/Service.jsx @@ -197,6 +197,7 @@ function Service(props) { } */} + { kustomization && source &&
Sync
Helm Status
diff --git a/web/src/utils.js b/web/src/utils.js index 5ada563..f3daf49 100644 --- a/web/src/utils.js +++ b/web/src/utils.js @@ -1,6 +1,10 @@ import jp from 'jsonpath' export function findSource(sources, reconciler) { + if (!reconciler) { // HelmReleases can be applied on the cluster manually => no reconciler + return undefined + } + let namespace = reconciler.metadata.namespace if (reconciler.spec.sourceRef.namespace) { // namespace is not mandatory namespace = reconciler.spec.sourceRef.namespace