-
Notifications
You must be signed in to change notification settings - Fork 960
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
feat: Drop karpenter.sh/managed-by annotation #6379
Conversation
Pull Request Test Coverage Report for Build 9569656382Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9605074231Details
💛 - Coveralls |
✅ Deploy Preview for karpenter-docs-prod canceled.
|
Pull Request Test Coverage Report for Build 9847447893Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Makefile
Outdated
@@ -57,7 +57,8 @@ test: ## Run tests | |||
-cover -coverprofile=coverage.out -outputdir=. -coverpkg=./... \ | |||
--ginkgo.focus="${FOCUS}" \ | |||
--ginkgo.randomize-all \ | |||
--ginkgo.vv | |||
--ginkgo.v \ | |||
--ginkgo.fail-fast \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we want this. We should also end the last line without a \
managedRetrieved := lo.Filter(retrieved, func(nc *v1beta1.NodeClaim, _ int) bool { | ||
return nc.Annotations[v1beta1.ManagedByAnnotationKey] != "" && nc.DeletionTimestamp.IsZero() | ||
managedRetrieved := lo.Filter(retrieved, func(nc *corev1beta1.NodeClaim, _ int) bool { | ||
return nc.Annotations[v1beta1.LabelNodeClass] != "" && nc.DeletionTimestamp.IsZero() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use the nodepool label? I think it should be the same, but I want to make sure we follow the convention in the upstream provider.
return nc.Annotations[v1beta1.LabelNodeClass] != "" && nc.DeletionTimestamp.IsZero() | |
return nc.Annotations[v1beta1.LabelNodePool] != "" && nc.DeletionTimestamp.IsZero() |
@@ -137,7 +137,8 @@ var _ = Describe("GarbageCollection", func() { | |||
awsEnv.EC2API.Instances.Store(aws.StringValue(instance.InstanceId), instance) | |||
|
|||
ExpectSingletonReconciled(ctx, garbageCollectionController) | |||
_, err := cloudProvider.Get(ctx, providerID) | |||
nc, err := cloudProvider.Get(ctx, providerID) | |||
fmt.Println(nc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove?
@@ -288,9 +289,9 @@ var _ = Describe("GarbageCollection", func() { | |||
Expect(err).NotTo(HaveOccurred()) | |||
}) | |||
It("should not delete an instance if it was not launched by a NodeClaim", func() { | |||
// Remove the "karpenter.sh/managed-by" tag (this isn't launched by a machine) | |||
// Remove the nodepool tag (this isn't launched by a machine) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You say nodepool, but the label below is nodeclass. Mistake?
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
Fixes #N/A
Addresses concerns in #6319 and points to correct branch.
Description
How was this change tested?
Does this change impact docs?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.