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