Skip to content

Commit

Permalink
chore: update kubectl version
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanja-kovacevic-thinkit committed Oct 30, 2024
1 parent e9f2962 commit 374c270
Show file tree
Hide file tree
Showing 3 changed files with 1,876 additions and 1,575 deletions.
24 changes: 22 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ commands:
cluster_setup:
steps:
- aws-cli/setup
- kubernetes/install-kubectl:
kubectl-version: v1.30.3
- run:
name: Install kubectl
command: KUBECTL_VERSION=1.31.2 \
&& curl --fail -sLO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
&& curl --fail -sLO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256" \
&& echo "$(cat kubectl.sha256) kubectl" | sha256sum --check --status - \
&& rm kubectl.sha256 \
&& chmod +x kubectl \
&& sudo mv kubectl /usr/local/bin \
&& kubectl version --client
- run:
name: Set up cluster context
command: aws eks update-kubeconfig --name << pipeline.parameters.cluster_name >> --alias << pipeline.parameters.cluster_name >>
Expand All @@ -26,6 +34,18 @@ jobs:
steps:
- run: echo "Building $CIRCLE_BRANCH"

# install-kubectl:
# executor: node/default
# steps:
# - run: KUBECTL_VERSION=1.31.2 \
# && curl --fail -sLO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
# && curl --fail -sLO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl.sha256" \
# && echo "$(cat kubectl.sha256) kubectl" | sha256sum --check --status - \
# && rm kubectl.sha256 \
# && chmod +x kubectl \
# && sudo mv kubectl /usr/local/bin \
# && kubectl version --client

node_run:
executor: node/default
parameters:
Expand Down
2 changes: 1 addition & 1 deletion cdk8s.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
language: typescript
imports:
- k8s@1.30.0
- k8s@1.31.0
Loading

0 comments on commit 374c270

Please sign in to comment.