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

refactor(trait): affinity #2078

Merged
merged 3 commits into from
Mar 2, 2021
Merged

Conversation

squakez
Copy link
Contributor

@squakez squakez commented Mar 1, 2021

  • Added a method to generalize visit strategy on all deployments
  • Introduced the affinity trait for Knative and CronJob

Closes #2047

Release Note

refactor(trait): affinity trait for Knative and CronJob

* Moved the logic of retrieving the deployment strategy outside toleration trait

Ref apache#2047
* Introduced the trait for Knative and CronJob

Closes apache#2047
Copy link
Member

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

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

LGTM! I've just left a couple of comments.

pkg/trait/toleration.go Outdated Show resolved Hide resolved
pkg/trait/affinity.go Outdated Show resolved Hide resolved
pkg/trait/affinity.go Show resolved Hide resolved
* Added a check to raise an error on nil PodSpec for affinity and toleration traits
* Related unit test

Ref apache#2047
@squakez
Copy link
Contributor Author

squakez commented Mar 2, 2021

Added a nil PodSpec check. @astefanutti, if you can please have another look, thanks!

@astefanutti
Copy link
Member

Thanks @squakez, LGTM 👍🏼.

@astefanutti astefanutti merged commit cc0daf4 into apache:master Mar 2, 2021
@nicolaferraro nicolaferraro mentioned this pull request Apr 13, 2021
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.

[Trait] Extend affinity trait to CronJobs and KnativeServices
3 participants