-
Notifications
You must be signed in to change notification settings - Fork 187
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
ci: add kubernetes version matrix for kind tests #642
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ pr: | |
paths: | ||
exclude: | ||
- docs/* | ||
- website/* | ||
|
||
pool: staging-pool | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
jobs: | ||
- job: unit_test | ||
timeoutInMinutes: 10 | ||
cancelTimeoutInMinutes: 5 | ||
workspace: | ||
clean: all | ||
variables: | ||
- name: TRIVY_VERSION | ||
value: 0.19.2 | ||
steps: | ||
- script: make lint | ||
displayName: Run lint | ||
- script: make build build-windows | ||
displayName: Build | ||
- script: make unit-test | ||
displayName: Run unit tests | ||
- script: bash <(curl -s https://codecov.io/bash) -C $(Build.SourceVersion) | ||
displayName: Upload coverage to codecov | ||
- script: make helm-lint | ||
displayName: Run helm lint | ||
- template: scan-images.yaml | ||
- job: scan_images | ||
timeoutInMinutes: 10 | ||
workspace: | ||
clean: all | ||
variables: | ||
- name: TRIVY_VERSION | ||
value: 0.19.2 | ||
steps: | ||
- template: scan-images.yaml | ||
- job: lint | ||
timeoutInMinutes: 5 | ||
workspace: | ||
clean: all | ||
steps: | ||
- script: make lint | ||
displayName: golangci-lint | ||
- script: make helm-lint | ||
displayName: helm lint | ||
- job: build | ||
timeoutInMinutes: 5 | ||
workspace: | ||
clean: all | ||
steps: | ||
- script: make build build-windows | ||
displayName: build | ||
- job: unit_test | ||
timeoutInMinutes: 5 | ||
workspace: | ||
clean: all | ||
steps: | ||
- script: make unit-test | ||
displayName: unit test | ||
- script: bash <(curl -s https://codecov.io/bash) -C $(Build.SourceVersion) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fyi - this is deprecated now https://docs.codecov.com/docs/about-the-codecov-bash-uploader There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. opened #647 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks @sozercan! |
||
displayName: Upload coverage to codecov |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
trigger: | ||
branches: | ||
include: | ||
- master | ||
- release-* | ||
trigger: none | ||
|
||
pr: | ||
branches: | ||
|
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.
Why we are running with 4 k8s version and not 3?
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.
1.19 is still not EOL and 1.22 is the latest. Is there a reason we only want to run 3?
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.
We generally support n-2 right? (total 3 releases)
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.
1.19, 1.20 and 1.21 are the current supported versions. 1.22 is the latest which we're also running test against here. I think it's good to catch regressions with latest kubernetes versions earlier when they're available. WDYT?
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.
Ok. Sounds good.
Also, Should we document explicit k8s version we are supporting? Something like currently supported k8s versions. What say?
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.
sgtm! We can add the current supported version and versions we test in our docs.