Knative developer experience, docs, reference Knative CLI implementation
Go to file
Knative Automation 62d2cbffa0
[main] Upgrade to latest dependencies (#1852)
* upgrade to latest dependencies

bumping go.uber.org/zap a55bdc3...56468e7:
  > 56468e7 Release v1.25.0
  > 249507a zap.Any: Reduce stack size with generics (# 1310)
  > 50b2db4 zap.Any add benchmarks
  > a0674c8 Add direct coverage to zap.Any (# 1309)
  > 1310691 Table test TestFieldConstructors
  > 382e251 Swap expected and got fields (# 1282)
  > 24b7977 Add Name() to Logger (# 1273)
  > 1155ed3 Introduce Str + Strs generic string helpers (# 1281)
  > 4451b47 exp: Update slog, adjust for changes (# 1276)
  > 845ca51 internal: Add and use a generic pool instead of using sync.Pool directly (# 1262)
  > 42b7ef0 slog: Ignore frames with a zero PC (# 1258)
  > 05c4b6c Remove dependency on github.com/pkg/errors (# 1255)
  > d1a1923 Minimize permissions on CI workflows (# 1257)
  > 384e782 Use sync/atomic, drop external atomics (# 1253)
  > 740fda7 TestLevelFlag: Don't print to stderr (# 1254)
  > f2f1f41 [Feature] Add  experiment `zapslog` package to integrate with slog (# 1246)
  > 54862f5 benchmark: add slog (# 1245)
  > 85c4932 Add govulncheck as a CI step (# 1239)
  > f4ba5f5 make: Switch from golint to revive (# 1238)
  > 8310f89 chore: update bench package versions and results (# 1207)
  > 8d89127 Bump actions/checkout from 2 to 3 (# 1237)
  > bc64796 doc: New{Production,Development}Encoder{,Config} (# 1234)
  > 692ec13 ci: Set up dependabot for GH actions and tools (# 1236)
  > 7d6a9af ci: Test with Go 1.19 and 1.20 (# 1235)
  > d4a1083 doc(SugaredLogger): Document print, printf, and println methods (# 1233)
  > b32f3c5 Update Snyk vulnerable modules (# 1227)
  > 53fdb6f Reverse comparison for readability (# 1228)
  > 077b03e Use iota like a original from grpc-go (# 1220)
bumping knative.dev/serving e9425f8...eaff0b3:
  > eaff0b3 upgrade to latest dependencies (# 14290)
  > 587de3d Update net-kourier nightly (# 14286)
  > 21264fc Update net-contour nightly (# 14284)
  > a9b48be Deprecate calling kubetest2 via kntest (# 13329)
  > 397cfde Update net-istio nightly (# 14285)
bumping knative.dev/eventing 29ac3ee...a2e2aa3:
  > a2e2aa3 Eventing TLS: Test SinkBinding with Broker as sink (# 7172)
  > d8a2ad5 change the deprecated string (# 7179)
  > 0e88db1 Switch to trigger.WithNewFilters() to set trigger filter (# 7188)
  > 9d2bcef Add kind e2e tests for Kubernetes v1.27.3 (# 7139)
  > 2b02cb4 Add OIDC Authentication feature flag (# 7183)
bumping github.com/hashicorp/golang-lru 14eae34...a032ef5:
  > a032ef5 Update README for v1.0.2
  > bdf35e3 Remove deprecated linters
  > bc1608d Update other tests to get rid of math/rand
  > f2408b3 Update test to remove bad rand usage
  > fa11c6b Update github workflow
  > 6da3f98 Update MPL 2.0 LICENSE (# 110)
  > d4900dc fix onEvictedCB bug (# 84)
  > 003b81b Update go doc url (# 93)
  > 80c9821 rework lru's external registered callback invocation to avoid concurr… (# 80)
  > eb52994 Code quality improvements (# 67)
bumping go.uber.org/multierr 10aaa3c...8767aa9:
  > 8767aa9 Prepare release v1.10 (# 74)
  > 4504ef7 README: Add Features section (# 73)
  > 2fd451d Drop external atomic dependency (# 72)
  > 7876a02 Remove unused glide.yaml (# 71)
  > 55bc553 Support Go 1.20 Unwrap() []error (# 69)
  > 39ca40c Prepare release v1.9.0 (# 68)
  > 4459990 Add a shorthand for AppendInvoke (# 65)
  > 80b07a7 Document named return constraint for defer (# 63)
  > 492b792 Test and lint against Go 1.19 (# 62)
  > aa8f15f Upgrade to yaml.v3 3.0.1 (# 60)
  > f46d400 Use append instead of copy to clone slices (# 58)
  > 6fede5c CI: Test against Go 1.17/1.18 (# 57)
bumping google.golang.org/api 113082d...85e7e70:
  > 85e7e70 chore(main): release 0.138.0 (# 2116)
  > 9b75278 feat(all): auto-regenerate discovery clients (# 2119)
  > 40ea606 feat(all): auto-regenerate discovery clients (# 2118)
  > 1770219 feat(all): auto-regenerate discovery clients (# 2115)
  > c631c0a chore(main): release 0.137.0 (# 2107)
  > caea956 feat: ok to use S2A with override endpoint (# 2114)
  > 142ffeb feat(all): auto-regenerate discovery clients (# 2113)
  > f7f1c7b feat(all): auto-regenerate discovery clients (# 2112)
  > 0cc62ab feat(all): auto-regenerate discovery clients (# 2111)
  > 4d775db feat(all): auto-regenerate discovery clients (# 2110)
  > 6d29bab chore(all): update module github.com/google/s2a-go to v0.1.5 (# 2109)
  > 80485e0 feat(all): auto-regenerate discovery clients (# 2108)
  > 3f3ed3d feat(all): auto-regenerate discovery clients (# 2106)
bumping knative.dev/networking 4bfcc9f...1d7920d:
  > 1d7920d upgrade to latest dependencies (# 845)
bumping knative.dev/hack 044c02b...9cc05a3:
  > 9cc05a3 Deprecate calling kubetest2 via kntest (# 230)
bumping knative.dev/client-pkg 38d2dc0...5abd129:
  > 5abd129 Update community files (# 116)
bumping knative.dev/pkg 4f651e0...81e4ee1:
  > 81e4ee1 Bump go.uber.org/zap from 1.24.0 to 1.25.0 (# 2800)
  > 2aafe0e Bump cloud.google.com/go/storage from 1.31.0 to 1.32.0 (# 2801)
  > 2ad39e9 Bump github.com/hashicorp/golang-lru from 0.5.4 to 1.0.2 (# 2804)
  > d36cc59 Bump google.golang.org/api from 0.136.0 to 0.138.0 (# 2802)
  > 35b0890 Bump go.uber.org/automaxprocs from 1.4.0 to 1.5.3 (# 2803)
  > 93a9858 upgrade to latest dependencies (# 2799)

Signed-off-by: Knative Automation <automation@knative.team>

* Fix tls domain test

---------

Signed-off-by: Knative Automation <automation@knative.team>
Co-authored-by: David Simansky <dsimansk@redhat.com>
2023-08-23 16:37:56 +00:00
.github Update actions (#1837) 2023-08-02 02:07:50 +00:00
cmd/kn Fixing errors related to Go 1.20 (#1779) 2023-02-17 11:07:52 +00:00
config Use ko's strict mode for better errors messages (#706) 2020-03-07 12:11:27 -08:00
conventions Fix various misspellings and linter items (#1057) 2020-10-12 21:24:30 -07:00
docs Remove unusable `--broker` flag from `trigger update` cmd (#1847) 2023-08-16 11:39:41 +00:00
hack Add support for Eventing/v1beta2 EventTypes (#1831) 2023-07-26 10:42:40 +00:00
lib Change default SecurityContext to none (#1832) 2023-07-26 15:16:41 +00:00
pkg Remove deprecated --inject-broker flag from trigger cmds (#1853) 2023-08-23 08:15:55 +00:00
test [main] Upgrade to latest dependencies (#1852) 2023-08-23 16:37:56 +00:00
third_party/VENDOR-LICENSE [main] Upgrade to latest dependencies (#1852) 2023-08-23 16:37:56 +00:00
tools/knb Update knb to recognize drop-in module replace (#1736) 2022-09-22 14:01:12 +00:00
vendor [main] Upgrade to latest dependencies (#1852) 2023-08-23 16:37:56 +00:00
.codecov.yaml Align codecov config with rest of the org (#1649) 2022-04-12 10:55:08 +00:00
.gitignore feat: Add knb plugin build tool (#1226) 2021-03-08 00:22:21 -08:00
.golangci.yaml Enable gosec linter and fix existing issues (#1228) 2021-02-16 02:17:26 -08:00
.ko.yaml Fix display version in OCI image (#1662) 2022-04-28 09:08:00 +00:00
CHANGELOG.adoc Update changelog for 1.5 release (#1680) 2022-05-31 16:28:37 +00:00
CODE-OF-CONDUCT.md Adding code of conduct to reference knative/community's CoC (#1634) 2022-03-21 04:18:46 -07:00
CONTRIBUTING.md Update code-of-conduct, readme and contrib files (#1429) 2021-08-16 04:06:54 -07:00
DEVELOPMENT.md Update and reorganise kn cli setup docs (#1799) 2023-04-12 12:43:49 +00:00
LICENSE Initial commit 2018-12-12 16:45:51 -08:00
OWNERS Add knative-release-leads to OWNERS (#1317) 2021-05-17 09:45:24 -07:00
OWNERS_ALIASES Update community files (#1850) 2023-08-15 01:44:41 +00:00
README.md Update and reorganise kn cli setup docs (#1799) 2023-04-12 12:43:49 +00:00
go.mod [main] Upgrade to latest dependencies (#1852) 2023-08-23 16:37:56 +00:00
go.sum [main] Upgrade to latest dependencies (#1852) 2023-08-23 16:37:56 +00:00

README.md

Kn

go.dev reference Go Report Card Releases LICENSE Slack Status codecov

The Knative client kn is your door to the Knative world. It allows you to create Knative resources interactively from the command line or from within scripts.

kn offers you:

  • Full support for managing all features of Knative Serving (services, revisions, traffic splits)
  • Growing support for Knative eventing, closely following its development (managing of sources & triggers)
  • A plugin architecture similar to that of kubectl plugins
  • A thin client-specific API in golang which helps with tasks like synchronously waiting on Knative service write operations.
  • An easy integration of Knative into Tekton Pipelines by using kn in a Tekton Task.

This client uses the Knative Serving and Knative Eventing APIs exclusively so that it will work with any Knative installation, even those that are not Kubernetes based. It does not help with installing Knative itself though. Please refer to the various Knative installation options for how to install Knative with its prerequisites.

Documentation

Refer to the user's guide to learn more. You can read about common use cases, get detailed documentation on each command, and learn how to extend the kn CLI.

Following are some useful resources for getting-started using kn CLI:

Additionally you can visit knative.dev for more examples.

Developers

If you are interested in contributing, see CONTRIBUTING.md and DEVELOPMENT.md.