kindplane dump
kindplane dump¶
Export Crossplane and related resources from the cluster
Synopsis¶
Export Crossplane and related resources from a Kind cluster in a GitOps-friendly format.
This command exports: - Crossplane Providers, ProviderConfigs, Configurations, Functions - CompositeResourceDefinitions (XRDs) and Compositions - Composite Resources (XRs) and Claims (optional discovery) - External Secrets Operator SecretStores and ExternalSecrets - Custom namespaces, Secrets (redacted), and ConfigMaps - Kind cluster configuration (kind-config.yaml) for cluster recreation
The exported resources are cleaned for GitOps: - Cluster-specific metadata removed (uid, resourceVersion, managedFields) - Unnecessary annotations stripped (kubectl.kubernetes.io/last-applied-configuration) - Secret data redacted with placeholders - Status fields removed
Examples¶
# Dump all resources to ./dump directory
kindplane dump
# Dump to a specific directory
kindplane dump -o ./exported
# Dump to stdout (single YAML)
kindplane dump --stdout
# Dry run - show what would be dumped
kindplane dump --dry-run
# Dump only specific resource types
kindplane dump --include=providers,compositions,xrds
# Exclude certain resource types
kindplane dump --exclude=secrets,configmaps
# Dump from a specific namespace
kindplane dump -n my-namespace
# Include system namespaces
kindplane dump --include-system
# Discover and dump composite resource instances
kindplane dump --discover-composites
# Skip the Kind cluster configuration
kindplane dump --no-kind-config
Options¶
-A, --all-namespaces dump from all namespaces (default true)
--discover-composites discover and dump composite resource instances (default true)
--dry-run show what would be dumped without fetching
--exclude string resource types to exclude (comma-separated)
--format string output format: 'files' (separate files) or 'single' (one multi-doc YAML) (default "files")
-h, --help help for dump
--include string resource types to include (comma-separated)
--include-system include system namespaces (kube-system, etc.)
-n, --namespace string dump from specific namespace only
--no-kind-config skip including the Kind cluster configuration
--no-readme skip generating README.md
-o, --output-dir string output directory for dumped resources (default "./dump")
--skip-secrets skip secrets entirely
--stdout print to stdout instead of files
--timeout duration timeout for dump operation (default 2m0s)
Options inherited from parent commands¶
SEE ALSO¶
- kindplane - Bootstrap Kind clusters with Crossplane