k3s/pkg/kubectl
Kubernetes Submit Queue bdf9dc1620 Merge pull request #46144 from janetkuo/kubectl-rollout-ds
Automatic merge from submit-queue (batch tested with PRs 45871, 46498, 46729, 46144, 46804)

Implement kubectl rollout undo and history for DaemonSet

~Depends on #45924, only the 2nd commit needs review~ (merged)

Ref https://github.com/kubernetes/community/pull/527/

TODOs:
- [x] kubectl rollout history
  - [x] sort controller history, print overview (with revision number and change cause)
  - [x] print detail view (content of a history) 
    - [x] print template 
    - [x] ~(do we need to?) print labels and annotations~
- [x] kubectl rollout undo: 
  - [x] list controller history, figure out which revision to rollback to
    - if toRevision == 0, rollback to the latest revision, otherwise choose the history with matching revision
  - [x] update the ds using the history to rollback to 
    - [x] replace the ds template with history's
    - [x] ~(do we need to?) replace the ds labels and annotations with history's~
- [x] test-cmd.sh 

@kubernetes/sig-apps-pr-reviews @erictune @kow3ns @lukaszo @kargakis @kubernetes/sig-cli-maintainers 

--- 

**Release note**:

```release-note
```
2017-06-05 03:06:26 -07:00
..
cmd Merge pull request #46144 from janetkuo/kubectl-rollout-ds 2017-06-05 03:06:26 -07:00
metricsutil Merge pull request #45389 from monopole/isolation1 2017-05-15 19:34:52 -07:00
plugins kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
resource Merge pull request #45582 from CaoShuFeng/kubectl_set 2017-05-18 00:37:08 -07:00
testing Introduce visibility rules to kubernetes code. 2017-05-15 12:50:56 -07:00
util **What this PR does / why we need it**: 2017-05-21 20:44:21 -07:00
BUILD Implement kubectl rollout history and undo for DaemonSet 2017-06-03 17:10:57 -07:00
OWNERS
apply.go Move API annotations into annotation_key_constants and remove api/annotations package 2017-05-16 21:55:23 -07:00
autoscale.go
bash_comp_utils.go
cluster.go [Federation] Use service accounts instead of the user's credentials when accessing joined clusters' API servers. 2017-05-19 18:05:09 -07:00
cluster_test.go [Federation] Use service accounts instead of the user's credentials when accessing joined clusters' API servers. 2017-05-19 18:05:09 -07:00
clusterrolebinding.go add validate in create rolebinding 2017-05-08 15:52:44 +08:00
configmap.go configmap.go: add one initialization symbol 2017-04-24 21:26:32 +08:00
configmap_test.go
deployment.go
deployment_test.go
doc.go
env_file.go
explain.go Update go-restful dependency 2017-05-05 13:57:01 -07:00
generate.go
generate_test.go
history.go Implement kubectl rollout history and undo for DaemonSet 2017-06-03 17:10:57 -07:00
interfaces.go
kubectl.go
kubectl_test.go
namespace.go
namespace_test.go
pdb.go PDB MaxUnavailable: kubectl changes 2017-05-23 07:18:44 -07:00
proxy_server.go allow kubectl proxy to handle specified reject methods and default to allow all 2017-04-29 21:10:52 -05:00
proxy_server_test.go allow kubectl proxy to handle specified reject methods and default to allow all 2017-04-29 21:10:52 -05:00
quota.go
quota_test.go
resource_filter.go
rolebinding.go add validate in create rolebinding 2017-05-08 15:52:44 +08:00
rolebinding_test.go Supplement unit tests to `kubectl create rolebinding` command. 2017-03-29 16:36:22 +08:00
rollback.go Implement kubectl rollout history and undo for DaemonSet 2017-06-03 17:10:57 -07:00
rolling_updater.go Merge pull request #45335 from zhangxiaoyu-zidif/fix-goerrors-new 2017-05-30 03:46:57 -07:00
rolling_updater_test.go **What this PR does / why we need it**: 2017-05-21 20:44:21 -07:00
rollout_status.go Revert respecting maxUnavailable for DaemonSets 2017-04-22 17:18:09 +02:00
rollout_status_test.go Revert respecting maxUnavailable for DaemonSets 2017-04-22 17:18:09 +02:00
run.go Assign label to pod when exec 'kubectl run' command with flags "--expose=true" and "--restart=Never" 2017-04-26 11:53:33 +08:00
run_test.go Assign label to pod when exec 'kubectl run' command with flags "--expose=true" and "--restart=Never" 2017-04-26 11:53:33 +08:00
scale.go
scale_test.go
secret.go secret.go: add initial symbol and format err 2017-04-25 10:47:50 +08:00
secret_for_docker_registry.go
secret_for_docker_registry_test.go
secret_for_tls.go
secret_for_tls_test.go
secret_test.go
service.go
service_basic.go
service_basic_test.go
service_test.go
serviceaccount.go
serviceaccount_test.go
sorting_printer.go Denote if a printer is generic. 2017-05-31 13:02:23 +05:30
sorting_printer_test.go make unstructured items correspond to other items for storage 2017-04-11 08:44:16 -04:00
stop.go Clean up pre-ControllerRef compatibility logic 2017-04-07 14:09:23 +08:00
stop_test.go Remove obsolete deployment helpers 2017-05-25 11:17:44 +02:00
versioned_client.go Implement kubectl rollout history and undo for DaemonSet 2017-06-03 17:10:57 -07:00