Commit 2f64e91
committed
fix ack-generate release
When running `./test/release/test-helm.sh` from the community
repository, I was getting errors like this:
```
[jaypipes@thelio community]$ ./test/release/test-helm.sh s3 v0.0.2-37-g6c6957d-dirty
testing Helm release for s3 for release version v0.0.2-37-g6c6957d-dirty.
Building release artifacts for s3-v0.0.2-37-g6c6957d-dirty
Error: open apis: no such file or directory
```
The above was due to the `ack-generate release` command calling the
`getLatestAPIVersion()` function which in turn attempted to read the
(old, pre-split-repo) `services/$SERVICE/apis/` directory. We don't
actually need the latest API version when generating release artifacts
for a controller, but the `pkg/generate.New()` function requires an
APIVersion argument, so I'm just passing an empty string here, which
solves the above problem and allows the helm test to complete.1 parent b22e00a commit 2f64e91
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 83 | | |
88 | | - | |
| 84 | + | |
89 | 85 | | |
90 | 86 | | |
91 | 87 | | |
| |||
0 commit comments