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: Expand cluster installation test configs #2022

Merged
merged 2 commits into from
Jul 12, 2022
Merged

Conversation

njtran
Copy link
Contributor

@njtran njtran commented Jun 29, 2022

Description

  • Auto discovering region in tests with IMDSv2
  • Removing unnecessary workspaces in existing tests
  • Changed to use only upstream pod images
  • Changing testing namespace
  • Adding install Karpenter on KIT Guest Clusters task
  • Removing PipelineRuns

How was this change tested?

  • Used the configs on my own test infrastructure

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@njtran njtran requested a review from a team as a code owner June 29, 2022 21:24
@njtran njtran requested a review from dewjam June 29, 2022 21:24
@netlify
Copy link

netlify bot commented Jun 29, 2022

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit aec13e7
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/62cdf4a47134cd00081409ef
😎 Deploy Preview https://deploy-preview-2022--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

resources:
cpu: 1k
provider:
instanceProfile: KitDP-$(params.test-cluster-name)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have the option to not have this step in the install, but would need this instanceProfile for this to work.

@njtran njtran changed the title [WIP] test: Tidying existing test configs test: Expand cluster installation test configs Jul 5, 2022
- name: test-cluster-name
value: "testing-ci-cluster"
- name: karpenter-version
value: "v0.13.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is gonna require some helm funkiness, since help doesn't support v as a prefix.

Comment on lines 37 to 45
- name: spot-slr
image: amazon/aws-cli
script: |
aws iam create-service-linked-role --aws-service-name spot.amazonaws.com || true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a one time action, I think we can probably just remove it.

aws iam create-service-linked-role --aws-service-name spot.amazonaws.com || true

- name: helm-install-karpenter
image: alpine/helm:latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop :latest, means the same thing.

--parameter-overrides "ClusterName=$(params.test-cluster-name)"

ROLE=" - rolearn: arn:aws:iam::$(params.account-id):role/KarpenterNodeRole-$(params.test-cluster-name)\n username: system:node:{{EC2PrivateDNSName}}\n groups:\n - system:nodes\n - system:bootstrappers"
kubectl get -n kube-system configmap/aws-auth -o yaml | awk "/mapRoles: \|/{print;print \"$ROLE\";next}1" > /tmp/aws-auth-patch.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check out -ojsonpath

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants