Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[script] Update bumper script to handle SNAPSHOT versions
Browse files Browse the repository at this point in the history
This commit updates the `bumper.py` script to handle the
workflows for updating the versions to test staging artifacts
and before a release, for example:

- update 7.7.0-SNAPSHOT to 7.7.0 before tagging a release, by running
  `env BUMPER_VERSION_7="7.7.0" ./helpers/bumper.py`
- update 7.7.0-SNAPHSHOT to 7.7.0-abcdefgh for testing staging artifacts
by running:
  `env BUMPER_VERSION_7="7.7.0-abcdefgh" BUMPER_USE_STAGING_IMAGES="true" ./helpers/bumper.py`

For now this script do not handle the bump from 7.7.0 to 7.7.1-SNAPSHOT
for the next developement iteration after a release. In the meantime
this update should be done manually.
  • Loading branch information
mgreau committed Apr 15, 2020
1 parent 26bd1ca commit ca7ed63
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions apm-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ easily be overridden in the config value `apmConfig.apm-server.yml`.

## Installing

This chart is tested with the latest 7.7.x versions.
This chart is tested with the latest 7.7.0-SNAPSHOT versions.

* Add the elastic helm charts repo

Expand All @@ -46,7 +46,7 @@ This chart is tested with the latest 7.7.x versions.
git checkout -b 7.7 origin/7.7
```

* Install the latest 7.7.x-SNAPSHOT
* Install the latest 7.7.0-SNAPSHOT

```bash
helm install --name apm-server ./helm-charts/apm-server
Expand Down
4 changes: 2 additions & 2 deletions elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ If you currently have a cluster deployed with the [helm/charts stable](https://g

## Installing

This chart is tested with the latest 7.7.x versions.
This chart is tested with the latest 7.7.0-SNAPSHOT versions.

* Add the elastic helm charts repo

Expand All @@ -72,7 +72,7 @@ This chart is tested with the latest 7.7.x versions.
git checkout -b 7.7 origin/7.7
```

* Install the latest 7.7.x-SNAPSHOT
* Install the latest 7.7.0-SNAPSHOT

```bash
helm install --name elasticsearch ./helm-charts/elasticsearch
Expand Down
4 changes: 2 additions & 2 deletions filebeat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This helm chart is a lightweight way to configure and run our official [Filebeat

## Installing

This chart is tested with the latest 7.7.x versions.
This chart is tested with the latest 7.7.0-SNAPSHOT versions.

* Add the elastic helm charts repo

Expand All @@ -40,7 +40,7 @@ This chart is tested with the latest 7.7.x versions.
git checkout -b 7.7 origin/7.7
```

* Install the latest 7.7.x-SNAPSHOT
* Install the latest 7.7.0-SNAPSHOT

```bash
helm install --name filebeat ./helm-charts/filebeat
Expand Down
3 changes: 1 addition & 2 deletions helpers/bumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
file_patterns = [
"*/examples/*/*.y*ml",
"helpers/examples.mk",
"*/README.md",
"*/values.y*ml",
"*/Chart.y*ml",
]
Expand All @@ -43,7 +42,7 @@
print("Updating versions...")

for major, version in versions.iteritems():
r = re.compile(r"{0}\.[0-9]*\.[0-9]*-?[0-9]?".format(major))
r = re.compile(r"{0}\.[0-9]*\.[0-9]*-?(SNAPSHOT)?".format(major))
for pattern in file_patterns:
for f in glob.glob(pattern):
print(f)
Expand Down
4 changes: 2 additions & 2 deletions kibana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This helm chart is a lightweight way to configure and run our official [Kibana d

## Installing

This chart is tested with the latest 7.7.x versions.
This chart is tested with the latest 7.7.0-SNAPSHOT versions.

* Add the elastic helm charts repo

Expand All @@ -35,7 +35,7 @@ This chart is tested with the latest 7.7.x versions.
git checkout -b 7.7 origin/7.7
```

* Install the latest 7.7.x-SNAPSHOT
* Install the latest 7.7.0-SNAPSHOT

```bash
helm install --name kibana ./helm-charts/kibana
Expand Down
4 changes: 2 additions & 2 deletions logstash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This helm chart is a lightweight way to configure and run our official [Logstash

## Installing

This chart is tested with the latest 7.7.x versions.
This chart is tested with the latest 7.7.0-SNAPSHOT versions.

* Add the elastic helm charts repo

Expand All @@ -44,7 +44,7 @@ This chart is tested with the latest 7.7.x versions.
git checkout -b 7.7 origin/7.7
```

* Install the latest 7.7.x-SNAPSHOT
* Install the latest 7.7.0-SNAPSHOT

```bash
helm install --name logstash ./helm-charts/logstash
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The workaround is to use `--force` argument for `helm upgrade` command which wil

## Installing

This chart is tested with the latest 7.7.x versions.
This chart is tested with the latest 7.7.0-SNAPSHOT versions.

* Add the elastic helm charts repo

Expand All @@ -49,7 +49,7 @@ This chart is tested with the latest 7.7.x versions.
git checkout -b 7.7 origin/7.7
```

* Install the latest 7.7.x-SNAPSHOT
* Install the latest 7.7.0-SNAPSHOT

```bash
helm install --name metricbeat ./helm-charts/metricbeat
Expand Down

0 comments on commit ca7ed63

Please sign in to comment.