• Jacob Tanenbaum's avatar
    Add 'kubectl set limit' · 901bbee2
    Jacob Tanenbaum authored
    Add a way to set resource limits/requests on running pods
    
    Ref: https://github.com/kubernetes/kubernetes/issues/21648
    
    I squashed the commits to make rebasing easier
    Change log:
    
    - fixed a typo that caused the command to be run with kubectl set set instead of the correct kubectl set limit
    
    - added a ResourcesWithPodTemplates to pkg/kubectl/cmd/util/factory.go
         instead of hardcoding these resources move there description all in one place
    
    - Fixing some of the flow control in kubectl set limit
    
    - update the help info
    
    - changed the name of ResourcesWithPodTemplates to ResourcesWithPodSpecs to more accuratly describe what it is doing
        and changed the variable names to lower case to conform to go's variable naming convention
    
    - changing the name of the command from 'set limit' to 'set resources'
    
    - Adding the new file pkg/kubectl/cmd/set/set_resources.go
    
    - changes to the test cases to reflect the change from 'kubectl set limit' to 'kubectl set resources'
    
    - comment removed
    
    - adding the man page to the git repository attempting to fix Jenkins tests
    
    - adding the user guide
    
    - fixed a few typos
    
    - typo in hack/cmd-test.sh
    
    - implamenting suggestions for command help text
    
    - adding the dry-run flag
    
    - removing the "remove" option in favor of zeroing out request/limits in order to remove them
    
    - changed limits/requests to requests/limit
    
    - changing ResourcesWithPodSpec
    
    - updated generated docs and removed whitespace
    
    - change priint on success message from "resource limits/requests updated" to "resource requirements updated"
    
    - minor rebasing issues - 'hack/test-cmd.sh' now passes
    
    - cmdutil.PrintSuccess added another argument
    
    - fixing mungedocs failure
    
    - removed whitespace from hack/make-rules/test-cmd.sh and an erroneous entry from pkg/cloudprovider/providers/openstack/MAINTAINERS.md
    
    - fixed typo in Short: field of the cobra command
    
    - rebased
    
    - Creating a new factory in the ResourcesWithPodSpecs() so that the testing will pass
    
    - changing ResourcesWithPodSpecs, it doesn't need to be a method of factory
    901bbee2
Name
Last commit
Last update
..
.files_generated Loading commit data...
kubectl.md Loading commit data...
kubectl_annotate.md Loading commit data...
kubectl_api-versions.md Loading commit data...
kubectl_apply.md Loading commit data...
kubectl_attach.md Loading commit data...
kubectl_autoscale.md Loading commit data...
kubectl_cluster-info.md Loading commit data...
kubectl_cluster-info_dump.md Loading commit data...
kubectl_completion.md Loading commit data...
kubectl_config.md Loading commit data...
kubectl_config_current-context.md Loading commit data...
kubectl_config_delete-cluster.md Loading commit data...
kubectl_config_delete-context.md Loading commit data...
kubectl_config_get-clusters.md Loading commit data...
kubectl_config_get-contexts.md Loading commit data...
kubectl_config_set-cluster.md Loading commit data...
kubectl_config_set-context.md Loading commit data...
kubectl_config_set-credentials.md Loading commit data...
kubectl_config_set.md Loading commit data...
kubectl_config_unset.md Loading commit data...
kubectl_config_use-context.md Loading commit data...
kubectl_config_view.md Loading commit data...
kubectl_convert.md Loading commit data...
kubectl_cordon.md Loading commit data...
kubectl_create.md Loading commit data...
kubectl_create_configmap.md Loading commit data...
kubectl_create_deployment.md Loading commit data...
kubectl_create_namespace.md Loading commit data...
kubectl_create_quota.md Loading commit data...
kubectl_create_secret.md Loading commit data...
kubectl_create_secret_docker-registry.md Loading commit data...
kubectl_create_secret_generic.md Loading commit data...
kubectl_create_secret_tls.md Loading commit data...
kubectl_create_service.md Loading commit data...
kubectl_create_service_clusterip.md Loading commit data...
kubectl_create_service_loadbalancer.md Loading commit data...
kubectl_create_service_nodeport.md Loading commit data...
kubectl_create_serviceaccount.md Loading commit data...
kubectl_delete.md Loading commit data...
kubectl_describe.md Loading commit data...
kubectl_drain.md Loading commit data...
kubectl_edit.md Loading commit data...
kubectl_exec.md Loading commit data...
kubectl_explain.md Loading commit data...
kubectl_expose.md Loading commit data...
kubectl_get.md Loading commit data...
kubectl_label.md Loading commit data...
kubectl_logs.md Loading commit data...
kubectl_options.md Loading commit data...
kubectl_patch.md Loading commit data...
kubectl_port-forward.md Loading commit data...
kubectl_proxy.md Loading commit data...
kubectl_replace.md Loading commit data...
kubectl_rolling-update.md Loading commit data...
kubectl_rollout.md Loading commit data...
kubectl_rollout_history.md Loading commit data...
kubectl_rollout_pause.md Loading commit data...
kubectl_rollout_resume.md Loading commit data...
kubectl_rollout_status.md Loading commit data...
kubectl_rollout_undo.md Loading commit data...
kubectl_run.md Loading commit data...
kubectl_scale.md Loading commit data...
kubectl_set.md Loading commit data...
kubectl_set_image.md Loading commit data...
kubectl_set_resources.md Loading commit data...
kubectl_stop.md Loading commit data...
kubectl_taint.md Loading commit data...
kubectl_top-node.md Loading commit data...
kubectl_top-pod.md Loading commit data...
kubectl_top.md Loading commit data...
kubectl_top_node.md Loading commit data...
kubectl_top_pod.md Loading commit data...
kubectl_uncordon.md Loading commit data...
kubectl_version.md Loading commit data...