Commit ac8470e
authored
use latest tag before non-release version (#164)
Updates the `build-controller-release.sh` script to check for the latest
Git tag on the target service controller repository before defaulting
the RELEASE_VERSION to `v0.0.0-non-release-version`. This allows
developers to regenerate their service controllers with new ACK runtimes
without overwriting the static manifests' image versions from the latest
published Git tag to `v0.0.0-non-release-version`. For service
controllers that have yet to release any images, the
`v0.0.0-non-release-version` continues to be used.
Before this patch:
```
[jaypipes@thelio code-generator]$ make build-controller SERVICE=rds
building ack-generate ... ok.
==== building rds-controller ====
Copying common custom resource definitions into rds
Building Kubernetes API objects for rds
Generating deepcopy code for rds
Generating custom resource definitions for rds
Building service controller for rds
Generating RBAC manifests for rds
Running gofmt against generated code for rds
==== building rds-controller release artifacts ====
Building release artifacts for rds-v0.0.0-non-release-version
Generating common custom resource definitions
Generating custom resource definitions for rds
Generating RBAC manifests for rds
```
After this patch:
```
[jaypipes@thelio code-generator]$ make build-controller SERVICE=rds
building ack-generate ... ok.
==== building rds-controller ====
Copying common custom resource definitions into rds
Building Kubernetes API objects for rds
Generating deepcopy code for rds
Generating custom resource definitions for rds
Building service controller for rds
Generating RBAC manifests for rds
Running gofmt against generated code for rds
==== building rds-controller release artifacts ====
Building release artifacts for rds-v0.0.4
Generating common custom resource definitions
Generating custom resource definitions for rds
Generating RBAC manifests for rds
```
Note that at this time, the RDS controller's latest published image is
`v0.0.4`.
Issue aws-controllers-k8s/community#912
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.1 parent 5a886f9 commit ac8470e
1 file changed
+21
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 44 | + | |
57 | 45 | | |
58 | 46 | | |
59 | 47 | | |
| |||
142 | 130 | | |
143 | 131 | | |
144 | 132 | | |
145 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
246 | 252 | | |
247 | 253 | | |
248 | 254 | | |
249 | | - | |
| 255 | + | |
0 commit comments