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
Bumping OSC version is a bit tricky as it should happen at many
locations scattered everywhere in the tree. Commit e2a4c34
introduced an `OSC_VERSION` tag to help tracking these locations.
Unfortunately, `make bundle` wreaks havoc in this logic as it
overwrites lines at several locations and drops the tag:
- everywhere in the `bundle` directory
- some locations in the base CSV
- a single location in `config/manager/kustomization.yaml`
As a result, we can only rely on `OSC_VERSION` for a subset of
the locations that need care. The other ones are:
- the `olm.skipRange` annotation in the base CSV
- the `spec.version` field in the base CSV
- the `spec.replaces` field in the base CSV
`make bundle` should then be run to propagate the version bump
to the rest of the repo.
Document all that.
While here set the tag for the metrics-server container that was
recently added.
Signed-off-by: Greg Kurz <[email protected]>
(cherry picked from commit 1c33256)
Signed-off-by: Greg Kurz <[email protected]>
Copy file name to clipboardExpand all lines: docs/DEVELOPMENT.md
+25-12Lines changed: 25 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -131,20 +131,33 @@ Uncomment all entries marked with `[CERTMANAGER]` in manifest files under `confi
131
131
make install && make deploy
132
132
```
133
133
134
-
### Updating versions
134
+
### Adding new containers to OSC
135
135
136
-
When starting a new version, the locations tagged with `OSC_VERSION` should be updated with the new version number. A few places are also tagged with `OSC_VERSION_BEFORE`, referring to the version being replaced.
136
+
When adding a new container definition in some pod yaml, make sure to tag the `image`
137
+
field with `OSC_VERSION`, e.g.
137
138
138
-
On the `main` branch `1.5.2`, the following locations were identified, but looking for the version pattern would give too many false positives on `devel` with `1.7.0`, and even more false positives were found with `1.8.0`. Most hits were in `go.mod` or `go.sum` and should be ignored, since they refer to dependencies with unrelated version numbering.
0 commit comments