-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support rolling upgrade by node (#668)
* Support different rolling upgrade strategies. * Enhance site and rack configuration * Use topology.kubernetes.io/subzone Node label for Coherence rack if the label is present on the node.
- Loading branch information
1 parent
9f1f60a
commit 5f5e9e0
Showing
61 changed files
with
2,525 additions
and
585 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 |
---|---|---|
@@ -0,0 +1,119 @@ | ||
# Copyright 2019, 2024, Oracle Corporation and/or its affiliates. All rights reserved. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# http://oss.oracle.com/licenses/upl. | ||
|
||
# --------------------------------------------------------------------------- | ||
# Coherence Operator GitHub Actions K3d build. | ||
# --------------------------------------------------------------------------- | ||
name: K3d Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: | ||
- gh-pages | ||
- 1.0.0 | ||
- 2.x | ||
- 3.x | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- committed | ||
branches-ignore: | ||
- gh-pages | ||
- 1.0.0 | ||
- 2.x | ||
- 3.x | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
# Checkout the source, we need a depth of zero to fetch all the history otherwise | ||
# the copyright check cannot work out the date of the files from Git. | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# This step will free up disc space on the runner by removing | ||
# lots of things that we do not need. | ||
- name: disc | ||
shell: bash | ||
run: | | ||
echo "Listing 100 largest packages" | ||
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 | ||
df -h | ||
echo "Removing large packages" | ||
sudo apt-get remove -y '^dotnet-.*' || true | ||
sudo apt-get remove -y '^llvm-.*' || true | ||
sudo apt-get remove -y 'monodoc-http' || true | ||
sudo apt-get remove -y 'php.*' || true | ||
sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel || true | ||
sudo apt-get autoremove -y || true | ||
sudo apt-get clean | ||
df -h | ||
echo "Removing large directories" | ||
rm -rf /usr/share/dotnet/ | ||
sudo rm -rf /usr/local/lib/android | ||
df -h | ||
- name: Set up JDK | ||
uses: oracle-actions/setup-java@v1 | ||
with: | ||
website: oracle.com | ||
release: 21 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22.x | ||
|
||
- name: Cache Go Modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-mods-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-mods- | ||
- name: Cache Maven packages | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
|
||
- name: Edit DNS Resolve | ||
shell: bash | ||
run: | | ||
sudo chown -R runner:runner /run/systemd/resolve/stub-resolv.conf | ||
sudo echo nameserver 8.8.8.8 > /run/systemd/resolve/stub-resolv.conf | ||
- name: Run K3d Tests | ||
shell: bash | ||
run: | | ||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | ||
make build-operator | ||
make k3d | ||
kubectl version | ||
kubectl get nodes | ||
docker pull gcr.io/distroless/java | ||
docker pull gcr.io/distroless/java11-debian11 | ||
docker pull gcr.io/distroless/java17-debian11 | ||
- name: K3d Tests | ||
shell: bash | ||
timeout-minutes: 60 | ||
run: | | ||
make e2e-k3d-test | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ failure() || cancelled() }} | ||
with: | ||
name: test-output | ||
path: build/_output/test-logs |
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.