Start time of the stage
TPI Export#
Workflows → TETPI Exports
Exports EDA objects into a TPI workbook file. The generated file is always available as a workflow artifact. When tpiStorage is set and the referenced TPIStorage CR exists in the workflow namespace, the file is also uploaded there and -- when the path can be sanitized into a valid Kubernetes DNS-1123 name -- a TPI object is created in the workflow namespace, named <storage-name>-<sanitized-path> (path lowercased; any character outside [a-z0-9.-] replaced with -; leading and trailing - and . trimmed). If the TPIStorage CR is missing, the workbook is still written to the workflow artifact, then the export fails, so the run is visibly unsuccessful; no upload occurs.
Filter refinement#
The typical export cycle is iterative: export, review, refine the filter, and re-export until the TPI content matches expectations.
- Create a
TPIFilterselecting the desired API groups, kinds, and optionally label selectors and column exclusions. - Trigger a
TPIExportreferencing that filter, a target path, and optionally aTPIStorage. - Download and review the exported TPI -- either from the
TPIStorageserver or directly from the workflow artifact. - Adjust the
TPIFilter(add/remove kinds, exclude columns, reorder columns, narrow label selectors) and re-export until the result is satisfactory.
Child resources#
By default, TPIExport does not include child resources -- objects EDA manages under a parent resource. Enable Include child resources on the TPIFilter (set includeChildResources: true on the TPIFilter spec) when you need those rows in the workbook.
If the TPIFilter selects only kinds where every matching instance in the cluster is a child resource, the export can end up empty for those resource types: by default, each matching instance is omitted, so there are no data rows. An example is exporting only BridgeDomain when each bridge domain is part of a parent VirtualNetwork. To change that, enable includeChildResources on the filter, or widen the filter to include the parent kind (for example VirtualNetwork) so matching parent objects appear as normal rows in the workbook.
Dependencies#
The TPIExport workflow has no dependencies.
Referenced resources#
The TPIExport workflow optionally references:
TPIFilterviaspec.tpifilter. When unset, all API resources visible to the workflow's service account are exported.TPIStorageviaspec.tpiStorage. When unset, the workbook is only available as a workflow artifact (no upload, noTPICR created).
Both must live in the same namespace as the TPIExport workflow.
Examples#
Custom Resource Definition#
To browse the Custom Resource Definition go to crd.eda.dev.
TPIExport
SPEC
TPIExportSpec defines the desired state of TPIExport
-
Path to the TPI file to be created. If TPI Storage is provided, this path is relative to the storage root.
-
Reference to the TPIStorage resource. If left empty, the xlxs will only be available in the workflow artifacts.
-
TPIFilter to be used on the export. If left empty, export all API resources available to the current user.
STATUS
TPIExportStatus defines the observed state of TPIExport
-
Number of schemas discovered
range: >= 0