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

Moved node generation logic to be owned by constraints #1566

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

ellistarn
Copy link
Contributor

1. Issue, if available:

2. Description of changes:
Another touchup that moves logic out of the provisioner.

3. How was this change tested?

4. Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: link to issue
  • No

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

@netlify
Copy link

netlify bot commented Mar 23, 2022

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit f2050ce
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/623bb28f55788000094e3ca0

node.Labels = functional.UnionStringMaps(node.Labels, constraints.GenerateLabels())
node.Spec.Taints = append(node.Spec.Taints, constraints.Taints...)
return p.bind(ctx, node, <-pods)
n := constraints.ToNode()
Copy link
Contributor

@tzneal tzneal Mar 23, 2022

Choose a reason for hiding this comment

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

Did we drop the resources that the cloud provider added to the node here? (mergo wouldn't have, sorry :( ). If we did and no test caught it, we should definitely add a test for that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, they're in .Status.

Copy link
Contributor

@tzneal tzneal left a comment

Choose a reason for hiding this comment

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

Just noticed failing CI

@ellistarn ellistarn merged commit 24bd161 into aws:main Mar 24, 2022
@ellistarn ellistarn deleted the touchup2 branch March 24, 2022 02:02
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