{{- $inventoryCRD := lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" .Release.Namespace "machineinventories.elemental.cattle.io" -}} {{- if $inventoryCRD -}} {{- if $inventoryCRD.metadata.deletionTimestamp -}} {{- required "CRDs from previous installations are pending to be removed (deletionTimestamp is set). Fully deleting them before (re-)installing is required" "" -}} {{- end -}} {{- end -}}