• 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
..
configmap Loading commit data...
downward-api Loading commit data...
environment-guide Loading commit data...
horizontal-pod-autoscaling Loading commit data...
kubectl Loading commit data...
liveness Loading commit data...
logging-demo Loading commit data...
node-selection Loading commit data...
persistent-volumes Loading commit data...
resourcequota Loading commit data...
secrets Loading commit data...
update-demo Loading commit data...
walkthrough Loading commit data...
README.md Loading commit data...
accessing-the-cluster.md Loading commit data...
annotations.md Loading commit data...
application-troubleshooting.md Loading commit data...
compute-resources.md Loading commit data...
config-best-practices.md Loading commit data...
configmap.md Loading commit data...
configuring-containers.md Loading commit data...
connecting-applications.md Loading commit data...
connecting-to-applications-port-forward.md Loading commit data...
connecting-to-applications-proxy.md Loading commit data...
container-environment.md Loading commit data...
containers.md Loading commit data...
debugging-services.md Loading commit data...
deploying-applications.md Loading commit data...
deployments.md Loading commit data...
docker-cli-to-kubectl.md Loading commit data...
downward-api.md Loading commit data...
getting-into-containers.md Loading commit data...
horizontal-pod-autoscaler.md Loading commit data...
identifiers.md Loading commit data...
images.md Loading commit data...
ingress.md Loading commit data...
introspection-and-debugging.md Loading commit data...
jobs.md Loading commit data...
jsonpath.md Loading commit data...
known-issues.md Loading commit data...
kubeconfig-file.md Loading commit data...
kubectl-cheatsheet.md Loading commit data...
kubectl-overview.md Loading commit data...
labels.md Loading commit data...
logging.md Loading commit data...
managing-deployments.md Loading commit data...
monitoring.md Loading commit data...
namespaces.md Loading commit data...
overview.md Loading commit data...
persistent-volumes.md Loading commit data...
pod-states.md Loading commit data...
pod-templates.md Loading commit data...
pods.md Loading commit data...
prereqs.md Loading commit data...
production-pods.md Loading commit data...
quick-start.md Loading commit data...
replication-controller.md Loading commit data...
secrets.md Loading commit data...
security-context.md Loading commit data...
service-accounts.md Loading commit data...
services-firewalls.md Loading commit data...
services.md Loading commit data...
sharing-clusters.md Loading commit data...
simple-nginx.md Loading commit data...
simple-yaml.md Loading commit data...
ui.md Loading commit data...
volumes.md Loading commit data...
working-with-resources.md Loading commit data...