You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,29 @@ To run the test, you need to have following cli installed: `kind`, `kubectl`, [`
78
78
--use-cluster-context my-cluster
79
79
```
80
80
81
+
### Auto-Copy Feature for New Versions
82
+
83
+
When testing upgrades from a provider version that doesn't have test manifests yet, the tool automatically helps by copying manifests from the latest available version that is lower than your specified source version.
84
+
85
+
**How it works:**
86
+
1. If the specified `--source-dir` doesn't exist, the tool checks if the Docker image exists in the registry
87
+
2. If the image exists, it finds the latest known version lower than your source version
88
+
3. Copies the test manifests from that version to your specified version
89
+
4. Displays: *"Could not be found - copying manifests from latest known version and applying them to this version"*
90
+
5. Continues with the upgrade test
91
+
92
+
**Example:**
93
+
```bash
94
+
# Testing upgrade from v1.0.5 (source) to v1.1.0 (newly released target)
95
+
# where v1.0.5 doesn't have manifests yet
96
+
./provider-test.sh upgrade-test \
97
+
--source crossplane/provider-btp:v1.0.5 \
98
+
--target crossplane/provider-btp:v1.1.0 \
99
+
--source-dir provider-btp/v1.0.5
100
+
```
101
+
102
+
This feature unblocks testing when you need to upgrade from a version that doesn't have manifests, allowing you to test the upgrade path to newly released versions.
103
+
81
104
## Development
82
105
Understanding the details of the tool is beneficial to developers.
0 commit comments