-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reusable matrix creation workflow
- Loading branch information
Showing
3 changed files
with
61 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
matrix: | ||
cluster-type: [ "eksctl", "kops" ] | ||
arch: [ "x86", "arm" ] | ||
family: [ "AmazonLinux2", "Bottlerocket" ] | ||
kubernetes-version: [ "1.28.13", "1.29.8", "1.30.4", "1.31.0" ] | ||
include: | ||
# Ubuntu2004 supported for EKS <= 1.29 and Ubuntu2204 supported for EKS >= 1.29. | ||
# See https://eksctl.io/usage/custom-ami-support/?h=ubuntu#setting-the-node-ami-family. | ||
- cluster-type: "eksctl" | ||
arch: "x86" | ||
family: "Ubuntu2004" | ||
kubernetes-version: "1.28.13" | ||
- cluster-type: "eksctl" | ||
arch: "arm" | ||
family: "Ubuntu2004" | ||
kubernetes-version: "1.29.8" | ||
- cluster-type: "eksctl" | ||
arch: "x86" | ||
family: "Ubuntu2204" | ||
kubernetes-version: "1.30.4" | ||
- cluster-type: "eksctl" | ||
arch: "arm" | ||
family: "Ubuntu2204" | ||
kubernetes-version: "1.31.0" | ||
exclude: | ||
- cluster-type: "kops" | ||
family: "Bottlerocket" | ||
- cluster-type: "eksctl" | ||
arch: "arm" | ||
family: "Bottlerocket" | ||
# Our tests are failing on clusters created with kops 1.29+. | ||
# Until we fix that issue, we use kops 1.28 which only supports k8s versions up to 1.28. | ||
# So, we only run our tests in k8s versions 1.29 and 1.30 on eksctl. | ||
- cluster-type: "kops" | ||
kubernetes-version: "1.29.8" | ||
- cluster-type: "kops" | ||
kubernetes-version: "1.30.4" | ||
- cluster-type: "kops" | ||
kubernetes-version: "1.31.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
on: | ||
workflow_call: | ||
outputs: | ||
matrix: | ||
description: "Matrix" | ||
value: ${{ jobs.build_matrix.outputs.matrix }} | ||
jobs: | ||
build_matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.parse_yaml.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Parse matrix.yaml file | ||
id: parse_yaml | ||
run: | | ||
echo "matrix=$(yq -P -o=json '.matrix' '.github/matrix.yaml' | jq -c)" >> $GITHUB_OUTPUT |
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