-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matej Feder <[email protected]>
- Loading branch information
Showing
11 changed files
with
493 additions
and
273 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 |
---|---|---|
|
@@ -18,4 +18,5 @@ apiVersion: kind.x-k8s.io/v1alpha4 | |
nodes: | ||
- role: worker | ||
- role: worker | ||
- role: worker | ||
- role: control-plane |
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 |
---|---|---|
|
@@ -13,64 +13,65 @@ | |
# limitations under the License. | ||
# | ||
|
||
name: Test Chart with k8s versions | ||
|
||
on: | ||
schedule: | ||
# Run every 2 weeks | ||
- cron: "0 0 1,15 * *" | ||
|
||
jobs: | ||
test-chart: | ||
name: test-chart | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- k8s-version: v1.19.7 | ||
stack-version: v1.3 | ||
- k8s-version: v1.20.2 | ||
stack-version: v1.3 | ||
- k8s-version: v1.20.7 | ||
stack-version: v1.4 | ||
- k8s-version: v1.21.2 | ||
stack-version: v1.4 | ||
- k8s-version: v1.22.1 | ||
stack-version: v1.4 | ||
- k8s-version: v1.23.13 | ||
stack-version: v2.4 | ||
- k8s-version: v1.25.9 | ||
stack-version: v2.5 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Fetch history | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Complete semVer with highest patch version | ||
id: highest-patch | ||
run: | | ||
tag=$(git tag -l --sort=-v:refname | grep -F ${{ matrix.stack-version }}. | head -1) | ||
[[ -z $tag ]] && (echo "Patch version for ${{ matrix.stack-version }} not found!" && exit 1) | ||
echo "::set-output name=version::${tag//v}" | ||
- name: Download correct chart | ||
run: | | ||
echo ${{ steps.semver.outputs.version }} | ||
wget https://dnationcloud.github.io/helm-hub/dnation-kubernetes-monitoring-stack-${{ steps.highest-patch.outputs.version }}.tgz | ||
tar -xvf dnation-kubernetes-monitoring-stack-${{ steps.highest-patch.outputs.version }}.tgz | ||
- name: Create kind ${{ matrix.k8s-version }} cluster | ||
uses: helm/[email protected] | ||
with: | ||
node_image: kindest/node:${{ matrix.k8s-version }} | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (install) | ||
run: | | ||
ct install --config .github/ct-scheduled.yaml | ||
# TODO @mfeder: Enable and update below outdated pipeline | ||
#name: Test Chart with k8s versions | ||
# | ||
#on: | ||
# schedule: | ||
# # Run every 2 weeks | ||
# - cron: "0 0 1,15 * *" | ||
# | ||
#jobs: | ||
# test-chart: | ||
# name: test-chart | ||
# runs-on: ubuntu-20.04 | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# include: | ||
# - k8s-version: v1.19.7 | ||
# stack-version: v1.3 | ||
# - k8s-version: v1.20.2 | ||
# stack-version: v1.3 | ||
# - k8s-version: v1.20.7 | ||
# stack-version: v1.4 | ||
# - k8s-version: v1.21.2 | ||
# stack-version: v1.4 | ||
# - k8s-version: v1.22.1 | ||
# stack-version: v1.4 | ||
# - k8s-version: v1.23.13 | ||
# stack-version: v2.4 | ||
# - k8s-version: v1.25.9 | ||
# stack-version: v2.5 | ||
# | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
# | ||
# - name: Fetch history | ||
# run: git fetch --prune --unshallow | ||
# | ||
# - name: Complete semVer with highest patch version | ||
# id: highest-patch | ||
# run: | | ||
# tag=$(git tag -l --sort=-v:refname | grep -F ${{ matrix.stack-version }}. | head -1) | ||
# [[ -z $tag ]] && (echo "Patch version for ${{ matrix.stack-version }} not found!" && exit 1) | ||
# echo "::set-output name=version::${tag//v}" | ||
# | ||
# - name: Download correct chart | ||
# run: | | ||
# echo ${{ steps.semver.outputs.version }} | ||
# wget https://dnationcloud.github.io/helm-hub/dnation-kubernetes-monitoring-stack-${{ steps.highest-patch.outputs.version }}.tgz | ||
# tar -xvf dnation-kubernetes-monitoring-stack-${{ steps.highest-patch.outputs.version }}.tgz | ||
# | ||
# - name: Create kind ${{ matrix.k8s-version }} cluster | ||
# uses: helm/[email protected] | ||
# with: | ||
# node_image: kindest/node:${{ matrix.k8s-version }} | ||
# | ||
# - name: Set up chart-testing | ||
# uses: helm/[email protected] | ||
# | ||
# - name: Run chart-testing (install) | ||
# run: | | ||
# ct install --config .github/ct-scheduled.yaml |
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 |
---|---|---|
|
@@ -25,10 +25,10 @@ on: | |
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Fetch history | ||
run: git fetch --prune --unshallow | ||
|
@@ -45,7 +45,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.6 | ||
|
||
|
@@ -60,7 +60,7 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.CICD_TOKEN }} | ||
|
||
- name: Tag branch | ||
uses: anothrNick/github-tag-action@1.39.0 | ||
uses: anothrNick/github-tag-action@1.67.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CICD_TOKEN }} | ||
CUSTOM_TAG: 'v${{ steps.version.outputs.chart }}' | ||
|
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.