Skip to content
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

test: Add cluster name to upgrade crd task #2527

Merged
merged 2 commits into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions test/suites/common/setup.yaml
Original file line number Diff line number Diff line change
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 \
bwagner5 marked this conversation as resolved.
Show resolved Hide resolved
--wait
3 changes: 3 additions & 0 deletions test/suites/common/upgrade-crds.yaml
Original file line number Diff line number Diff line change
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)
bwagner5 marked this conversation as resolved.
Show resolved Hide resolved
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
Original file line number Diff line number Diff line change
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