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

Chore: EC2 and EKS migration v2 #7198

Merged
merged 46 commits into from
Nov 6, 2024
Merged

Conversation

edibble21
Copy link
Contributor

Fixes #N/A

Description
EC2 and EKS migration v2
How was this change tested?
make test
Does this change impact docs?

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

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

Copy link

netlify bot commented Oct 11, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit e9c9a88
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/672bc7994ff07b0008a86ada

Copy link
Contributor Author

@edibble21 edibble21 left a comment

Choose a reason for hiding this comment

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

/Karpenter snapshot

Copy link
Contributor

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-90132252c7007355bce31c2e2b71b2ba3ca6cd32.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-90132252c7007355bce31c2e2b71b2ba3ca6cd32" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

Copy link
Contributor Author

@edibble21 edibble21 left a comment

Choose a reason for hiding this comment

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

/Karpenter snapshot

@coveralls
Copy link

coveralls commented Oct 11, 2024

Pull Request Test Coverage Report for Build 11710771059

Details

  • 615 of 724 (84.94%) changed or added relevant lines in 35 files are covered.
  • 17 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.2%) to 82.848%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/batcher/createfleet.go 8 9 88.89%
pkg/cloudprovider/cloudprovider.go 2 3 66.67%
pkg/controllers/controllers.go 0 1 0.0%
pkg/fake/pricingapi.go 9 10 90.0%
pkg/providers/instanceprofile/instanceprofile.go 2 3 66.67%
pkg/providers/subnet/subnet.go 26 27 96.3%
pkg/fake/utils.go 38 40 95.0%
pkg/providers/instance/types.go 18 20 90.0%
pkg/errors/errors.go 5 8 62.5%
pkg/providers/amifamily/resolver.go 1 4 25.0%
Files with Coverage Reduction New Missed Lines %
pkg/fake/ec2api.go 1 87.64%
pkg/providers/instancetype/types.go 1 96.63%
pkg/providers/instance/instance.go 1 89.15%
pkg/providers/pricing/pricing.go 1 88.62%
pkg/providers/instance/types.go 1 90.0%
pkg/operator/operator.go 4 9.8%
pkg/providers/launchtemplate/launchtemplate.go 8 78.45%
Totals Coverage Status
Change from base Build 11695486973: 0.2%
Covered Lines: 5685
Relevant Lines: 6862

💛 - Coveralls

Copy link
Contributor Author

@edibble21 edibble21 left a comment

Choose a reason for hiding this comment

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

/Karpenter snapshot

Copy link
Contributor

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-eea07e75a83f537a2899043919566a16ede640bd.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-eea07e75a83f537a2899043919566a16ede640bd" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

@engedaam engedaam self-assigned this Oct 14, 2024
@edibble21 edibble21 force-pushed the EC2MigrationV2 branch 2 times, most recently from d3767f1 to eea07e7 Compare October 14, 2024 23:25
njtran and others added 11 commits October 14, 2024 17:24
…actions-deps group (aws#7208)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ns/install-deps in the action-deps group (aws#7201)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…tions/e2e/setup-cluster in the action-deps group (aws#7207)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy link
Contributor Author

@edibble21 edibble21 left a comment

Choose a reason for hiding this comment

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

/Karpenter snapshot

Copy link
Contributor

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-7c8cd8ae2996f5a572b38eef2a0276c1459550d4.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-7c8cd8ae2996f5a572b38eef2a0276c1459550d4" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

hack/code/bandwidth_gen/main.go Show resolved Hide resolved
hack/code/bandwidth_gen/main.go Outdated Show resolved Hide resolved
hack/code/instancetype_testdata_gen/main.go Outdated Show resolved Hide resolved
pkg/batcher/createfleet_test.go Outdated Show resolved Hide resolved
pkg/batcher/createfleet_test.go Outdated Show resolved Hide resolved
pkg/providers/pricing/pricing.go Outdated Show resolved Hide resolved
pkg/providers/pricing/pricing.go Outdated Show resolved Hide resolved
pkg/providers/pricing/pricing.go Outdated Show resolved Hide resolved
pkg/providers/pricing/pricing.go Outdated Show resolved Hide resolved
pkg/providers/subnet/subnet.go Outdated Show resolved Hide resolved
Copy link
Contributor Author

@edibble21 edibble21 left a comment

Choose a reason for hiding this comment

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

/karpenter snapshot

Copy link
Contributor

github-actions bot commented Nov 4, 2024

Snapshot successfully published to oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:0-5134c2255988cd859f5706ae8c100c1d7f83ed9f.
To install you must login to the ECR repo with an AWS account:

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 021119463062.dkr.ecr.us-east-1.amazonaws.com

helm upgrade --install karpenter oci://021119463062.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter --version "0-5134c2255988cd859f5706ae8c100c1d7f83ed9f" --namespace "kube-system" --create-namespace \
  --set "settings.clusterName=${CLUSTER_NAME}" \
  --set "settings.interruptionQueue=${CLUSTER_NAME}" \
  --set controller.resources.requests.cpu=1 \
  --set controller.resources.requests.memory=1Gi \
  --set controller.resources.limits.cpu=1 \
  --set controller.resources.limits.memory=1Gi \
  --wait

pkg/errors/errors.go Outdated Show resolved Hide resolved
pkg/fake/utils.go Outdated Show resolved Hide resolved
pkg/operator/operator.go Outdated Show resolved Hide resolved
go.mod Show resolved Hide resolved
pkg/providers/pricing/zz_generated.pricing_aws.go Outdated Show resolved Hide resolved
pkg/providers/pricing/pricing.go Outdated Show resolved Hide resolved
pkg/providers/pricing/zz_generated.pricing_aws_cn.go Outdated Show resolved Hide resolved
pkg/providers/pricing/zz_generated.pricing_aws_us_gov.go Outdated Show resolved Hide resolved
pkg/providers/pricing/pricing.go Outdated Show resolved Hide resolved
pkg/operator/operator.go Outdated Show resolved Hide resolved
test/suites/termination/termination_test.go Outdated Show resolved Hide resolved
test/suites/nodeclaim/nodeclaim_test.go Outdated Show resolved Hide resolved
test/suites/nodeclaim/garbage_collection_test.go Outdated Show resolved Hide resolved
test/suites/nodeclaim/garbage_collection_test.go Outdated Show resolved Hide resolved
test/pkg/environment/aws/environment.go Outdated Show resolved Hide resolved
test/pkg/environment/aws/environment.go Outdated Show resolved Hide resolved
test/pkg/environment/aws/environment.go Outdated Show resolved Hide resolved
test/pkg/environment/aws/expectations.go Outdated Show resolved Hide resolved
test/suites/integration/aws_metadata_test.go Outdated Show resolved Hide resolved
jonathan-innis
jonathan-innis previously approved these changes Nov 6, 2024
Copy link
Contributor

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

Copy link
Contributor

@jonathan-innis jonathan-innis left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@edibble21 edibble21 merged commit 655d473 into aws:main Nov 6, 2024
17 checks passed
@edibble21 edibble21 deleted the EC2MigrationV2 branch November 6, 2024 20:36
edibble21 added a commit to edibble21/karpenter-provider-aws that referenced this pull request Nov 11, 2024
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Amanuel Engeda <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

5 participants