forked from kyma-project/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cicd: bump k8s version in the int tests (kyma-project#978)
* Bump k8s version int tests * Introduce custom k3d provisioning gh action * Remove github dir from ignore in dispatch check * Remove github dir from ignore in dispatch check * wip * wip * wip * wip * wip * wip * Fix lint --------- Co-authored-by: Vladimir Videlov <[email protected]>
- Loading branch information
1 parent
e9ee4c1
commit ef3c969
Showing
9 changed files
with
60 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,31 +10,24 @@ runs: | |
- uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: "go.mod" | ||
- name: Create Single Cluster | ||
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 | ||
- name: Create Cluster | ||
uses: ./.github/actions/provision-k3d-cluster | ||
with: | ||
cluster-name: "test-cluster-1" | ||
args: >- | ||
--agents 2 | ||
--image docker.io/rancher/k3s:v1.29.4-k3s1 | ||
--servers-memory=16g | ||
--port 80:80@loadbalancer | ||
--port 443:443@loadbalancer | ||
--k3s-arg "--disable=traefik@server:0" | ||
k3s-version: "1.30.3" | ||
- name: Run integration tests | ||
run: | | ||
if [ "${{ github.event_name }}" == "pull_request" ]; then | ||
k3d image import ${{ inputs.operator-image-name }} -c test-cluster-1 | ||
k3d image import ${{ inputs.operator-image-name }} | ||
fi | ||
kubectl config use-context k3d-test-cluster-1 | ||
kubectl config use-context k3d-k3s-default | ||
EXPORT_RESULT=true IMG=${{ inputs.operator-image-name }} make istio-integration-test | ||
shell: bash | ||
- name: Check deprecations | ||
run: | | ||
set -eou pipefail | ||
GO111MODULE=on go install github.com/prometheus/prom2json/cmd/[email protected] | ||
kubectl get --context k3d-test-cluster-1 --raw /metrics | prom2json | jq '.[] | select(.name=="apiserver_requested_deprecated_apis").metrics[].labels' > deprecations.txt | ||
kubectl get --context k3d-k3s-default --raw /metrics | prom2json | jq '.[] | select(.name=="apiserver_requested_deprecated_apis").metrics[].labels' > deprecations.txt | ||
shell: bash | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
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,28 @@ | ||
name: 'Provision k3d cluster' | ||
description: 'Provisions a k3d cluster' | ||
inputs: | ||
k3s-version: | ||
description: 'Kubernetes version' | ||
required: true | ||
agents: | ||
description: 'Number of nodes in the cluster' | ||
required: false | ||
default: 1 | ||
servers-memory: | ||
description: 'Number of GB for the node' | ||
required: false | ||
default: 16 | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Provision k3d cluster | ||
shell: bash | ||
run: | | ||
curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash | ||
k3d cluster create --agents ${{ inputs.agents }} \ | ||
--image docker.io/rancher/k3s:v${{ inputs.k3s-version }}-k3s1 \ | ||
--servers-memory=${{ inputs.servers-memory }}g \ | ||
--port 80:80@loadbalancer \ | ||
--port 443:443@loadbalancer \ | ||
--k3s-arg "--disable=traefik@server:0" |
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