import { HelmRelease } from '../../kubernetes/helmRelease' ; import { KubernetesObjectKinds } from '../../kubernetes/kubernetesTypes' ; import { NodeContext } from './nodeContext' ; import { WorkloadNode } from './workloadNode' ; /**
 * Defines Helm release tree view item for display in GitOps Workloads tree view.
 */ export class HelmReleaseNode extends WorkloadNode { /**
     * Helm release kubernetes resource object
     */ resource : HelmRelease ; param helmRelease constructor ( helmRelease ) { super ( helmRelease . metadata ?. name || '' , helmRelease ) ; this . resource = helmRelease ; this . makeCollapsible ( ) ; } get contexts ( ) { const contextsArr = [ KubernetesObjectKinds . HelmRelease ] ; contextsArr . push ( this . resource . spec . suspend ? NodeContext . Suspend : NodeContext . NotSuspend ) ; return contextsArr ; } }