Fix migrate -f command to work with comments
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
@@ -7,6 +7,13 @@ kind: ImageRepository
|
||||
apiVersion: image.toolkit.fluxcd.io/v1
|
||||
kind: ImagePolicy
|
||||
|
||||
---
|
||||
spec:
|
||||
wait: true
|
||||
dependsOn:
|
||||
- apiVersion: image.toolkit.fluxcd.io/v1 # update this from v1beta1
|
||||
kind: ImageRepository
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
⚠️ skipping irregular file testdata/migrate/file-system/dir/some-file-link.yaml
|
||||
✚ testdata/migrate/file-system/dir/some-dir/another-file.yaml:2: ImageUpdateAutomation v1beta2 -> v1
|
||||
✚ testdata/migrate/file-system/dir/some-dir/another-file.yml:3: ImageUpdateAutomation v1beta2 -> v1
|
||||
⚠️ testdata/migrate/file-system/dir/some-file.yaml:13: unexpected GroupVersion string: image.toolkit.fluxcd.io/v1/v2
|
||||
⚠️ testdata/migrate/file-system/dir/some-file.yaml:20: unexpected GroupVersion string: image.toolkit.fluxcd.io/v1/v2
|
||||
✚ testdata/migrate/file-system/dir/some-file.yaml:1: ImageRepository v1beta1 -> v1
|
||||
✚ testdata/migrate/file-system/dir/some-file.yaml:7: ImagePolicy v1beta2 -> v1
|
||||
✚ testdata/migrate/file-system/dir/some-file.yaml:14: ImageRepository v1beta1 -> v1
|
||||
⚠️ testdata/migrate/file-system/dir/some-file.yml:15: unexpected GroupVersion string: image.toolkit.fluxcd.io/v1/v2
|
||||
✚ testdata/migrate/file-system/dir/some-file.yml:3: ImageRepository v1beta2 -> v1
|
||||
✚ testdata/migrate/file-system/dir/some-file.yml:9: ImagePolicy v1beta1 -> v1
|
||||
|
||||
@@ -7,6 +7,13 @@ kind: ImageRepository
|
||||
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
||||
kind: ImagePolicy
|
||||
|
||||
---
|
||||
spec:
|
||||
wait: true
|
||||
dependsOn:
|
||||
- apiVersion: image.toolkit.fluxcd.io/v1beta1 # update this from v1beta1
|
||||
kind: ImageRepository
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user