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

Implements rollout APIs for deployment #5917

Merged
merged 3 commits into from
Apr 2, 2021

Conversation

shu-mutou
Copy link
Contributor

@shu-mutou shu-mutou commented Mar 23, 2021

This implements REST APIs for kubectl rollout deployment command.
Also, implements frontend for kubectl rollout restart deployment command.

Co-authored-by: ZeHuaiWang 874697675@qq.com

Ref: #2889, #4542
Fixes: #4254

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/de Updates or issues for German translations. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. language/fr Updates or issues for French translations. approved Indicates a PR has been approved by an approver from all required OWNERS files. language/ja Updates or issues for Japanese translations. labels Mar 23, 2021
@k8s-ci-robot k8s-ci-robot added language/ko Updates or issues for Korean translations. language/zh Updates or issues for Chinese translations. labels Mar 23, 2021
@shu-mutou shu-mutou requested review from maciaszczykm and floreks and removed request for helight and chenrui333 March 23, 2021 09:04
@shu-mutou shu-mutou mentioned this pull request Mar 23, 2021
@codecov
Copy link

codecov bot commented Mar 23, 2021

Codecov Report

Merging #5917 (d3927eb) into master (57e168f) will decrease coverage by 0.41%.
The diff coverage is 13.07%.

@@            Coverage Diff             @@
##           master    #5917      +/-   ##
==========================================
- Coverage   42.40%   41.98%   -0.42%     
==========================================
  Files         215      216       +1     
  Lines        9195     9325     +130     
  Branches      155      155              
==========================================
+ Hits         3899     3915      +16     
- Misses       5044     5158     +114     
  Partials      252      252              

src/app/backend/handler/apihandler.go Outdated Show resolved Hide resolved
src/app/backend/handler/apihandler.go Outdated Show resolved Hide resolved
src/app/backend/resource/deployment/rollout.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 25, 2021
@shu-mutou
Copy link
Contributor Author

@floreks Thanks for reviewing! I'll update this PR next week.

@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 30, 2021
@shu-mutou shu-mutou requested a review from floreks March 30, 2021 08:41
@floreks
Copy link
Member

floreks commented Apr 1, 2021

This is a very useful functionality. Just a last small comment and we can merge.

shu-mutou and others added 2 commits April 2, 2021 09:19
This implements REST APIs for `kubectl rollout deployment` command.
Also, implements frontend for `kubectl rollout restart deployment` command.

Co-authored-by: ZeHuaiWang <874697675@qq.com>
Also, refactor followings:
- Change http method for rollout actions to PUT, following other actions.
- Define annotation keys as const.
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 2, 2021
@floreks
Copy link
Member

floreks commented Apr 2, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 2, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: floreks, shu-mutou

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit a64a975 into kubernetes:master Apr 2, 2021
@shu-mutou shu-mutou deleted the rollout branch April 5, 2021 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/de Updates or issues for German translations. language/fr Updates or issues for French translations. language/ja Updates or issues for Japanese translations. language/ko Updates or issues for Korean translations. language/zh Updates or issues for Chinese translations. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI Enhancement: Add Restart Deployment Feature
3 participants