-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update patch versions in docs and YAML files to v2.8.8 (#11761)
This fixes the docs and some config examples to use the latest patch version. This hadn't been done for a while, so I also added the script to do it from #10646
- Loading branch information
Showing
9 changed files
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
_images+:: { | ||
loki_canary: 'grafana/loki-canary:2.8.5', | ||
loki_canary: 'grafana/loki-canary:2.8.8', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
_images+:: { | ||
promtail: 'grafana/promtail:2.8.5', | ||
promtail: 'grafana/promtail:2.8.8', | ||
}, | ||
|
||
_config+:: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
OLD_VERSION=${LOKI_OLD_VERSION:-} | ||
NEW_VERSION=${LOKI_NEW_VERSION:-} | ||
|
||
if [[ -z "${OLD_VERSION}" ]] | ||
then | ||
OLD_VERSION="[0-9]+\.[0-9]+\.[0-9]+" | ||
fi | ||
|
||
if [[ -z "${NEW_VERSION}" ]] | ||
then | ||
read -rp "Enter new release version (eg 2.9.2): " NEW_VERSION | ||
fi | ||
|
||
|
||
LOKI_DOCKER_DRIVER_TAG="grafana\/loki-docker-driver:" | ||
LOKI_DOCUMENTS_TAG="loki\/v" | ||
LOKI_DOCKER_TAG="grafana\/loki:" | ||
LOKI_PROMTAIL_DOCKER_TAG="grafana\/promtail:" | ||
LOKI_CANARY_DOCKER_TAG="grafana\/loki-canary:" | ||
LOKI_LOGCLI_DOCKER_TAG="grafana\/logcli:" | ||
|
||
echo "Updating version references to ${NEW_VERSION}" | ||
|
||
# grep -Iq is to ignore non-binary files. | ||
find . -type f -not -path "./.git/*" -not -path "./vendor/*" -not -path "./operator/*" -not -path "./CHANGELOG.md" -not -path "./docs/sources/setup/upgrade/*" -exec grep -Iq . {} \; -print0\ | ||
| xargs -0 sed -i '' -E \ | ||
-e "s/(${LOKI_DOCKER_DRIVER_TAG})(${OLD_VERSION})/\1${NEW_VERSION}/g" \ | ||
-e "s/(${LOKI_DOCUMENTS_TAG})(${OLD_VERSION})/\1${NEW_VERSION}/g" \ | ||
-e "s/(${LOKI_DOCKER_TAG})(${OLD_VERSION})/\1${NEW_VERSION}/g" \ | ||
-e "s/(${LOKI_PROMTAIL_DOCKER_TAG})(${OLD_VERSION})/\1${NEW_VERSION}/g" \ | ||
-e "s/(${LOKI_CANARY_DOCKER_TAG})(${OLD_VERSION})/\1${NEW_VERSION}/g" \ | ||
-e "s/(${LOKI_LOGCLI_DOCKER_TAG})(${OLD_VERSION})/\1${NEW_VERSION}/g" \ |