From 2a0a50cb16c99df2a9a74277be772bf8a8860e2c Mon Sep 17 00:00:00 2001 From: jwcesign Date: Sat, 8 Oct 2022 02:59:53 +0800 Subject: [PATCH] Add -- usage in readme (#840) Signed-off-by: jwcesign Signed-off-by: jwcesign --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 61a96f53..c4fcad42 100644 --- a/README.md +++ b/README.md @@ -466,6 +466,11 @@ using `ko apply`: ko apply -f config/ ``` +Also, any flags passed after `--` are passed to `kubectl apply` directly, for example to specify context and kubeconfig: +``` +ko apply -f config -- --context=foo --kubeconfig=cfg.yaml +``` + **NB:** This requires that `kubectl` is available. ## `ko delete`