Commit Graph

22 Commits

Author SHA1 Message Date
Shashank Sharma 66ddaf63ae
Assigning nodes to knative services (#1924)
* node selector changes

* adding nodeselector and node affinity (only required)

* changing type for toleration and affinity

* handling panic

* handling panic

* handling panic

* handling panic

* handling panic

* adding preferred node affinity support

* adding preferred node affinity support

* adding test cases, accepting multiple whitespace separated values for nodeaffinity

* adding test cases, accepting multiple whitespace separated values for nodeaffinity

* updating docs

* updating docs

Signed-off-by: Shashankft9 <shanky.337marchss@gmail.com>

* adding experimental flags section

* basic setup with experimental features working, removing general subsection in favour of original code

* Revert "basic setup with experimental features working, removing general subsection in favour of original code"

This reverts commit 793718e51065d6c05f044c5d172c52caf79aac0a.

* Revert "adding experimental flags section"

This reverts commit 4f844f23b77f842579e7d3a1a0057b6c95f9e4bb.

* doc nits

* tests added, docs sanitised

Signed-off-by: Shashankft9 <shanky.337marchss@gmail.com>

* adding feature flag message for pvc

Signed-off-by: Shashankft9 <shanky.337marchss@gmail.com>

* fixing lint and code analyzer issues

Signed-off-by: Shashankft9 <shanky.337marchss@gmail.com>

* whitespace fixes and feature flag doc change

* whitespace fixes and feature flag doc change

* whitespace fixes and feature flag doc change

* whitespace fixes and feature flag doc change

---------

Signed-off-by: Shashankft9 <shanky.337marchss@gmail.com>
2024-05-03 12:53:31 +00:00
David Simansky 4621b10ed6
Change default SecurityContext to none (#1832)
* Change default SecurityContext to none

* Fix unit test
2023-07-26 15:16:41 +00:00
David Simansky 3a7d8c18ad
Add support for Eventing/v1beta2 EventTypes (#1831)
* Add support for Eventing/v1beta2 EventTypes

* Skip e2e tests on missing API

* Shortne the sink help message

* Reword the help by the review recommendation

* Reflect review feedback
2023-07-26 10:42:40 +00:00
David Simansky 75d62a3618
Add default SecurityContext to every new ksvc (#1821)
* Add default SecurityContext to every new ksvc

* Add basic seccon config flag

* Fix export e2e tests

* Fix unit test
2023-07-13 08:01:14 +00:00
Amir Alavi 0382c171d7
cli options to enable user, uid, and group impersonation (#1745)
* cli options to enable kubernetes user and group impersonation

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>

* cli option to enable uid impersonation

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2022-10-13 13:11:53 +00:00
Gunjan Vyas 84cba981c1
Added config support to specify read only volumes (#1732)
* Added config support to specify read only volumes

* modified unit tests for read only customization

* fix e2e test
2022-10-05 12:01:29 +00:00
David Simansky 9abb876c76
Add --probe-liveness and --probe-readiness flags (#1697)
* Add --probe-liveness and --probe-readiness flags

* Add more unit test

* Add even more unit tests

* Fix spelling

* Add error coverage

* Update pkg/kn/flags/podspec.go

Co-authored-by: Gunjan Vyas <vyasgun20@gmail.com>

* Regen docs

* Fix error message

* Split probe opts into standalone flag

* Fix docs

Co-authored-by: Gunjan Vyas <vyasgun20@gmail.com>
2022-07-12 17:27:13 +00:00
Gunjan Vyas c23a1f7dbe
Added PVC support to volume mounts (#1693)
* Added  PVC support to volume mounts

* Added unit tests for pvc volume type

* Added e2e tests
2022-07-01 09:54:42 +00:00
Gunjan Vyas b6965469fe
Added support for mounting EmptyDir volume type (#1679)
* Added emptyDir support for volume mount

* Moved detailed emptyDir configuration spec to --volume

* Added unit tests

* Added readonly false for emptyDir volume
2022-06-24 12:22:25 +00:00
Gunjan Vyas b858dab2b4
Added subpath functionality to --mount flag (#1655)
* Added subpath functionality to --mount flag

* Added mount subpath test

* Added e2e tests for volume subpath mount

* Updated changelog
2022-04-18 14:12:13 +00:00
Gunjan Vyas bb7fd73821
Added pull-policy flag to service (#1644)
* Added pull-policy flag to service

* Added unit tests

* Added test to increase coverage

* Added unit test and made --pull-policy case insensitive

* Added config_changes test cases to increase coverage

* Improve help message for pull-policy flag

* Move image pull policy processing to podspec.go

* Add negative test case for pull policy
2022-04-13 08:15:08 +00:00
Roland Huß e7e5372594
Mark deprecated options as 'hidden' (#1500)
so that they do not appear in the help messages
2021-11-01 08:00:23 -07:00
Roland Huß db3bcbc6b0
Rename `--extra-containers` to `--containers` (#1499)
and make `--extra-containers deprecated`
2021-11-01 04:39:22 -07:00
Boaz Shuster 539a5a97a6
Add option to allow enviornment variables using file (#1433)
* Add `GetEnvsFromFile` to `util`
* Add to `podspec` flags `--env-file` and `EnvFile` to `PodSpec`.
* If `env-file` is specified load env vars from file to memory,
  convert them into ordered map and pass them to UpdateEnvVars function
  by setting custom args for each one of them instead of using command line args.

Signed-off-by: Boaz <boaz.shuster.github@gmail.com>
2021-09-21 11:41:38 -07:00
David Simansky fc7e87667f
Add support for multi-containers (#1382)
* Add support for multi-containers

* Update examples

* Fix UpdateContainers to match by name

* Add experimental note & tests

* Rename flag to --extra-containers

* Fix formatting

* Fix flag renaming leftovers

* Update pkg/kn/flags/podspec_test.go

Co-authored-by: Roland Huß <rhuss@redhat.com>

Co-authored-by: Roland Huß <rhuss@redhat.com>
2021-08-09 12:25:12 -07:00
Murugappan Chetty 0c3e236006
make command as array instead of string (#1380)
* make command as array instead of string

* make command as array instead of string

* make command as array instead of string

* make command as array instead of string

* make command as array instead of string

* make command as array instead of string
2021-07-13 13:32:31 -07:00
Zbynek Roubalik a086cc9707
Add `env-value-from` flag & keep order of env vars in created/updated services (#1328)
* Add --env-value-from & preserve env var order

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* add e2e test for checking Service Env Vars

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* update changelog

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* refactor UpdateEnvVars()

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* apply review suggestions

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* fix typo

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* improve test cases names

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2021-06-29 01:48:13 -07:00
Navid Shaikh 885f2a9bc9
Update --sink flag description (#1271)
for referring to a Knative service in another namespace by
 'ksvc' prefix explicitly, for e.g. 'ksvc:name:namespace'
 xref: https://github.com/knative/client/pull/1264
2021-03-30 01:23:20 -07:00
Kaustubh Pande 431637a1d9
add support for namespace for all commands that takes --sink option (#1264) 2021-03-18 06:41:54 -07:00
David Simansky 671ee229f3
feat: Add `--context` flag to choose specific context from kubeconfig (#1234)
* feat: Add  flag to choose specific context from kubeconfig

* chore: Generate docs

* chore: Add changelog entry

* fix: Review feedback

Co-authored-by: Roland Huß <rhuss@redhat.com>

* chore: Add --cluster flag to specify cluster from kubeconfig

* chore: Generate docs

* chore: Update changelog

Co-authored-by: Roland Huß <rhuss@redhat.com>
2021-02-23 00:54:46 -08:00
Markus Thömmes d647e44938
Upgrade a few assorted dependencies (#1220)
* Update spf13 deps

* Upgrade gotest.tools and correctly use versioned module

* Regenerate docs
2021-02-12 05:55:50 -08:00
Ying Chun Guo 45162fb5d8
Add command group for ContainerSource (#1016)
* add container source create and delete

* add update and list commands

* add describe command

* add e2e test

* add more tests

* changes to address review comments
2020-12-02 05:56:51 -08:00