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

Update user-defined resource applying logic #617

Merged
merged 5 commits into from
May 30, 2023

Conversation

terassyi
Copy link
Contributor

@terassyi terassyi commented Mar 29, 2023

This PR adds two features described below.

  1. We can customize the order of applying resources.
  2. When applying Deployment and Daemonset resources, cke waits to complete the creation or update.

We can specify the resource application order using the cke.cybozu.com/rank annotation.
Please see docs/user-resources.md for detail.

And When we create or update Deployment or DaemonSet resources, cke checks if the update or creation is completed.
If it is not completed, cke runs the nopOp that does nothing to wait.

@terassyi terassyi self-assigned this Mar 29, 2023
@terassyi terassyi changed the title add rank cusomization feature Update user-defined resource applying logic Apr 3, 2023
@terassyi terassyi marked this pull request as ready for review May 11, 2023 09:11
@terassyi terassyi requested review from zoetrope, ysksuzuki and yokaze May 15, 2023 07:49
docs/user-resources.md Outdated Show resolved Hide resolved
op/status.go Outdated Show resolved Hide resolved
resource.go Outdated Show resolved Hide resolved
resource.go Show resolved Hide resolved
server/strategy.go Outdated Show resolved Hide resolved
resource.go Outdated Show resolved Hide resolved
@terassyi
Copy link
Contributor Author

@yokaze
Thank you for your review!
I fixed some sentences based on your advice.
And I added some comments.
Please review again.

@terassyi terassyi requested review from yokaze and zoetrope May 18, 2023 04:34
op/status.go Outdated Show resolved Hide resolved
@terassyi terassyi force-pushed the custom-rank-for-user-defined-resource branch from 21bb16f to c89932a Compare May 19, 2023 08:25
@terassyi terassyi force-pushed the custom-rank-for-user-defined-resource branch from 4749828 to e7d93f4 Compare May 19, 2023 09:07
@terassyi terassyi requested a review from yokaze May 19, 2023 09:08
Copy link
Contributor

@yokaze yokaze 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
Member

@zoetrope zoetrope left a comment

Choose a reason for hiding this comment

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

LGTM

@terassyi terassyi force-pushed the custom-rank-for-user-defined-resource branch from e7d93f4 to 02fb62c Compare May 25, 2023 09:30
@terassyi terassyi requested review from zoetrope, yokaze and ysksuzuki May 29, 2023 05:59
@terassyi terassyi merged commit 9132754 into main May 30, 2023
@terassyi terassyi deleted the custom-rank-for-user-defined-resource branch May 30, 2023 09:11
terassyi added a commit that referenced this pull request Aug 10, 2023
…efined-resource"

This reverts commit 9132754, reversing
changes made to d534aed.

Signed-off-by: terasihma <[email protected]>
terassyi added a commit that referenced this pull request Aug 15, 2023
…-user-defined-resources

Revert the custom rank feature for user defined resources(#640, #638, #634, #617)
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.

4 participants