kindplane dump¶

Export cluster resources for GitOps workflows.
Usage¶
Flags¶
| Flag | Short | Description |
|---|---|---|
--output | -o | Output directory (default: ./dump) |
--stdout | Print to stdout instead of files | |
--dry-run | Preview what would be dumped | |
--include | Resource types to include (comma-separated) | |
--exclude | Resource types to exclude (comma-separated) | |
--skip-secrets | Skip all secrets |
Description¶
The dump command exports Crossplane resources from your cluster in a GitOps-friendly format.
This is useful for:
- Migrating resources to a GitOps repository
- Backing up cluster state
- Creating reproducible configurations
- Sharing configurations between environments
Examples¶
Dump All Resources¶
Creates files in ./dump directory.
Custom Output Directory¶
Print to Stdout¶
Dry Run¶
Preview what would be dumped:
Include Specific Resources¶
Exclude Resources¶
Skip Secrets¶
Output Structure¶
The dump command creates a structured directory:
dump/
├── providers/
│ ├── provider-aws.yaml
│ └── provider-kubernetes.yaml
├── providerconfigs/
│ ├── default-aws.yaml
│ └── default-kubernetes.yaml
├── compositions/
│ ├── database-aws.yaml
│ └── network-aws.yaml
├── xrds/
│ ├── xdatabases.example.org.yaml
│ └── xnetworks.example.org.yaml
├── claims/
│ └── my-database.yaml
└── managed/
├── s3-bucket-abc123.yaml
└── rds-instance-xyz789.yaml
Resource Types¶
Available resource types for --include/--exclude:
| Type | Description |
|---|---|
providers | Crossplane Provider resources |
providerconfigs | ProviderConfig resources |
compositions | Composition resources |
xrds | CompositeResourceDefinition resources |
claims | Composite Resource Claims |
managed | Managed Resources |
secrets | Kubernetes Secrets |
configmaps | Kubernetes ConfigMaps |
Resource Cleaning¶
Dumped resources are cleaned for GitOps:
- Removed fields:
metadata.uidmetadata.resourceVersionmetadata.generationmetadata.creationTimestampmetadata.managedFieldsstatus(optional)
GitOps Integration¶
ArgoCD¶
# application.yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: crossplane-resources
spec:
source:
repoURL: https://github.com/org/gitops-repo.git
path: crossplane/dump
destination:
server: https://kubernetes.default.svc
Flux¶
# kustomization.yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: crossplane-resources
spec:
path: ./crossplane/dump
sourceRef:
kind: GitRepository
name: gitops-repo