forked from kyma-project/api-gateway
-
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 versions for int tests (kyma-project#1242)
* bump k8s versions for int tests * bump k8s versions for int tests * Manual provisioning of k3d clusters * Manual provisioning of k3d clusters * Manual provisioning of k3d clusters * Move k3d provisioning to separate action * Missing dollar sign
- Loading branch information
1 parent
7f0a5d3
commit b7e88b6
Showing
6 changed files
with
42 additions
and
36 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 |
---|---|---|
|
@@ -28,18 +28,11 @@ runs: | |
run: | | ||
git fetch origin pull/${{ github.event.number }}/head:PR-${{ github.event.number }} | ||
git checkout PR-${{ github.event.number }} | ||
- 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" | ||
- name: Provision Kyma and run tests | ||
version: "1.30.3" | ||
- name: Deploy APIGateway manager and run tests | ||
shell: bash | ||
env: | ||
KYMA_DOMAIN: "local.kyma.dev" | ||
|
@@ -49,15 +42,15 @@ runs: | |
IMG: ${{ inputs.manager_image }} | ||
run: | | ||
if [ "${{ github.event_name }}" == "pull_request" ]; then | ||
k3d image import ${{ inputs.manager_image }} -c test-cluster-1 | ||
k3d image import ${{ inputs.manager_image }} -c k3s-default | ||
fi | ||
kubectl config use-context k3d-test-cluster-1 | ||
kubectl config use-context k3d-k3s-default | ||
EXPORT_RESULT=true make install-istio deploy ${{ inputs.test_make_target }} | ||
- 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,20 @@ | ||
name: 'Provision k3d cluster' | ||
description: 'Provisions a k3d cluster' | ||
inputs: | ||
version: | ||
description: 'Kubernetes version' | ||
required: true | ||
|
||
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 2 \ | ||
--image docker.io/rancher/k3s:v${{ inputs.version }}-k3s1 \ | ||
--servers-memory=16g \ | ||
--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