Skip to content
Knative developer experience, docs, reference Knative CLI implementation
Branch: master
Clone or download
maximilien and knative-prow-robot Added support for limits and requests of CPU and memory (#78)
* Added support for limits and requests of CPU and memory. Examples:
1. kn service create mysvc --image dev.local/ns/image:latest --request-cpu 100m --requests-memory 64Mi
2. kn service create mysvc --image dev.local/ns/image:latest --limits-cpu 1000m --limits-memory 1024Mi

You can also include and/or omit the requests and limits. So the following should also work:
kn service create mysvc --image dev.local/ns/image:latest  --request-cpu 1000m --limits-memory 1024Mi

* Addressed comments about maintaining existing requests and limits and added more tests
* TestServiceCreateWithRequests
* TestServiceCreateWithLimits
* TestServiceCreateRequestsLimitsCPU
* TestServiceCreateRequestsLimitsMemory
* TestServiceCreateRequestsLimitsCPUMemory

* updating dependencies and formatting tests code
Latest commit dd4e2a9 Apr 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/kn
hack fix(build.sh): Fix path to built kn when printing out the version (#77) Apr 19, 2019
pkg Added support for limits and requests of CPU and memory (#78) Apr 26, 2019
test Stub in an integration test (#55) Apr 8, 2019
vendor Added support for limits and requests of CPU and memory (#78) Apr 26, 2019
.gitignore
DEVELOPMENT.md Adds DEVELOPMENT.md (#39) Apr 2, 2019
LICENSE Initial commit Dec 13, 2018
OWNERS Add OWNERS file, initially with WG leads + evan and matt (#3) Jan 11, 2019
README.md Adds DEVELOPMENT.md (#39) Apr 2, 2019
go.mod
go.sum Added support for limits and requests of CPU and memory (#78) Apr 26, 2019

README.md

Knative Client

Knative developer experience best practices, reference Knative CLI implementation, and reference Knative client libraries.

If you are interested in contributing, see the Knative community contribution guide and DEVELOPMENT.md.

Bash auto completion:

Run following to enable bash auto completion

$ source <(kn completion)

Use TAB to list available sub-commands

$ kn <TAB>
completion revision service

$ kn revision <TAB>
describe list
You can’t perform that action at this time.