• 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...
kube-apiserver.1 Loading commit data...
kube-controller-manager.1 Loading commit data...
kube-proxy.1 Loading commit data...
kube-scheduler.1 Loading commit data...
kubectl-annotate.1 Loading commit data...
kubectl-api-versions.1 Loading commit data...
kubectl-apply.1 Loading commit data...
kubectl-attach.1 Loading commit data...
kubectl-autoscale.1 Loading commit data...
kubectl-cluster-info-dump.1 Loading commit data...
kubectl-cluster-info.1 Loading commit data...
kubectl-completion.1 Loading commit data...
kubectl-config-current-context.1 Loading commit data...
kubectl-config-delete-cluster.1 Loading commit data...
kubectl-config-delete-context.1 Loading commit data...
kubectl-config-get-clusters.1 Loading commit data...
kubectl-config-get-contexts.1 Loading commit data...
kubectl-config-set-cluster.1 Loading commit data...
kubectl-config-set-context.1 Loading commit data...
kubectl-config-set-credentials.1 Loading commit data...
kubectl-config-set.1 Loading commit data...
kubectl-config-unset.1 Loading commit data...
kubectl-config-use-context.1 Loading commit data...
kubectl-config-view.1 Loading commit data...
kubectl-config.1 Loading commit data...
kubectl-convert.1 Loading commit data...
kubectl-cordon.1 Loading commit data...
kubectl-create-configmap.1 Loading commit data...
kubectl-create-deployment.1 Loading commit data...
kubectl-create-namespace.1 Loading commit data...
kubectl-create-quota.1 Loading commit data...
kubectl-create-secret-docker-registry.1 Loading commit data...
kubectl-create-secret-generic.1 Loading commit data...
kubectl-create-secret-tls.1 Loading commit data...
kubectl-create-secret.1 Loading commit data...
kubectl-create-service-clusterip.1 Loading commit data...
kubectl-create-service-loadbalancer.1 Loading commit data...
kubectl-create-service-nodeport.1 Loading commit data...
kubectl-create-service.1 Loading commit data...
kubectl-create-serviceaccount.1 Loading commit data...
kubectl-create.1 Loading commit data...
kubectl-delete.1 Loading commit data...
kubectl-describe.1 Loading commit data...
kubectl-drain.1 Loading commit data...
kubectl-edit.1 Loading commit data...
kubectl-exec.1 Loading commit data...
kubectl-explain.1 Loading commit data...
kubectl-expose.1 Loading commit data...
kubectl-get.1 Loading commit data...
kubectl-label.1 Loading commit data...
kubectl-logs.1 Loading commit data...
kubectl-options.1 Loading commit data...
kubectl-patch.1 Loading commit data...
kubectl-port-forward.1 Loading commit data...
kubectl-proxy.1 Loading commit data...
kubectl-replace.1 Loading commit data...
kubectl-rolling-update.1 Loading commit data...
kubectl-rollout-history.1 Loading commit data...
kubectl-rollout-pause.1 Loading commit data...
kubectl-rollout-resume.1 Loading commit data...
kubectl-rollout-status.1 Loading commit data...
kubectl-rollout-undo.1 Loading commit data...
kubectl-rollout.1 Loading commit data...
kubectl-run.1 Loading commit data...
kubectl-scale.1 Loading commit data...
kubectl-set-image.1 Loading commit data...
kubectl-set-resources.1 Loading commit data...
kubectl-set.1 Loading commit data...
kubectl-stop.1 Loading commit data...
kubectl-taint.1 Loading commit data...
kubectl-top-node.1 Loading commit data...
kubectl-top-pod.1 Loading commit data...
kubectl-top.1 Loading commit data...
kubectl-uncordon.1 Loading commit data...
kubectl-version.1 Loading commit data...
kubectl.1 Loading commit data...
kubelet.1 Loading commit data...