-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jr/upstream-main/70-disable-cross-tenant-rep…
…lication
- Loading branch information
Showing
71 changed files
with
501 additions
and
262 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
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,27 @@ | ||
#!/bin/bash | ||
|
||
# Directory containing the porter.yaml files | ||
TEMPLATES_DIR="./templates" | ||
|
||
# Function to increment the version number | ||
increment_version() { | ||
local version=$1 | ||
local major minor patch | ||
IFS='.' read -r major minor patch <<< "$version" | ||
patch=$((patch + 1)) | ||
echo "$major.$minor.$patch" | ||
} | ||
|
||
# Find all porter.yaml files in the templates directory | ||
find "$TEMPLATES_DIR" -name "porter.yaml" | while read -r file; do | ||
# Read the current version from the file | ||
current_version=$(grep -E '^version: ' "$file" | awk '{print $2}') | ||
|
||
# Increment the version number | ||
new_version=$(increment_version "$current_version") | ||
|
||
# Update the version number in the file | ||
sed -i "s/version: $current_version/version: $new_version/" "$file" | ||
|
||
echo "Updated $file from version $current_version to $new_version" | ||
done |
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
Oops, something went wrong.