Skip to content

Commit

Permalink
test: Add cluster name to upgrade crd task (#2527)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Sep 21, 2022
1 parent 5806654 commit 81453e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/suites/common/setup.yaml
Expand Up @@ -103,4 +103,5 @@ spec:
--set clusterName=$(params.cluster-name) \
--set clusterEndpoint=$(cat /root/.kube/config | grep server | awk '{print $2}') \
--set aws.defaultInstanceProfile=KarpenterNodeInstanceProfile-$(params.cluster-name) \
--set controller.batchIdleDuration=10s \
--wait
3 changes: 3 additions & 0 deletions test/suites/common/upgrade-crds.yaml
Expand Up @@ -7,6 +7,8 @@ spec:
description: |
Upgrade Karpenter CRDs
params:
- name: cluster-name
description: Name of the cluster under test.
- name: git-ref
description: Git commit, tag, or branch to check out. Requires a corresponding Karpenter snapshot release.
workspaces:
Expand All @@ -15,5 +17,6 @@ spec:
- name: upgrade-crds
image: public.ecr.aws/karpenter-testing/tools:latest
script: |
aws eks update-kubeconfig --name $(params.cluster-name)
kubectl replace -f https://raw.githubusercontent.com/aws/karpenter/$(params.git-ref)/charts/karpenter/crds/karpenter.sh_provisioners.yaml
kubectl replace -f https://raw.githubusercontent.com/aws/karpenter/$(params.git-ref)/charts/karpenter/crds/karpenter.k8s.aws_awsnodetemplates.yaml
2 changes: 2 additions & 0 deletions test/suites/upgrade/pipeline.yaml
Expand Up @@ -56,6 +56,8 @@ spec:
taskRef:
name: upgrade-crds
params:
- name: cluster-name
value: $(params.cluster-name)
- name: git-ref
value: $(params.to-git-ref)
runAfter:
Expand Down

0 comments on commit 81453e0

Please sign in to comment.