Skip to content

Commit

Permalink
chore: bump to EKS 1.28 (#4707)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed Sep 27, 2023
1 parent 5c2498b commit a1787b4
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions .github/actions/e2e/create-cluster/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
k8s_version:
description: 'Version of Kubernetes to use for the launched cluster'
required: false
default: "1.27"
default: "1.28"
eksctl_version:
description: "Version of eksctl to install"
default: v0.159.0
Expand Down Expand Up @@ -50,10 +50,10 @@ runs:
if [ ! -f $CLOUDFORMATION_PATH ]; then
CLOUDFORMATION_PATH=website/content/en/preview/getting-started/getting-started-with-eksctl/cloudformation.yaml
fi
# Update the Cloudformation policy to add the permissionBoundary to the NodeRole
yq -i '.Resources.KarpenterNodeRole.Properties.PermissionsBoundary="arn:aws:iam::${{ inputs.account_id }}:policy/GithubActionsPermissionsBoundary"' $CLOUDFORMATION_PATH
aws iam create-service-linked-role --aws-service-name spot.amazonaws.com || true
aws cloudformation deploy \
--stack-name iam-${{ inputs.cluster_name }} \
Expand All @@ -67,7 +67,7 @@ runs:
# Create or Upgrade the cluster based on whether the cluster already exists
cmd="create"
eksctl get cluster --name ${{ inputs.cluster_name }} && cmd="upgrade"
eksctl ${cmd} cluster -f - <<EOF
---
apiVersion: eksctl.io/v1alpha5
Expand Down Expand Up @@ -153,4 +153,4 @@ runs:
for stack_name in $stack_names; do
echo "Stack Events for $stack_name:"
aws cloudformation describe-stack-events --stack-name $stack_name
done
done
4 changes: 2 additions & 2 deletions .github/actions/install-deps/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Installs Go Downloads and installs Karpenter Dependencies'
inputs:
k8sVersion:
description: Kubernetes version to use when installing the toolchain
default: "1.27.x"
default: "1.28.x"
runs:
using: "composite"
steps:
Expand All @@ -24,4 +24,4 @@ runs:
key: ${{ runner.os }}-${{ inputs.k8sVersion }}-toolchain-cache-${{ hashFiles('hack/toolchain.sh') }}
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
shell: bash
run: K8S_VERSION=${{ inputs.k8sVersion }} make toolchain
run: K8S_VERSION=${{ inputs.k8sVersion }} make toolchain
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
k8sVersion: ["1.22.x", "1.23.x", "1.24.x", "1.25.x", "1.26.x", "1.27.x"]
k8sVersion: ["1.22.x", "1.23.x", "1.24.x", "1.25.x", "1.26.x", "1.27.x", "1.28.x"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-deps
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-conformance-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
strategy:
fail-fast: false
matrix:
k8s_version: [ "1.23", "1.24", "1.25", "1.26", "1.27" ]
k8s_version: [ "1.23", "1.24", "1.25", "1.26", "1.27", "1.28" ]
uses: ./.github/workflows/e2e-matrix.yaml
with:
event_name: ${{ github.event_name }}
region: "eu-west-1"
k8s_version: ${{ matrix.k8s_version }}
workflow_trigger: "conformance"
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
4 changes: 2 additions & 2 deletions .github/workflows/e2e-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
default: "us-east-2"
k8s_version:
type: string
default: "1.27"
default: "1.28"
eksctl_version:
type: string
default: v0.159.0
Expand Down Expand Up @@ -38,7 +38,7 @@ on:
- "1.26"
- "1.27"
- "1.28"
default: "1.27"
default: "1.28"
eksctl_version:
type: string
default: v0.159.0
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- "1.26"
- "1.27"
- "1.28"
default: "1.27"
default: "1.28"
eksctl_version:
type: string
default: v0.159.0
Expand All @@ -34,14 +34,14 @@ on:
to_git_ref:
type: string
region:
type: string
type: string
default: "us-east-2"
event_name:
type: string
required: true
k8s_version:
type: string
default: "1.27"
default: "1.28"
eksctl_version:
type: string
default: v0.159.0
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ on:
- "1.26"
- "1.27"
- "1.28"
default: "1.27"
default: "1.28"
eksctl_version:
type: string
default: v0.159.0
Expand All @@ -56,7 +56,7 @@ on:
required: true
k8s_version:
type: string
default: "1.27"
default: "1.28"
eksctl_version:
type: string
default: v0.159.0
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
role-duration-seconds: 21600
- name: add jitter on cluster creation
run: |
# Creating jitter so that we can stagger cluster creation to avoid throttling
# Creating jitter so that we can stagger cluster creation to avoid throttling
sleep $(( $RANDOM % 300 + 1 ))
- name: generate cluster name
run: |
Expand Down Expand Up @@ -164,4 +164,4 @@ jobs:
uses: ./.github/actions/commit-status/end
with:
name: ${{ github.workflow }} (${{ inputs.k8s_version }}) / e2e (${{ inputs.suite }})
git_ref: ${{ inputs.git_ref }}
git_ref: ${{ inputs.git_ref }}
2 changes: 1 addition & 1 deletion pkg/providers/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
// If a user runs a karpenter image on a k8s version outside the min and max,
// One error message will be fired to notify
MinK8sVersion = "1.23"
MaxK8sVersion = "1.27"
MaxK8sVersion = "1.28"
)

// Provider get the APIServer version. This will be initialized at start up and allows karpenter to have an understanding of the cluster version
Expand Down

0 comments on commit a1787b4

Please sign in to comment.