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