-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Migrate CI to kubetest2
, add AL2023
#1689
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
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,63 @@ | ||
name: '[CI] Integration test / kubetest2' | ||
inputs: | ||
build_id: | ||
required: true | ||
type: string | ||
ami_id: | ||
required: true | ||
type: string | ||
os_distro: | ||
required: true | ||
type: string | ||
k8s_version: | ||
required: true | ||
type: string | ||
aws_region: | ||
required: true | ||
type: string | ||
runs: | ||
using: "composite" | ||
steps: | ||
- id: kubetest2 | ||
shell: bash | ||
run: | | ||
export PATH=${PATH}:$(go env GOPATH)/bin | ||
go install sigs.k8s.io/kubetest2/...@latest | ||
go install github.com/aws/aws-k8s-tester/kubetest2/...@latest | ||
|
||
case "${{ inputs.os_distro }}" in | ||
al2) | ||
KUBETEST2_ARGS="--user-data-format=bootstrap.sh" | ||
;; | ||
al2023) | ||
KUBETEST2_ARGS="--addons=vpc-cni:latest --tune-vpc-cni --user-data-format=nodeadm" | ||
;; | ||
*) | ||
echo >&2 "unknown os_distro: ${{ inputs.os_distro }}" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
TESTER_NAME=ginkgo | ||
# k8s_version below 1.26 use the older ginkgo tester | ||
if [ "${{ inputs.k8s_version }}" = "$(echo -e "${{ inputs.k8s_version }}\n1.26" | sort -V | head -n1)" ]; then | ||
TESTER_NAME=ginkgo-v1 | ||
fi | ||
|
||
set -o xtrace | ||
|
||
kubetest2 eksapi \ | ||
--up \ | ||
--down \ | ||
--kubernetes-version=${{ inputs.k8s_version }} \ | ||
--generate-ssh-key \ | ||
--unmanaged-nodes \ | ||
--ami=${{ inputs.ami_id }} \ | ||
--region=${{ inputs.aws_region }} \ | ||
$KUBETEST2_ARGS \ | ||
--test=$TESTER_NAME \ | ||
-- \ | ||
--test-package-marker=latest-${{ inputs.k8s_version }}.txt \ | ||
--parallel=6 \ | ||
--focus-regex='\[Conformance\]' \ | ||
--skip-regex='\[Serial\]|\[Disruptive\]|\[Slow\]|Garbage.collector' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
we're still using
eksctl
to pull supported k8s versions, which is fine IMO, but it made more sense when we were usingeksctl
to run tests. Do we have another way to pull k8s versions via an api yet?