-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test helm all k8s available versions #728
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
6ce1970
Test k8s matrix sanity check
jaroslav-fedor-swi 847ddde
Run matrix in helm e2e action
jaroslav-fedor-swi 7d5b2de
Debug integration test
jaroslav-fedor-swi e741fa8
Add more verbosity
jaroslav-fedor-swi e7e13c8
Increase timeout
jaroslav-fedor-swi 8772eea
fix timemout
jaroslav-fedor-swi 1be67c8
Copy integration-test image in kind
jaroslav-fedor-swi fbfd8c1
Typo
jaroslav-fedor-swi e14ad29
Typo
jaroslav-fedor-swi 0f1d8bc
Bump skafold + rename kind cluster
jaroslav-fedor-swi 6bf6731
Fix context for deploy
jaroslav-fedor-swi 0ce8f46
fix context name pt2
jaroslav-fedor-swi 891144f
revert some changes back + cleanup
jaroslav-fedor-swi 34b4cf1
Revert skafold version
jaroslav-fedor-swi 60840fd
Add install of kubetail
jaroslav-fedor-swi d6005b9
Disable 1.31 as failing tests
jaroslav-fedor-swi 0706569
Disable most version
jaroslav-fedor-swi 6733b16
Enable debuging
jaroslav-fedor-swi 69266dd
Change test log message
jaroslav-fedor-swi b006eed
Test remove metric not reported by kind
jaroslav-fedor-swi 2198045
Dont remove testing pod to check its output
jaroslav-fedor-swi 5c59247
Increase timeout
jaroslav-fedor-swi 01703fc
Double timeout
jaroslav-fedor-swi 88a47a8
Less verbose debug msg
jaroslav-fedor-swi 32c3899
Update some messaging + upload otel logs
jaroslav-fedor-swi 109fe19
Try change assertion
jaroslav-fedor-swi 6fd4f19
Dump raw data to file instead of stdout
jaroslav-fedor-swi c3c786a
Make logs more readable
jaroslav-fedor-swi 1b7e903
Wait for timeseries to be raedy before test
jaroslav-fedor-swi 67a9a5a
Make output more readble
jaroslav-fedor-swi 9841ef8
Enable all versions
jaroslav-fedor-swi 8ffe2a5
Remove debug + use kind for image test
jaroslav-fedor-swi 6824bbe
Show all resource on fail
jaroslav-fedor-swi e72f6e9
Copy collector images to kind
jaroslav-fedor-swi f937cf2
Some polishing
jaroslav-fedor-swi 3caf1e8
Merge branch 'master' into matrix-test
jaroslav-fedor-swi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -31,6 +31,18 @@ jobs: | |
- name: Deploy skaffold | ||
uses: ./.github/actions/deploy-skaffold | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.24.0 | ||
kubectl_version: v1.31.0 | ||
node_image: kindest/node:v1.31.0 | ||
cluster_name: kind | ||
|
||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
|
||
- name: Generate docker image tag | ||
id: generate-tag | ||
run: echo "::set-output name=value::v${{ github.run_number }}-$(git rev-parse --short HEAD)" | ||
|
@@ -41,15 +53,24 @@ jobs: | |
- name: Test | ||
run: skaffold test --build-artifacts=/tmp/tags.json | ||
|
||
- name: Deploy kubernetes | ||
uses: ./.github/actions/deploy-kubernetes | ||
- name: Copy image to Kind cluster | ||
run: | | ||
kind load docker-image $(jq -r '.builds[] | select(.imageName=="integration-test") | .tag' /tmp/tags.json) | ||
kind load docker-image $(jq -r '.builds[] | select(.imageName=="swi-k8s-opentelemetry-collector") | .tag' /tmp/tags.json) | ||
kind load docker-image $(jq -r '.builds[] | select(.imageName=="swi-k8s-opentelemetry-collector-tests") | .tag' /tmp/tags.json) | ||
|
||
- name: Add dependency chart repos | ||
- name: Setup kubetail | ||
run: | | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
curl -Lo kubetail https://raw.githubusercontent.com/johanhaleby/kubetail/master/kubetail && sudo install kubetail /usr/local/bin/ | ||
shell: bash | ||
|
||
- name: Deploy services using Skaffold | ||
run: skaffold deploy --build-artifacts=/tmp/tags.json | ||
run: skaffold deploy --build-artifacts=/tmp/tags.json --kube-context kind-kind | ||
|
||
- name: Show all resources | ||
if: ${{ failure() }} | ||
run: | | ||
kubectl get all -n test-namespace | ||
|
||
- name: Run integration tests | ||
uses: ./.github/actions/run-integration-tests | ||
|
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 |
---|---|---|
|
@@ -51,15 +51,32 @@ jobs: | |
name: Helm e2e tests | ||
outputs: | ||
image_tag: ${{ steps.generate-tag.outputs.value }} | ||
|
||
strategy: | ||
matrix: | ||
# Kubernetes versions to test on | ||
kubernetes_version: | ||
- v1.25.16 | ||
- v1.26.15 | ||
- v1.27.16 | ||
- v1.28.13 | ||
- v1.29.8 | ||
- v1.30.4 | ||
- v1.31.0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Deploy skaffold | ||
uses: ./.github/actions/deploy-skaffold | ||
|
||
- name: Deploy kubernetes | ||
uses: ./.github/actions/deploy-kubernetes | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.24.0 | ||
kubectl_version: ${{ matrix.kubernetes_version }} | ||
node_image: kindest/node:${{ matrix.kubernetes_version }} | ||
cluster_name: kind | ||
|
||
- name: Add dependency chart repos | ||
run: | | ||
|
@@ -68,12 +85,29 @@ jobs: | |
- name: Build | ||
run: skaffold build -p=ci-helm-e2e --file-output=/tmp/tags.json | ||
|
||
- name: Copy image to Kind cluster | ||
run: | | ||
kind load docker-image $(jq -r '.builds[] | select(.imageName=="integration-test") | .tag' /tmp/tags.json) | ||
|
||
- name: Setup kubetail | ||
run: | | ||
curl -Lo kubetail https://raw.githubusercontent.com/johanhaleby/kubetail/master/kubetail && sudo install kubetail /usr/local/bin/ | ||
shell: bash | ||
|
||
- name: Deploy services using Skaffold | ||
run: skaffold deploy -p=ci-helm-e2e --build-artifacts=/tmp/tags.json | ||
run: | | ||
skaffold deploy -p=ci-helm-e2e \ | ||
--build-artifacts=/tmp/tags.json \ | ||
--kube-context kind-kind | ||
|
||
- name: Show all resources | ||
run: | | ||
kubectl get all -n test-namespace | ||
|
||
- name: Run integration tests | ||
uses: ./.github/actions/run-integration-tests | ||
|
||
|
||
helm_test_auto_update_against_last_published: | ||
runs-on: ubuntu-latest | ||
name: Helm auto update test | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind cluster does not have this metric...