-
Notifications
You must be signed in to change notification settings - Fork 270
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 feat/operator-java-opts
- Loading branch information
Showing
68 changed files
with
2,170 additions
and
1,320 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Define the directory to monitor | ||
WATCHED_DIR="operator/model/src/main/java" | ||
|
||
# Get the list of changed files in the staging area | ||
CHANGED_FILES=$(git diff --cached --name-only) | ||
|
||
# Check if any file in the watched directory has been modified | ||
FILES_TO_CHECK=$(echo "$CHANGED_FILES" | grep "^$WATCHED_DIR") | ||
|
||
# If no changes detected in the directory, exit successfully | ||
if [ -z "$FILES_TO_CHECK" ]; then | ||
echo "No changes detected to Operator Model, skipping install.yaml regen." | ||
exit 0 | ||
fi | ||
|
||
# Run your custom command (e.g., linting, formatting, tests, etc.) | ||
echo "Changes detected to Operator Model. Generating install.yaml file..." | ||
|
||
# Update the install.yaml file (regenerate it) | ||
cd operator | ||
make SKIP_TESTS=true build IMAGE_TAG=latest-snapshot INSTALL_FILE=install/install.yaml dist-install-file > /dev/null 2>&1 | ||
|
||
# Capture the exit code of the command | ||
EXIT_CODE=$? | ||
|
||
# Exit with the appropriate status | ||
if [ $EXIT_CODE -ne 0 ]; then | ||
echo "Failed to regenerate install.yaml file." | ||
exit 1 | ||
fi | ||
|
||
echo "Successfully generated install.yaml." | ||
git add ./install/install.yaml | ||
exit 0 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,24 +3,14 @@ on: | |
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '.gitignore' | ||
- 'LICENSE' | ||
- 'README*' | ||
- 'docs/**' | ||
- '.github/workflows/**' | ||
- 'operator/install/**' | ||
paths: | ||
- 'operator/**' | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '.gitignore' | ||
- 'LICENSE' | ||
- 'README*' | ||
- 'docs/**' | ||
- '.github/workflows/**' | ||
- 'operator/install/**' | ||
paths: | ||
- 'operator/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
@@ -64,10 +54,10 @@ jobs: | |
- name: Setup Minikube | ||
uses: manusa/[email protected] | ||
with: | ||
minikube version: v1.33.1 | ||
kubernetes version: v1.25.0 | ||
github token: ${{ secrets.GITHUB_TOKEN }} | ||
start args: '--force' | ||
'minikube version': v1.33.1 | ||
'kubernetes version': v1.25.0 | ||
'github token': ${{ secrets.GITHUB_TOKEN }} | ||
'start args': '--force' | ||
|
||
- name: Enable minikube features | ||
run: | | ||
|
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
Oops, something went wrong.