Commit Graph

306 Commits

Author SHA1 Message Date
knative-automation 0abc1b8806
upgrade to latest dependencies (#1257)
bumping knative.dev/pkg 737401c...0f8d8de:
  > 0f8d8de Update common github actions (# 2051)
  > 185e333 Run downstream action on master branch too (# 2049)
bumping knative.dev/eventing 6136d09...879407f:
  > 879407f smoke test more variants of pingsource (# 5042)
  > 0e2557b Update common github actions (# 5034)
  > 2fb1dd9 upgrade to latest dependencies (# 5035)
  > 2164ff0 Format markdown (# 5037)
  > 5b2912a fix # 4986 remove pingsource adapter (# 5002)
  > 37e7027 Drop master references to knative repos (# 5036)
  > 32fc262 adding ping source smoke test (# 5033)
  > a4840f1 only build linux/amd64 (# 5032)
  > 65e14cf add UT for subscription delete/create failures (# 5031)
  > 8937481 break apart rekt tests from e2e tests (# 5025)
  > 149ebe6 Run kind actions on main branch as well (# 5024)
  > abd6f98 upgrade to latest dependencies (# 5022)
bumping knative.dev/serving dae56e1...86cc36d:
  > 86cc36d Validate default max scale is set if max scale limit is enabled (# 10921)
  > d1aa2ed Update the rollout benchmark to use the new algorithm (# 10911)
  > d10d1a5 Update net-istio nightly (# 10924)
  > f7ecef1 Update common github actions (# 10920)
  > 21868c6 Update net-istio nightly (# 10914)
  > d51a7cc Drop mattmoor from Serving (# 10916)
  > 1640d27 Run kind actions on main branch as well (# 10915)
  > 66cd8ee Bump autoscaler resources to be equal to controller resources (# 10865)
bumping knative.dev/hack f99a255...9b73a25:
  > 9b73a25 Drop unnecessary occurrences of master (# 53)
bumping knative.dev/networking 1b3d24e...42a36ac:
  > 42a36ac Update common github actions (# 363)

Signed-off-by: Knative Automation <automation@knative.team>
2021-03-10 03:00:25 -08:00
knative-automation ead33446ce
upgrade to latest dependencies (#1252)
bumping knative.dev/eventing 554c1cc...6136d09:
  > 6136d09 rename mtbroker dirs / package to just broker (# 5021)
  > e8bc8ed Change more internal usages of v1beta1 to v1 (# 5020)
  > 536e0aa sugar uses v1 versions of broker / trigger (# 5019)
  > f736471 Format markdown (# 5014)
  > 15c4916 upgrade to latest dependencies (# 5006)
  > 9d73c4d remove v1alpha.configmappropagations (# 5018)
bumping knative.dev/hack 8368e1f...f99a255:
  > f99a255 Schema tool for reflective schema generation. (# 51)
bumping knative.dev/networking f813b59...1b3d24e:
  > 1b3d24e upgrade to latest dependencies (# 362)
bumping knative.dev/pkg 8fbab7e...737401c:
  > 737401c upgrade to latest dependencies (# 2047)
  > 7f753ea Slash off 5s from TestAdmissionValidResponseForResource (# 2046)
  > 1002883 Add kn-plugin-admin to downstream tests (# 1983)
  > 04fdbd7 Add WaitForCacheSyncQuick and use it in tests (# 2045)
bumping knative.dev/serving a4908c6...dae56e1:
  > dae56e1 Update net-kourier nightly (# 10913)
  > 03e15be Fix locking (# 10910)
  > 7b1c480 upgrade to latest dependencies (# 10909)
  > e50cc97 Revert Parallelise tests in activator/net (# 10880) (# 10904)
  > e718cd4 Use atomic.Value rather than unsafe.Pointer (# 10901)
  > a92d5ff Fix polling condition in KPA test (# 10899)

Signed-off-by: Knative Automation <automation@knative.team>
2021-03-08 10:35:23 -08:00
knative-automation e6cf1ce04e
upgrade to latest dependencies (#1247)
bumping knative.dev/serving 472f8e2...a4908c6:
  > a4908c6 Fix wrong function name in test log (# 10902)
  > 6e46a52 Format markdown (# 10898)
  > 6087145 e2e - wait for deployments to be available (# 10883)
  > 5b07374 Update net-certmanager nightly (# 10888)
  > 39cd0ea Update net-contour nightly (# 10886)
  > 2955f95 rename queueproxy flag probe-period to probe-timeout (# 10855)
  > 17e40b1 Bump timeout to (hopefully) avoid flake (# 10892)
  > b089ba7 Update net-istio nightly (# 10889)
  > 59c9461 Update contributing link (# 10894)
  > c508400 Update net-kourier nightly (# 10887)
  > 3ee7319 upgrade to latest dependencies (# 10884)
  > 267697a Add DomainMapping namespace label annotation (# 10868)
  > c4e05e5 Lint use of type-safe atomics (# 10882)
  > 9419b6a Update net-kourier nightly (# 10877)
  > 6d84c5b Don't override the queue-proxy image on pre-upgrade tests (# 10872)
  > 0b07d94 Parallelise tests in activator/net (# 10880)
  > 4301fa1 Update net-contour nightly (# 10876)
  > eb873de Update net-istio nightly (# 10875)
  > 79faf2b Use type-safe atomics (# 10881)
  > 94451d1 Make sure to reinitialise loop var in parallel tests (# 10879)
  > 041dca1 upgrade to latest dependencies (# 10874)
  > e9ea07e Only use exec probe at startup time (# 10741)
  > 6dcd8a6 Extend the e2e tests to use the new weighted averaging algorithms (# 10859)
  > 9478d4e Update net-contour nightly (# 10870)
  > 8e0ac01 Update net-kourier nightly (# 10869)
  > 092ddd9 Apply security best practises to domain-mapping-webhook (# 10867)
  > cd77781 Update net-kourier nightly (# 10863)
  > 2743018 Update net-istio nightly (# 10864)
  > f397d58 Use new filter function constructors (# 10862)
  > 26fd2fc upgrade to latest dependencies (# 10866)
bumping knative.dev/eventing 2db6877...554c1cc:
  > 554c1cc Delete unused params in IMC controller reconciler (# 5015)
  > db81746 fix # 4994 use trigger's namespace only when subscriber's namespace is nil (# 4995)
  > dbf1859 Remove v1alpha1 channelable (# 5005)
  > ef6d89e upgrade to CRDv1, add more unit tests around the workings of event types (# 5013)
  > d6d48a7 add unit tests to reconciler/source/config_watcher (# 5012)
  > 21bcd68 Add buckets example to config-leader-election CM (# 4993)
  > 0f2612e add test for trigger having a wrong UID (# 5004)
  > 4282f45 fix broken in-mem ns mode (# 4906)
  > 9089b8e adding code coverage to adapters v2 (# 5000)
  > eb12f8a update to breaking change for feature.T in reconciler-test (# 5003)
  > c5f92fa upgrade to latest dependencies (# 5001)
  > f220668 add more coverage (# 4999)
  > fba3dbf Use common script in GH Actions (# 4997)
bumping knative.dev/networking 54c0eb1...f813b59:
  > f813b59 upgrade to latest dependencies (# 361)
  > c369ab0 upgrade to latest dependencies (# 360)
bumping knative.dev/pkg 9039dc1...8fbab7e:
  > 8fbab7e Redo the comment a bit further (# 2042)
  > 08fc626 Fix comment for skipKeyError (# 2041)
  > 2bc944b Fix race: Make informed watcher start wait for Add event 🏎️ (# 2036)

Signed-off-by: Knative Automation <automation@knative.team>
2021-03-05 15:06:20 -08:00
knative-automation 270e322401
upgrade to latest dependencies (#1245)
bumping knative.dev/networking 94bfc01...54c0eb1:
  > 54c0eb1 upgrade to latest dependencies (# 358)
  > d5e05ad Update common github actions (# 357)
bumping knative.dev/serving b9576f5...472f8e2:
  > 472f8e2 drop k8s 1.17 from kind e2e testing (# 10854)
  > c1a0496 Fix race condition with Prober logger in upgrade tests (# 10815)
  > 527416d upgrade to latest dependencies (# 10861)
  > 0282521 Introduces h2c auto-detection support in health prober (# 10628)
  > 4aa9840 Thread the metric aggregation algorithm through collector. (# 10850)
  > 6826a1b Don't validate autoscaling annotations where they're not allowed (# 10847)
  > b039ea5 Update net-contour nightly (# 10853)
  > a8e67e0 Add algorithm possible values and annotation validation. (# 10846)
  > cbc2a29 Update net-istio nightly (# 10849)
  > 56f645c Update net-contour nightly (# 10842)
  > ee588f5 Add the annotation for averaging algorithm selection. (# 10840)
  > 18b149f Update the setup of HTTP01 challenge tests (# 10843)
  > c4193ed relax annotation constraints and some cleanup (# 10837)
  > 6e788d7 Fix KeepAlives for HTTPProbe (# 10820)
  > 86b92e0 bump k8s versions for kind e2e (# 10809)
  > 28b910b More deep cleaning of the Route reconciler it needed for some time. (# 10839)
  > a70d100 Use Revision from context in request log (# 10836)
  > a675c75 Backfill some test coverage for annotation validation (# 10834)
bumping knative.dev/eventing 207aa26...2db6877:
  > 2db6877 Add missing singular resource names to source/sinkbinding crds (# 4992)
  > 184fa2f mtping adapter now cleans up internal cache when it stops leading (# 4908)
  > 6fb67cd update deps + codegen (# 4990)
  > 00b44e9 Format markdown (# 4980)
  > 235dba5 refactor for better testability, add ut (# 4979)
  > 44b0a0e Add roadmap for 2021 for Eventing, Eventing Sources and Event Delivery WGs (# 4863)
  > 5451f19 add more ut coverage (# 4978)
bumping knative.dev/pkg 584933f...9039dc1:
  > 9039dc1 moved release docs to github.com/knative/release (# 2040)
  > 07b5ddf add demoteFunc controller option (# 2033)
  > 8a8de5f Move IsKProbe to drainer, since it's the only place it's used (# 2038)
  > 5367a43 Fix potential deadlock when k8s client is used (# 2031)
  > b5bf07b adding retry event count metric for source (# 2016)
  > 17a36e7 Format markdown (# 2037)
  > 29be1c1 Add the release badge for all of the repos (# 2035)
  > e90ac15 Remove the system.Clock and it's mock in a different location (# 2034)
  > 8a9bf76 Add symmetric filter helped based on OwnerRefable. (# 2032)
  > 29092fe Format markdown (# 2030)
  > d733bb4 Add nightly badged to release tables (# 2029)
  > 7b5bcc3 Use the constant for UserAgent (# 2028)
  > 86a8236 Format markdown (# 2025)
  > 6c2f94a Unregister views to avoid slow oom issue during meter cleanup (# 2005)
  > 7689cce Update common github actions (# 2024)
  > f4650d8 Add releasability badges for each repo (# 2023)

Signed-off-by: Knative Automation <automation@knative.team>
2021-03-01 15:06:49 -08:00
Roland Huß 09c5129c96
Update to 0.21 deps (#1239) 2021-02-23 12:59:46 -08:00
knative-automation 8bcc09fbba
upgrade to latest dependencies (#1237)
bumping knative.dev/serving 8ed54bc...b9576f5:
  > b9576f5 Add the same decoding Revision logic to request_log as context_handler (# 10824)
  > 6ef778d Fix the helpers in the service to be more readable. (# 10833)
  > fa538e3 Make Route table_test more palatable (# 10832)
  > e6ac4a7 Switch single item switch statements to if statements (# 10831)
  > 2a13625 fix various nits (# 10823)
  > 8a1782a Drop some label constraints for our top level resources (# 10808)
  > aca51ad Update net-certmanager nightly (# 10828)
  > 6c1b2a6 Update net-kourier nightly (# 10830)
  > e334a0a Update net-istio nightly (# 10829)
  > 0fddff4 Update net-contour nightly (# 10827)

Signed-off-by: Knative Automation <automation@knative.team>
2021-02-23 07:35:46 -08:00
knative-automation dfdf62b1a0
upgrade to latest dependencies (#1235)
bumping knative.dev/serving 2516dae...8ed54bc:
  > 8ed54bc Remove mapToHeader helper. (# 10818)
  > 5600cc6 Remove the User-Agent inline constant with standard constant from pkg (# 10817)
  > c4a8a39 Implement exponential decay algorithm for average computation (# 10803)
  > 5d936c7 Remove unused TimeoutFunc stuff and revert to simple duration (# 10793)
  > 418970e Update docs for revision timeoutSeconds field (# 10806)
  > af6faba Update net-contour nightly (# 10813)
bumping knative.dev/eventing 4e5bdf9...207aa26:
  > 207aa26 Add unit tests for parallel_validation_test (# 4845)
  > 86f455c swap lberk/vaikas shifts (# 4900)

Signed-off-by: Knative Automation <automation@knative.team>
2021-02-21 22:30:03 -08:00
knative-automation 18ff596041
upgrade to latest dependencies (#1233)
bumping knative.dev/eventing ef5f61d...4e5bdf9:
  > 4e5bdf9 💄 adding check for -1 status code for the default impl (# 4897)
  > 403aefa Ported Broker ingress conformance test to the new test framework (# 4859)
  > c44a698 upgrade to latest dependencies (# 4896)
  > e063a8d update default-pingsource configmap checksum (# 4895)
  > fb8e3b4 Fixup ping source dataMaxSize configmap (# 4894)
  > 78ee789 Adding checkRetry from kafkaChannel (# 4890)
  > 30d9fa3 Format markdown (# 4891)
  > dbdb339 [doc] Debugging Knative controllers and friends locally with Intellij Idea (# 4886)
bumping knative.dev/serving 7aa62c5...2516dae:
  > 2516dae swap path for domainmapping kingress for kourier (# 10811)
  > 130f8ac Update net-istio nightly (# 10807)
  > cc0209f Remove outdated todo's (# 10804)
  > 493918e Update net-contour nightly (# 10801)
  > 87bf1a9 Update net-kourier nightly (# 10800)
  > 7f9dd35 Update net-certmanager nightly (# 10799)
  > c24dc14 Validate domain mapping is not a cluster local name (# 10798)

Signed-off-by: Knative Automation <automation@knative.team>
2021-02-19 10:47:03 -08:00
knative-automation 2930137a32
upgrade to latest dependencies (#1219)
bumping knative.dev/networking 8550923...94bfc01:
  > 94bfc01 upgrade to latest dependencies (# 356)
  > 088986a upgrade to latest dependencies (# 355)
  > 9757667 Add header for signifying that requests should not be loadbalanced again (# 354)
  > 0b3dac0 Update common github actions (# 353)
bumping knative.dev/pkg a02dcff...584933f:
  > 584933f Format markdown (# 2022)
  > 84c98f3 remove reflector metrics (# 2020)
  > adbe77d Updates to the release process with 0.20 (# 1982)
  > 448ae65 Metric unit fixes (# 2018)
  > e38bb89 Update common github actions (# 2017)
bumping knative.dev/eventing 7ce8283...ef5f61d:
  > ef5f61d Update common github actions (# 4888)
  > 84b99db jsonDataLimit# 4055 (# 4233)
  > bb87cb1 Use ConfigAccessor's ToEnvVars method (# 4880)
  > 3c090d3 Remove suffix, since it's already in the PDB kind... 💄 (# 4885)
  > 56dbe58 s/Veroute/Version (# 4882)
  > 82130ea upgrade to latest dependencies (# 4883)
  > 24b1685 Setting tracing config for PingSource (# 4877)
  > 71031c0 💄 Updates for kind (newer version and newer images) (# 4879)
  > d8468ca upgrade to latest dependencies (# 4878)
  > 1c771ce Change broker spec to indicate brokerclass should be immutable (# 4827)
  > d7cf344 tracing fixed for apiserversource (# 4842)
  > 1efec2b expose ChannelReference in UnknownChannelError (# 4875)
  > 47d7a02 Update deps (# 4874)
  > 47ee8fa Update common github actions (# 4869)
  > c4e9c3b ut for trigger/broker updates check immutable (# 4843)
bumping knative.dev/serving ebc6584...7aa62c5:
  > 7aa62c5 Reflow the code to follow a better builder pattern. (# 10796)
  > 317d055 Remove the last check for percentage to be nil (which it can't anymore). (# 10797)
  > c6a28b7 Update common github actions (# 10794)
  > 96f41b5 Update net-kourier nightly (# 10790)
  > 47a730e Update net-contour nightly (# 10789)
  > 30ba285 Update net-certmanager nightly (# 10788)
  > 2cbea46 upgrade to latest dependencies (# 10787)
  > 5b94d2c Monday off cleanup: minor brush up of the traffic.go (# 10786)
  > f5d7845 We removed the possibility of traffic target % being nil (# 10785)
  > 0ff5fc4 Drop outdated HPA code regarding concurrency and RPS (# 10782)
  > 4bfc7e5 Unexport some methods (# 10784)
  > 9778deb Fix race in health state (# 10781)
  > ccbfdad A few touchups around the autoscaling tests (# 10780)
  > 20ddcbe Update net-contour nightly (# 10777)
  > 60fd6be Fix up health state tests (# 10779)
  > 395bda9 Update net-kourier nightly (# 10778)
  > af4c914 Refactor scrape client to actually take an HTTP request (# 10766)
  > 9892df5 upgrade to latest dependencies (# 10775)
  > fc68cd8 disable tls (# 10774)
  > ba73ae7 Resume HTTP01 challenge E2E tests (# 10759)
  > 6fcd198 Update net-contour nightly (# 10761)
  > fabcc2a Remove v2 gc folder. There can be only one. (# 10768)
  > eabab7d Update net-certmanager nightly (# 10760)
  > 0f52ebf Update net-kourier nightly (# 10762)
  > 3816201 upgrade to latest dependencies (# 10758)
  > fd9d9f5 Clean up the code in the service test (# 10756)
  > 81e0d61 Update the docs for the traffic package. (# 10757)
  > 13e15fd Hide the things that are private now in effect (# 10755)
  > 56ef7a9 Relax the grace period minival vaue to be any positive value (# 10754)
  > 4211c26 Update net-contour nightly (# 10752)
  > f2373c3 Update net-istio nightly (# 10753)
  > 4cc5d79 Update net-kourier nightly (# 10737)
  > 3e1dd65 Update common github actions (# 10746)
  > 597896d Deep cleaning of the time manipulation in config and revision and other fixes to the codebase (# 10745)
  > c20629d Remove the redundant test setup now there's just one GC (# 10744)
  > 17fb0e0 Change interface to accept time rather than clock (# 10743)
  > be2c890 Restrict the Clock interface to the passive where possible. (# 10742)
  > 19c8d8e Update net-contour nightly (# 10736)
  > 914855f Refactor: remove labeler v2 package (# 10739)
  > 7d57b94 Guarantee that incoming and outgoing request are measured by the same stat (# 10734)
  > 8dfeb7a Update net-istio nightly (# 10716)
  > ed413bf Update net-certmanager nightly (# 10735)
  > 3cb2bea Drop jwt dependency and match token via regex (# 10727)
  > bfba5b0 Only log about service scraping on first transition. (# 10733)

Signed-off-by: Knative Automation <automation@knative.team>
2021-02-16 23:43:02 -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
Markus Thömmes 7d431366f5
Drop pkg/errors dependency and replace with stdlib usage (#1221) 2021-02-11 08:31:50 -08:00
knative-automation cbaaf61056
upgrade to latest dependencies (#1216)
bumping knative.dev/serving 8751d91...ebc6584:
  > ebc6584 Avoid deleting a stat if a request raced the reporter (# 10729)
  > c9fc401 upgrade to latest dependencies (# 10732)
  > 68aaa08 Start moving towards k8s standard `Clock` object (# 10731)
  > be32822 Also log the actual diff for easier debugging (# 10730)
  > 230033b Accept 'head' as a parameter for istio version (# 10728)
  > 33bde4d Update net-certmanager nightly (# 10724)
  > 0055bd0 Fix the logic to delete kail log files if the tests pass (# 10723)
  > 5275f50 Update net-kourier nightly (# 10725)
bumping knative.dev/networking e24bdfe...8550923:
  > 8550923 Add a bit more coverage the stat collector (# 352)
bumping knative.dev/eventing 3fcb645...7ce8283:
  > 7ce8283 fix(PingSource)!: event consumer should receive base64-decoded dataBase64 (# 4851)
  > c7a114c Format markdown (# 4857)
  > f777623 Remove Harwayne from OWNERS. (# 4860)
  > f1d55ad remove json-specific logic useless for binary mode (# 4858)
  > 83da202 💄 Latest of kindst image for e2e tests w/ 1.20.2 (# 4854)

Signed-off-by: Knative Automation <automation@knative.team>
2021-02-10 15:59:08 -08:00
knative-automation 72aeb1c820
upgrade to latest dependencies (#1207)
bumping knative.dev/hack 8d623a0...8368e1f:
  > 8368e1f guard against set -o unset (# 49)
  > 2b4f6fc disable go's proxy and sumdb only for knative deps (# 47)
bumping knative.dev/networking 8b522a9...e24bdfe:
  > e24bdfe upgrade to latest dependencies (# 350)
  > ab1235e Bump a few assorted dependencies to their latest versions (# 349)
  > 45b7ed1 Add ingress conformance test to ensure we do not add retries (# 348)
  > b61da13 upgrade to latest dependencies (# 347)
  > d2088ff Update common github actions (# 346)
  > c069ad2 Create prober request with context right away (# 344)
  > 342a3fb upgrade to latest dependencies (# 342)
  > 94433ab upgrade to latest dependencies (# 341)
bumping knative.dev/pkg 6040b3a...a02dcff:
  > a02dcff Bump a few assorted dependencies to their latest versions (# 2013)
  > 4b2ae07 Replace deprecated github.com/markbates/inflect with github.com/gobuffalo/flect (# 2014)
  > 8878069 upgrade to latest dependencies (# 2010)
  > c493a9e Update common github actions (# 2009)
  > 6045ed4 Allow setting DisableCompression in NewAutoTransport (# 2007)
  > ca02ef7 Genreconciler properly generates reconciler for Resources with Status (# 2004)
  > 0d31134 Fix nil pointer panic in kvstore (# 2002)
bumping knative.dev/serving e61294b...8751d91:
  > 8751d91 Split the reconcile rollout into its own function (# 10722)
  > 2b95084 Optimize the execution path around logging (# 10720)
  > bbca20f Update net-contour nightly (# 10715)
  > ef39273 upgrade to latest dependencies (# 10719)
  > 6449fb8 upgrade to latest dependencies (# 10717)
  > 45a435a Update net-kourier nightly (# 10706)
  > 2fbef5f upgrade to latest dependencies (# 10713)
  > c4ea4ad Fix the analyzer config for load-testing benchmark since it must have a value (# 10709)
  > 6f46354 Apply k8s default values for readiness probe (# 10700)
  > 8c4b2ff Update net-certmanager nightly (# 10705)
  > b6f618b Update net-istio nightly (# 10704)
  > 390f2c2 bump k8s min in DEVELOPMENT.md (# 10699)
  > f2ccdd5 tests (# 10702)
  > 2090edf Update net-istio nightly (# 10695)
  > 789455d Update net-certmanager nightly (# 10674)
  > 1c61d3b Update common github actions (# 10697)
  > 2bc3650 Update net-kourier nightly (# 10696)
  > 8c64d92 Format markdown (# 10698)
  > 0e77ab2 Update net-kourier nightly (# 10676)
  > dd96a0a Update net-contour nightly (# 10686)
  > 8fbcfb0 Unpin the istio version and temporarily disable the error rate check analyzer (# 10655)
  > 58550fd Avoid adding gzip-encoding to requests implicitly (# 10691)
  > 60cdc35 Move Multi Container test to Beta (# 10683)
  > ae7b278 Update net-istio nightly (# 10687)
  > 7a18f38 Fix some nits in e2e tests (# 10678)
  > 9c572cd Allow to specify build platform for test images (# 10672)
  > 0ee79dd Remove the unsed struct items (# 10684)
  > 29da3af Improve debuggability of SKS logs (# 10679)
  > 8e1d587 upgrade to latest dependencies (# 10682)
  > aef0145 Temporarily disable auto TLS test with HTTP01 challenge  (# 10685)
  > 32b0292 Use lister instead of client to directly get ClusterDomainClaim (# 10677)
  > a19ff15 Update net-istio nightly (# 10675)
  > 6313088 Allow kpa to work with timeout in context (# 10673)
  > af7af61 Perform some test helper cleanup (# 10670)
  > 93d2449 upgrade to latest dependencies (# 10671)
  > 888331e Remove the service name from the internal traffic target object. (# 10669)
  > 1901e4c Use consistent alias for autoscaler v1alpha1 everywhere (# 10666)
  > 1e070a3 Remove context from MakeDecider (# 10657)
  > 452bed5 Further remove usage of the context in the scale runner (# 10653)
  > a1ee2ec bump ggcr & k8schain (# 10651)
  > 81818f9 Fix logging of errors in stats scraper (# 10654)
  > 1b0f43c Hide implementation detail inside a function (# 10652)
  > 756fd17 Update net-istio nightly (# 10648)
  > 6d46d52 Add support for decoding Revision from Host. (# 10647)
  > 01fa1a0 Remove the time computation (# 10645)
  > dbccf2a Do not pass context to the scale, but logger instead (# 10646)
  > ab176fa Rename back to the non deprecated name (# 10640)
  > fae6549 Update net-contour nightly (# 10644)
  > 5cd4f64 Update net-istio nightly (# 10643)
  > fbbbb98 Make route stop using the `DeprecatedServiceName` field (# 10638)
  > bf35e3f 💄 updating the HPAs to v2beta2 API usage (# 10631)
  > 51a9c0b Update net-certmanager nightly (# 10636)
  > e5c5c08 Export MESH env value in test script (# 10635)
  > 4a3274c Remove unused constants, make some other small tidy-ups (# 10637)
  > b083383 fix the broken doc's link (# 10634)
  > aac0df2 Deprecate the service name on the revision. (# 10633)
  > 0aa3d0b Remove the propagation from SKS->PA->Rev.Status of the K8s service (# 10632)
  > db90f4f Update net-contour nightly (# 10597)
  > 981c601 Update net-istio nightly (# 10619)
  > 8922f35 Update net-kourier nightly (# 10599)
  > df11c15 chore: Set background to white for autoscaling diagrams ... (# 10629)
  > f637b5a Remove naked returns (# 10618)
  > 6cde241 Improve rollout test to check duration (# 10625)
  > 7700811 At 100ms we still see failures on prow (# 10626)
  > c081a82 Make the singlethreaded code simpler by using boolean guard (# 10624)
  > 55a7edf upgrade to latest dependencies (# 10627)
  > 53d4d5b Fix some annoying nits in the route e2e tests (# 10623)
  > 2c781c7 upgrade to latest dependencies (# 10620)
  > 6dba44a The year was 2021.. (# 10621)
  > 39d33bf upgrade to latest dependencies (# 10617)
bumping golang.org/x/term 7de9c90...2321bbc:
  > 2321bbc Update doc to use "term" instead of "terminal"
  > ee85cb9 README.md: add badge to pkg.go.dev
bumping knative.dev/eventing ea452b5...3fcb645:
  > 3fcb645 🌀 Remvoing contrib refs (# 4855)
  > f05561d upgrade to latest dependencies (# 4853)
  > 37eaf71 switch Harwayne with antoineco (# 4850)
  > b887ac4 upgrade to latest dependencies (# 4848)
  > daa085d Format markdown (# 4846)
  > 3d51c72 Change trigger spec to indicate assigned broker should be immutable (# 4828)
  > 1774243 Add immutable fields validation to v1beta1 broker (# 4816)
  > 935d5fb Format markdown (# 4840)
  > 269b061 Update common github actions (# 4839)
  > 152e608 upgrade to latest dependencies (# 4841)
  > 8171448 Adding Logline for when a cloudevent has been successfully sent from APIServerSource to the sink (# 4723)
  > fd2688d Use SHOULD for TriggerSpec to keep compatibility (# 4838)
  > 1fa597e [# 4796] Bump golang lint timeout to 10m (# 4830)
  > a4a9f48 Format markdown (# 4829)
  > d58bd38 fix the link to head (# 4826)
  > 39d7a9e remove unused functions (# 4824)
  > 6edcbdd Panic in shared main to propagate error to exit code (# 4820)
  > 012a9bd v1beta1.Trigger delivery should be v1.DeliverySpec (# 4822)
  > 321a839 Format markdown (# 4823)
  > ec63881 Fix spec # 4515 (# 4654)
  > 1528750 upgrade to latest dependencies (# 4818)
  > 9dc57e2 Update common github actions (# 4817)
  > b20c96b sinkbing implement bindable (# 4794)
  > 8d51418 Bump golang linter version and timeout (# 4808)
  > f882ff0 Add availability rate to upgrade test report (# 4555)
  > a6635bb Patch HPA eventing-webhook min replicas (# 4811)
  > d46c1d0 It is already 2021 (# 4809)
  > fb8fbf7 Adding new source conformance testcase for CRD RBAC (# 4787)
  > 1725902 Update COMMUNITY_CONTACTS.md test grid link (# 4798)
  > b75d03a Adding new source conformance testcase for CRD Source Registry Spec (# 4780)
  > 77fc350 upgrade to latest dependencies (# 4797)

Signed-off-by: Knative Automation <automation@knative.team>
2021-02-09 10:04:50 -08:00
David Simansky 1499be95c7
fix: Fix deprecated terminal lib (#1215) 2021-02-05 12:56:03 -08:00
David Simansky 4d97648945
fix: Fix go-openapi/spec replace with correct module (#1213) 2021-02-03 03:25:06 -08:00
David Simansky e95b13fb22
fix: Pin go-openapi/spec version to fix conflict (#1209) 2021-02-01 16:10:32 -08:00
Ville Aikas f15f2755d8
update to k8s 0.19.7, go v1.15, fix gnostic (#1206)
* update to k8s 0.19.7, go v1.15, fix gnostic

* oops, did not run ./hack/build.sh

* Fix unit tests that broke because of k8s 1.19 update

* Update asserting in test to adapt to new jsonpath output behaviour

Looks like that strings are quoted now in arrays.

* fix one more assert

Co-authored-by: Roland Huß <roland@ro14nd.de>
2021-01-28 04:35:31 -08:00
knative-automation c503b88be2
upgrade to latest dependencies (#1201)
bumping knative.dev/pkg 32a3248...7101e9d:
  > 7101e9d allow the addressable ducktype to act as an ownerref (# 1999)
  > 250a183 Bump K8s libs to 1.19 (# 1986)
  > 2f4dd35 Switch Webhook to ed25519 and expiration of the certificate to seven days (# 1998)
bumping knative.dev/serving d0a0e38...e61294b:
  > e61294b Implement e2e test for the gradual rollout. (# 10610)
  > ea79db1 Improve test flow (# 10611)
  > c369980 don't add the UID labels since it breaks downgrading (# 10615)
  > 16dc14f Rever the 100ms to 1ms change, since it flakes a lot (# 10609)
  > df43d82 Remove some -1 here and there and compute it once. (# 10604)
  > b6e0ad5 Update net-istio nightly (# 10607)
  > 8e3abe8 Update net-certmanager nightly (# 10598)
  > 4437522 Replace arbitrary short sleeps with short-circuited long sleeps (# 10608)
  > 9c9b7bb Add julz to API reviewers (# 10606)
  > 076d97c Make TestHTTPProbeTimeoutFailure more reliable (# 10605)
bumping knative.dev/eventing 26a3bfa...ff327f0:
  > ff327f0 Expose the function RunMainTest (# 4779)
  > c4a39e2 test(sources): add roundtrip tests for sources v1 types (# 4764)
  > ebd5b0f Allow to specify build platform for test images (# 4763)
  > 7123f45 Use KO_YAML_FLAGS for multi-platform build (# 4770)
bumping knative.dev/networking 4db00b8...8b522a9:
  > 8b522a9 Move TestProbeHeaders tests to stable, TestTagHeaders tests to beta (# 340)

Signed-off-by: Knative Automation <automation@knative.team>
2021-01-24 23:59:54 -08:00
knative-automation 70f1ad7793
upgrade to latest dependencies (#1200)
bumping knative.dev/hack 4422dca...8d623a0:
  > 8d623a0 Use git tag directly in master to get latest version (# 43)
bumping knative.dev/networking b17f435...4db00b8:
  > 4db00b8 upgrade to latest dependencies (# 339)
  > 844666d Update common github actions (# 338)
bumping knative.dev/serving db82b33...d0a0e38:
  > d0a0e38 Add more tests to cover various durations. (# 10603)
  > dde8581 add-anno-test (# 10602)
  > d6c9426 Update net-istio nightly (# 10596)
  > 8eee938 Update documentation for DomainMapping ref field (# 10595)
  > 753fa2e Remove the benchmarks that don't make much sense (# 10588)
  > 935f387 upgrade to latest dependencies (# 10594)
  > 637cb0f Update common github actions (# 10593)
  > 77a7067 Add an accessor to the route to get rollout duration (# 10592)
  > b6f1614 Don't propagate the rollout duration annotation to Configurations and Revisions (# 10589)
  > 6c77ef5 Update net-istio nightly (# 10583)
bumping knative.dev/pkg 1bbf0a6...32a3248:
  > 32a3248 upgrade to latest dependencies (# 1997)
  > 992644a Update common github actions (# 1996)
  > 8cd47b5 drop excess logger properties (# 1993)
bumping knative.dev/eventing 5dc363d...26a3bfa:
  > 26a3bfa upgrade to latest dependencies (# 4766)
  > 1b383e0 Update common github actions (# 4765)
  > d1bac1e use v1beta2 as the storage version of PingSource (# 4750)

Signed-off-by: Knative Automation <automation@knative.team>
2021-01-21 22:41:53 -08:00
knative-automation 90c70efe9e
upgrade to latest dependencies (#1196)
bumping knative.dev/networking 07a8160...b17f435:
  > b17f435 upgrade to latest dependencies (# 337)
  > dcc8744 Remove out-of-date documentation (# 336)
  > 4751606 upgrade to latest dependencies (# 335)
  > 07536a6 Move RewriteHost conformance tests to Beta (# 334)
  > e223a89 upgrade to latest dependencies (# 333)
  > 356d71b upgrade to latest dependencies (# 332)
bumping knative.dev/pkg f0ea5e6...1bbf0a6:
  > 1bbf0a6 add LabelSelector to InformerFactory so that the informers only list and watch resources with the given labels (# 1940)
  > 75d66b5 preserve the stable webhook logger names we had before (# 1994)
  > 22f4898 upgrade to latest dependencies (# 1990)
  > 5bb97df fix duration logging (# 1992)
  > a74906c Use structured logging to augment our logger vs. naming (# 1991)
bumping knative.dev/eventing 1c94ef8...5dc363d:
  > 5dc363d [# 4744] Update conformance test helper (# 4756)
  > 764685c upgrade to latest dependencies (# 4761)
  > b10d720 [# 4744] Bump test zipkin version (# 4755)
  > 2b95f45 upgrade to latest dependencies (# 4747)
  > d395f6f Cleanup channel template internal types (# 4749)
  > 8e0e286 💽 Change KIND's k8s to 1.19.4 and add 1.20.0 (# 4729)
  > 0f2f567 Format markdown (# 4746)
bumping knative.dev/serving 84421cd...db82b33:
  > db82b33 Backfill missing test (# 10585)
  > 7dc411c Update net-kourier nightly (# 10584)
  > 197b97f upgrade to latest dependencies (# 10582)
  > 76e9ba5 Update net-kourier nightly (# 10578)
  > 11f0b4b Add validation to the route and service annotations for rollout duration (# 10581)
  > 44bd297 Update net-istio nightly (# 10577)
  > 2488c73 Use more consistent constant name (# 10580)
  > 2ed1f20 rename configUID to configurationUID to be consistent with the other labels (# 10579)
  > 4a7c82a Update net-contour nightly (# 10573)
  > dab32d1 Update net-kourier nightly (# 10572)
  > 404ef98 upgrade to latest dependencies (# 10576)
  > da1db84 Allow setting ReadOnlyRootFilesystem (# 10560)
  > 5fbe2f1 upgrade to latest dependencies (# 10574)
  > 3177cc7 Add a serviceUID label to ksvc (and implicitly to config) (# 10539)
  > 59e35cd Add the new annotation for the rollout duration and its validation (# 10561)
  > b7a7c18 Drop logger annotations (# 10570)
  > 078edf2 Be consistent in reading revision headers (# 10563)
  > 8509e6e Fixed comment about autoscaler logging config override (# 10569)
  > b5cd2eb Update net-contour nightly (# 10565)
  > a8c2dae Update net-certmanager nightly (# 10564)
  > 3135ad4 upgrade to latest dependencies (# 10568)
  > 80321c4 Update net-kourier nightly (# 10552)
  > cb128a4 Update net-istio nightly (# 10550)
  > 66389d3 Cut down queue health tests from 2s to basically nothing (# 10556)
  > fbd3968 Cut down the probe test runtime from 18s to 3s (# 10546)
  > 9b69859 Widen timeouts for queue probe tests to harden them (# 10555)
  > 9979954 upgrade to latest dependencies (# 10562)

Signed-off-by: Knative Automation <automation@knative.team>
2021-01-21 07:14:53 -08:00
knative-automation 2cb77f6c56
upgrade to latest dependencies (#1188)
bumping knative.dev/eventing a414aee...1c94ef8:
  > 1c94ef8 Add event reply header to spec (# 4560)
  > 056bc25 Add Open Telemetry Spec attributes to IMC Dispatcher span (# 4659)
  > 6d76c44 try using hack wait for pods (# 4741)
  > d74dc25 Format markdown (# 4740)
  > 1897543 [# 4717] Update e2e broker defaults webhook test (# 4720)
  > c5b9eeb Unify usage of YAML libraries (# 4667)
  > 2e96fd0 Now the config-imc-event-dispatcher values are injected to the dispatcher through envs (# 4543)
  > 05a3a27 note that these only pertain to this repo (# 4733)
  > 21d91e4 Format markdown (# 4734)
  > 47d9937 Update spec.md with v1 API (# 4594)
  > 343dec3 Use the v1 api package... (# 4727)
  > ff5109d re-submit # 4707 (# 4730)
  > b1882d6 [# 4721] Update e2e broker default webhook test (# 4722)
  > 7d12333 Disabling servicelinks in all the components (# 4714)
bumping knative.dev/networking ecb89ce...07a8160:
  > 07a8160 upgrade to latest dependencies (# 331)
  > 4c4c237 Add config to disable auto-creation of domain claims (# 330)
  > 3a89509 As per discussion with @mattmoor keep drainer in pkg (# 329)
  > c30dc94 Use symlink for testdata version of config-network.yaml (# 328)
bumping knative.dev/hack 4ed1ecb...4422dca:
  > 4422dca Set GOBIN in codegen-library.sh (# 44)
  > d946d25 Revert "Add hermetic go mod aware handling to run_go_tool (# 38)" (# 39)
  > ea9c9a0 Add hermetic go mod aware handling to run_go_tool (# 38)
bumping knative.dev/serving 560a4f6...84421cd:
  > 84421cd Shutdown processor to avoid log races (# 10544)
  > e402e8e Remove the old constant since the new one has been since August 2020 (# 10559)
  > 89cbb09 Nits in the code formatting (# 10558)
  > c06ee54 Move the functions that have only single use to the private package (# 10541)
  > cf06222 Remove activator/util package (# 10557)
  > 95c699b Update net-certmanager nightly (# 10551)
  > bcbaa8e Update net-contour nightly (# 10553)
  > c865fa5 Un-export WithRevID, RevIDFrom, WithRevision, RevisionFrom (# 10549)
  > 824e336 Cut down queue-probe test time from 3s to .5s (# 10548)
  > 725cbe9 Fix wrong file permission (# 10543)
  > e07174d Use explicit revID parameter in Throttler (# 10545)
  > 454fd7c Allow disabling of automatic DomainClaim creation (# 10537)
  > 1f95e13 Remove comment about recreation of the autoscaler pod in config-logging (# 10542)
  > 0f2d350 swap dates with tcnghia (# 10529)
  > 156f8a4 upgrade to latest dependencies (# 10538)
  > c886a22 Simplify and optimise proxy header pruning (# 10535)
  > 7602d81 Remove backwards compatibility check in KPA (# 10534)
  > d28e461 Sanitize probe header value written by user before response (# 10533)
  > e2c6836 Ensure step size is validated and add tests (# 10532)
  > ca1ac91 Update net-istio nightly (# 10524)
  > 3ec271c Improve performance a bit by using binary search (# 10531)
  > 8f213d9 Report first and second revision metrics separately and deleted old rev. (# 10518)
  > 457be78 Update net-contour nightly (# 10523)
  > a295b6d Update net-certmanager nightly (# 10522)
bumping knative.dev/pkg 51c72e2...f0ea5e6:
  > f0ea5e6 Use special error type to designate skips. (# 1988)
  > acbf2af Harden logstream against non-object events (# 1984)
  > 93874f0 Drainer supports customized kubelet probe check (# 1977)

Signed-off-by: Knative Automation <automation@knative.team>
2021-01-14 22:55:20 -08:00
Navid Shaikh 174e41b628
client release v0.20.0 prep (#1189)
* Update deps for release v0.20.0

* Update version command

* Update CHANGELOG

* Run tests against serving and eventing v0.20.0

* Run tests against serving and eventing v0.20.0
2021-01-14 01:19:32 -08:00
knative-automation c795f2131d
upgrade to latest dependencies (#1183)
Signed-off-by: Knative Automation <automation@knative.team>
2021-01-10 23:28:37 -08:00
knative-automation 8a4ab8fc84
upgrade to latest dependencies (#1180)
Signed-off-by: Knative Automation <automation@knative.team>
2021-01-05 20:24:56 -08:00
knative-automation f3c8fdd1c5
upgrade to latest dependencies (#1178)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-22 23:56:04 -08:00
knative-automation 809f925a0c
upgrade to latest dependencies (#1177)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-21 00:14:03 -08:00
knative-automation 5a0e79a357
upgrade to latest dependencies (#1176)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-17 21:02:02 -08:00
knative-automation 9234ef146c
upgrade to latest dependencies (#1174)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-16 21:40:02 -08:00
knative-automation 5e92aa32ea
upgrade to latest dependencies (#1171)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-16 06:08:59 -08:00
knative-automation 1bb08ff024
upgrade to latest dependencies (#1170)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-15 21:18:58 -08:00
knative-automation 07b2878eec
upgrade to latest dependencies (#1169)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-14 22:42:43 -08:00
knative-automation 6ba7d6c303
upgrade to latest dependencies (#1168)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-13 20:25:43 -08:00
knative-automation 12e8eae6fd
upgrade to latest dependencies (#1166)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-09 18:31:41 -08:00
knative-automation 03d8236b62
upgrade to latest dependencies (#1164)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-04 02:59:09 -08:00
Scott Nichols 2d44ce89e8
Integrate the gopath hacks to allow for codegen anywhere. (#1161) 2020-12-03 02:45:08 -08:00
knative-automation fb594e76c5
upgrade to latest dependencies (#1159)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-01 22:18:51 -08:00
knative-automation b1fd1875b6
upgrade to latest dependencies (#1155)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-29 23:35:36 -08:00
knative-automation 2941816951
upgrade to latest dependencies (#1145)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-26 06:49:35 -08:00
knative-automation 354257e64c
upgrade to latest dependencies (#1139)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-25 07:10:35 -08:00
knative-automation 861f63d406
upgrade to latest dependencies (#1137)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-24 21:15:35 -08:00
knative-automation 14bc2ddf42
upgrade to latest dependencies (#1126)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-24 11:12:43 -08:00
knative-automation 4539ee8f33
upgrade to latest dependencies (#1123)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-17 22:30:51 -08:00
knative-automation 10128901aa
upgrade to latest dependencies (#1120)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-17 06:32:52 -08:00
Roland Huß ff52ca0669
Update version dependency to 0.19 + update version command (#1111) 2020-11-11 07:10:59 -08:00
knative-automation e8b26e182a
upgrade to latest dependencies (#1103)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-09 20:23:58 -08:00
knative-automation 5787e95e9c
upgrade to latest dependencies (#1091)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-05 22:12:07 -08:00
knative-automation 3614bd6b64
upgrade to latest dependencies (#1088)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-03 08:47:04 -08:00
knative-automation 8a0067dc6b
upgrade to latest dependencies (#1085)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-03 02:01:04 -08:00
Murugappan Chetty c60b85150c
Export test refactor (#1069)
* vendor changes for importing serving test

* refactor export test

* vendor changes

* lint changes

* add comments and address review comments

* review comments for #1069

* rebase

* remove vendor/license

* remove vendor/license
2020-11-02 07:21:35 -08:00
Roland Huß 8ca97c7920
Feature: "kn service apply" (#964)
* feat: "kn service apply"

This commit introduces a client-side apply with a plain JsonPatchMerge. This is more limited than a StrategicPatchMerg as it does not allow to merge lists (they are just overwritten). Also is not a real 3-way merger that would lead to a conflict when both the, the server-side and the provide update overlapp in fields that updated, compared to the shared original configuration. This is a problem of  JsonThreeWayMerger itself, as pointed out in https://github.com/kubernetes/kubernetes/pull/40666#pullrequestreview-502804243.

This limitation is shared with kubectl, which suffers from the same issue if using `kubectl apply` with a custom resource (i.e. with everything that has schema that is not registered within kubectl).

Tests are missing, too, but will come soon

* chore: Add tests for 'kn apply'

* refactor: Removed PatchService from pulic API interface

* fix: Display of service URL at the end, when no changes apply

* chore: Add initial E2E test

* chore: Implemented review suggestions

* More tests
* Example for kn service apply
* Remove commented-out code

* lint fixes

* fix formatting of kn service apply doc

* fixing go.sum

* chore: Update deps
2020-11-02 00:36:35 -08:00
Scott Nichols d1552ee0a3
updating to use the hack repo (#1084)
* updating to use the hack repo

* eof

* you need to run update deps after codegen to pick up any new deps.

* do not reinvent update-deps.

* must be winter
2020-10-30 11:41:35 -07:00
Navid Shaikh ad4a7b18a2
Pin deps back to master (#1082)
* Update autoscaling annotation validation

 see ref: https://github.com/knative/serving/pull/9496

* Replace DeprecatedInjectionAnnotation with InjectionAnnotation

* Vendor deps at master

* Use context.TODO instead of context.Background
2020-10-30 08:15:35 -07:00
Matt Moore 24e7f50dfb
upgrade to latest dependencies (#1062)
Signed-off-by: Matt Moore (via Sockpuppet) <mattmoor@vmware.com>
2020-10-15 14:26:56 -07:00
Zhimin Xiang 574327f7db
Ping serving and eventing to release-0.18 (#1033) 2020-09-29 22:41:28 -07:00
Matt Moore 0bf9aa4746
upgrade to latest dependencies (#1028)
Signed-off-by: Matt Moore (via Sockpuppet) <mattmoor@vmware.com>
2020-09-29 03:32:28 -07:00
Zhimin Xiang 9b210e3be1
[Release-0.18] Pin knative deps to release-0.18 (#1025)
* Pin pkg to release-0.18 version

* ./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh

* bump k8s version to 1.18.8

* Fix the brokerage of importing latest serving

* exclude script/test-infra md from md check
2020-09-23 11:58:41 -07:00
Murugappan Chetty 77564112df
add e2e for h2c (#1000)
* add e2e for h2c

* add e2e for h2c

* add e2e for h2c

* add symlink for grpc example

* add symlinks

* add symlink
2020-09-11 03:32:00 -07:00
Navid Shaikh 5ed353d36b
feat(channel): Manage knative eventing channels (#967)
* feat(channel): Manage knative eventing channels

- Support specifying the type of channel to create using --type.
 - Default is to use messaging layer configuration for channels
- Channel type aliases via kn config and alias for InMemoryChannel
 - User can now configure channel type aliases in kn config and specify
   alias to GVK mappings for easy reference on CLI and refer with `--type` flag
 - User can also use inbuilt alias 'imc' for InMemoryChannel

* Let channel reconcile, sleep for 5 secs after creation

* Add imcv1 and imcv1beta1 aliases

* Rename imcv1 alias to imc
2020-08-25 09:25:49 -07:00
Murugappan Chetty 4ea31c444a
build test images for e2e (#974)
* build test images before e2e

* build test images before e2e

* build test images for e2e

* build test images for e2e

* build test images for e2e

* build test images for e2e

* use built test image in smoke test

* use built test image in smoke test

* change tests to use built test image

* change tests to use built test image

* change tests to use built test image

* change tests to use built test image

* add common base image for all purpose

* build images for e2e

* rebase with master

* add non root base image

* add non root base image
2020-08-20 04:42:13 -07:00
Navid Shaikh c39025f7ca
Vendor serving and eventing at v0.17.0 (#984)
* Vendor serving and eventing at v0.17.0

* Update version commmand output

* Run latest release e2e tests against serving/eventing v0.17.0
2020-08-20 03:22:13 -07:00
Adam Harwayne eda276b8a3
Pin knative/pkg to release-0.17 (#976)
* Pin pkg to release-0.17 branch.

* hack/update-deps.sh --upgrade

* Update hack/update-deps.sh for the test-infra section.

* hack/update-deps.sh --upgrade
2020-08-11 12:23:05 -07:00
Matt Moore 49a552f155
[master] Auto-update dependencies (#950)
Produced via:
  `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh`
/assign maximilien rhuss
/cc maximilien rhuss
2020-08-04 13:19:28 -07:00
Matt Moore 7965358b58
[master] Auto-update dependencies (#936)
Produced via:
  `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh`
/assign maximilien rhuss
/cc maximilien rhuss
2020-07-24 15:15:58 -07:00
Navid Shaikh 8232c9d16b
Upgrade spf13/cobra dep to current master (#944)
* Pin spf13/cobra dep at b95db644ed1c0e183a90d8509ef2f9a5d51cc29b

 which includes the zsh completion fix for https://github.com/spf13/cobra/pull/899
 and remove the fork of cobra with fix in `replace` section of go.mod

* Parse args without invoking a separate command

 Do not define and execute extractCommand before running actual root
 command to parse all the args without flags. This was creating issues
 with completion utils to generate additional shell completion directive.
 Now uses cobra's inbuilt utilities to parse the command args without flags.

* Return error from stripFlags if any

* Update unit tests
2020-07-22 14:46:57 -07:00
Navid Shaikh 217a813344
Track floating deps at master (#932)
* Track floating deps at master

* Update kn version command
2020-07-15 07:42:32 -07:00
Navid Shaikh f91fb57f9a
kn v0.16.0 release prep (#922)
* Update unit test for invalid concurrency target value

* Vendor v0.16.0 eventing and serving

* Commit the LICENSES generated by hack/update-deps.sh

* Spare third_party dir from license check in hack/build.sh

* Update eventing and serving version for 'kn version'

* Use DeprecatedInjectionAnnotation key for backward compatibility

  Fixes #918
  Use DeprecatedInjectionAnnotation, i.e. "knative-eventing-injection"
  for reconciling broker via namespace labeling and trigger annotations.

  From eventing v0.16.0 release, this key is changed to "eventing.knative.dev/injection"
  however, older eventing installation wont recognize it. So we continue
  using the deprecated key until the sugar-controller would support reconciling
  on either keys.

* Fix(kn version): Display eventing.knative.dev at v1beta1 version

 We've been showing 'v1alpha1' in kn version while we actually
 vendor and refer v1beta1 for eventing.knative.dev

* chore(e2e): Run tests against serving/eventing v0.16.0 release

* Update test for concurrency-target to expect new error message

 the new error message for incorrect concurrency-target value contains "should be at least 0.01"

* Setup sugar-controller for released eventing version setup

 - reuse knative_setup util from common lib for latest-release CI setup

* Fix typo in YAML URL and add subheader for sugar-controller install
2020-07-10 10:41:19 -07:00
Murugappan Chetty f869b44d66
add kn export type (#856)
* add kn export type

* add kn export type

* add kn export type

* Update pkg/apis/client/register.go

Co-authored-by: Matt Moore <mattmoor@vmware.com>

* e2e test for kn export type

* e2e test for kn export type

* add new type for kn export

* rebase

* rebase

Co-authored-by: Roland Huß <rhuss@redhat.com>
Co-authored-by: Matt Moore <mattmoor@vmware.com>
Co-authored-by: Roland Huß <roland@ro14nd.de>
2020-06-18 02:33:25 -07:00
Roland Huß c7426459be
Refactor main flow and introduce explicit plugin and config handling (#877)
* Refactor main flow, plugin and configuration handling

* The plugin handling has been moved out of the `KnDefaultCommand` constructor where it was executed as a side-effect. The original code from `kubectl` suffers from the same issue that plugin handling is not a top-level concern but was very likely introduced as an after-thought. Instead, the plugin handling is done now by a `PluginManager` which is explicitly called in `main()`.
* Configuration and bootstrap option handling is centralized in the package `option`. After the bootstrap happened, the content of the configuration file, as well as any other global configuration, can be obtained from methods on  `config.GlobalConfig`. Also, all flag handling is delegated to cobra so that no own parsing is needed.
* Many of the logic in `pkg/kn/commands/plugin` for plugin management has been moved up to `pkg/kn/plugin` as this code is not only relevant for `plugin list` but also for the bootstrap process.

* fix: invalid subcommands will lead to a proper error message

* Update pkg/kn/config/types.go

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>

* Update pkg/kn/plugin/manager.go

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>

* Update hack/generate-docs.go

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>

* Update hack/generate-docs.go

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>

* chore: Add missing links

* chore: recert to shas in links in developer guide for now.

Co-authored-by: Navid Shaikh <nshaikh@redhat.com>
2020-06-15 09:15:24 -07:00
Dave Protasowski dfd65db9ab
bump k8s packages to 1.17.6 (#881)
* add script to bump k8s deps

* bump k8s to v1.17.6
2020-06-08 15:30:32 -07:00
Dave Protasowski a7ea77d106
Update go.mod to specify the module is go1.14 (#866)
* Update go.mod to specify the module is go1.14

Thus the go commands will default to -mod=vendor

See: https://golang.org/doc/go1.14#go-command

* install goimports as a tool

* drop mod=vendor usage as that's the default with go1.14

* remove comment about using -mod=vendor

* Revert "drop mod=vendor usage as that's the default with go1.14"

This reverts commit 567004d404bb7ebd39ed527dc75759cfc7db672f.

* Revert "remove comment about using -mod=vendor"

This reverts commit 2a71393a2015c1539be1503e0c52cf64283e12d0.

* Revert "install goimports as a tool"

This reverts commit 9616d5e2d2ab0d61e8454b1ace057ec9712e182d.

* use go_run_tool to run goimports

* inline go_run_tool

* include required env var REPO_ROOT_DIR
2020-06-08 13:40:32 -07:00
Roland Huß 2a42ee1a33
chore: Move from Eventing v1alpha1 to v1beta1 (#878) 2020-06-08 05:42:19 -07:00
Roland Huß 3a242c7604
chore: Unpin dependencies to follow master again (#870)
Reset version to "master" and update-deps.sh --upgrade after branching off for release-0.15
2020-06-02 08:02:17 -07:00
Roland Huß fc6f379d94
chore: Preps for release 0.15.0 (#869) 2020-06-02 03:35:17 -07:00
Roland Huß b7fc4c3906
chore: Remove OWNERS files in vendor/ when updating deps (#867)
* chore: Remove OWNERS files in vendor/ when updating deps

* chore: Remove OWNERS also in build.sh
2020-06-01 19:25:03 -07:00
Roland Huß 93c58d294d
chore: Pinning to k8s version 0.16.4 like Knative serving/eventing does (#857) 2020-05-26 23:58:59 -07:00
Markus Thömmes 4ba1cca91e
Update dependencies, pin k8s deps. (#855) 2020-05-26 00:39:49 -07:00
Roland Huß c41e9fd923
chore: Update changelog for 0.14.0 (#820)
* chore: Update changelog for 0.14.0

* chore: Tune wording in Changelog.adoc

* chore: Update to eventing 0.14.1 and fixed `kn version`
2020-04-21 23:36:40 -07:00
Roland Huß df9278743b
chore: Update to Knative serving/eventing 0.14.0 (#810)
* chore: Update to Knative serving/eventing 0.14.0

and also move ApiServerSource to v1alpha2, adapting the option
(from "controller" to "labelSelector")

* fix go.sum

* chore: Update and fix tests

* chore: fix go.sum
2020-04-16 14:27:48 -07:00
Navid Shaikh b7a2a09085
Pin serving to v0.13.2 and update version command (#797)
* Pin serving v0.13.2 dep to v0.13.2

* Update version command

 now points to serving v0.13.2 and eventing v0.13.6

* Copy go.sum as generated in CI
2020-04-14 01:26:15 -07:00
Matt Moore f4c96ef558
[master] Auto-update dependencies (#791)
Produced via:
  `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh`
/assign maximilien rhuss
/cc maximilien rhuss
2020-04-13 02:10:10 -07:00
Matt Moore a9c2e4bfe9
[master] Auto-update dependencies (#784)
Produced via:
  `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh`
/assign maximilien rhuss
/cc maximilien rhuss
2020-04-08 02:43:01 -07:00
Matt Moore a7ec5209dc
[master] Auto-update dependencies (#781)
Produced via:
  `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh`
/assign maximilien rhuss
/cc maximilien rhuss
2020-04-06 07:36:19 -07:00
Matt Moore 2e4ff2be4c
[master] Auto-update dependencies (#776)
Produced via:
  `./hack/update-deps.sh --upgrade && ./hack/update-codegen.sh`
/assign maximilien rhuss
/cc maximilien rhuss
2020-04-03 12:08:18 -07:00
Chi Zhang bedfa99b83
update test-infra to pick up the fix (#759) 2020-03-24 12:56:10 -07:00
Roland Huß 1f5a1b8566
chore: Update dependencies on to serving and eventing (#756)
The check of the maximum for concurrency-limit had to be removed as
this is picked up now also from the server side configuration
to which we don't have access. Checking against the default
max is misleading and contra-productive if this could be
different when configured differently by the Knative administrator.
2020-03-24 09:19:09 -07:00
Navid Shaikh 2fcf5adbbe
chore: Update test-infra (#742) 2020-03-17 06:48:31 -07:00
Navid Shaikh ba7e14c807
feat(source): Add 'kn source list' (#666)
* feat(source): Add 'kn source list'

 Fixes #480
 - Add 'kn source list' listing the available sources COs
 - Use dynamic client to
       - find out available source types
       - find the COs in given namespace for each source type
 - Add --type flag to filter source list based on source type
 - Add unit tests
 - Add e2e tests
 - Add CHANGELOG entry

* Update group for ApiServerSource in tests

* Add kn duck source type for holding common eventing source fileds

 - Common infromation from sources are extracted into a struct
   for source list command output
 - Printer function picks the information from this struct object
   and doesn't know the details about extracting this info from multiple
   types of sources received
 - Group and Version for list is set to empty string and Kind to 'List',
   if printed a source list with multiple types of sources in machine readable
   format
 - Group, Version and Kind for list are kept intact if printed a source list
   with same type of source objects in machine readable format

* Update go.sum

* Add WithType builder for listing source

 - Separate the flags definition
 - WithType builder can be re-used to filter the source types
 - Add unit tests

* Update ApiServer source group to apiserversources.sources.knative.dev

* Fix typos and align

Co-authored-by: Roland Huß <roland@ro14nd.de>
2020-03-10 00:41:28 -07:00
Roland Huß 46d5e60e42
refactor(source): Update to Knative eventing 0.13.0 (#705)
* chore(e2e): Optimized tests

Smoke Tests now run before the E2E tests, but in the same cluster

* chore: Removed unneeded test

* fix

* fix

* fix

* fix

* chore: Update to serving & eventing v0.13.0

* refactor(source): Update to Knative eventing 0.13.0

* Moved to "sources.knative.dev" API group
* Replaced CronJobSource with PingSource (and removed unsupported options for service account, requests limits)
* Move to versions:
  - SinkBinding v1alpha2
  - PingSource v1alpha2
  - ApiServerSource v1alpha1

* update to eventing 0.13.1

* go.sum fix

* fixed test

* test updates

* try to enhance error output

* fix test.

* update tests infra to 0.13.1
2020-03-06 13:47:27 -08:00
Navid Shaikh 136de19775
Re-enable markdown link check (#693)
* Re-enable markdown link check

 As https://github.com/raviqqe/liche/issues/33 is now fixed

* Update test-infra to latest
2020-03-03 09:22:53 -08:00
Roland Huß a220a88534
chore(e2e): Refactor to better track errors (#667)
* chore(e2e): Refactor e2e to better track errors

* Collect results from various `kn` calls to
  provide the context
* Changed sub-Run() commands to t.Log() to reduce
  the log noise and get file + line information
  in the log output
* Removed any Fatal() calls to allows the test
  to properly finish
* Only output via t.Log() to get the output at the
  proper places and allow Prow to better pick
  up the test results.
* Most important: EMOJIS !! 🦆🦆🦆🦆🦆

* chore(e2e): Add more dumpers

* Moar debug
2020-02-16 23:52:10 -08:00
Roland Huß 1b9a76bc31
feature(serving): Update API to serving.knative.dev/v1 (#640)
* feature(serving): Update API to serving.knative.dev/v1

Due to an issue with 0.12.0 (a missing constant) the update also includes an update
to the latest knative-serving  and knative-eventing dependencies from master
(as reflected in version.go)

Signed-off-by: Roland Huß <roland@ro14nd.de>

* fix(serving): Bogus import removed

* fix(serving): Add missing go.sum entry
2020-02-07 02:03:14 -08:00
Roland Huß 0e5d1a86c8
chore(e2e): Update dependency to eventing v0.12.0 (#628)
* chore(e2e): Update dependency to eventing v0.12.0

* chore: update infa script dependencies

* chore: Update testinfra dep
2020-01-31 02:20:28 -08:00
Roland Huß 164cb5f362
feature(source binding): Support for Sink Binding as source (#625)
* feature(source binding): Support for Sink Binding as source

Sink bindings are managed like any other source. Sinks are specified as usual (with prefix and name),
'subjects' (the other end of the binding) is managed via a shortcut notation:

* with name: `<kind>:<apiVersion>:<name>`
* with label selector: `<kind>:<apiVersion>:key1=value1,key2=value2`

With `--subject-namespace` and additional namespace can be provided (shoudl be possible for a sink, too but is not yet)

The implementation already uses the new sink binding from the `sources.knative.dev` group
and hence is a bit inconsistent to the still old usage kf `sources.eventing.knative.dev` for apiserver source and cronjob.

However as we will move over to `sources.knative.dev` very soon (right after v0.12.0) release,
this is was more appropriates.

Still WIP, but eventually fixes #624

Task list:

- [X] create
- [] update
- [] delete
- [] describe
- [] list

* fix(source binding): Added missing commands

Also, it looks like that knative eventing 0.12.0 is still on the old api group.
So I need to move this code to use the legacyclient, too, for the sink binding
and only switch over to the new client for 0.13.0

* feature(source binding): Added missing subcommands

* update
* delete
* list
* describe

* fix(source binding): Removed --subject-namespace as this namespace cant b set.

Tuned describe output a bit.

* feat(source binding) add support for CeOverride

* fix: Worked on review comments

* fix: review comments

* fix: names in binding client
2020-01-29 12:08:27 -08:00
Roland Huß 599f1a5203 chore: Update k8s dependencies and cleaned up a bit (#622)
* chore: Update k8s dependencies and cleaned up a bit

* chore: Moved to k8s 1.16.4 like for serving & eventing

* fix: Add missing go.sum line
2020-01-22 04:57:23 -08:00
Navid Shaikh 8c417c1226 Vendor serving v0.12.0 (#618)
- Vendor serving release v0.12.0
 - Update `kn version command` to print serving v0.12.0
 - Update latest release e2e tests script to setup serving v0.12.0

Co-authored-by: Roland Huß <rhuss@redhat.com>
2020-01-22 00:48:23 -08:00
Scott Nichols 9fd763e5dd migrate to the new eventing legacy client (#621)
* migrate to the new eventing legacy client

* ran go mod tidy

* found the ./hack/build.sh file and ran it.
2020-01-21 23:15:23 -08:00
Navid Shaikh fc488d98c2 Update test-infra: Eventing nightly release YAML rename (#610)
per d5990f0e5a
2020-01-16 11:25:04 -08:00
Ying Chun Guo 7def9f49eb Add command for creation of a plain trigger (#541) 2019-12-16 07:41:01 -08:00
Navid Shaikh 4128022fb7 Update deps using go 1.13 (#535)
- Commit results of codegen using go 1.13
 - Update DEVELOPMENT.md to mention go 1.13
2019-12-11 02:38:49 -08:00
Navid Shaikh f0a40d1b4b Vendor eventing v0.11.0 and run tests against it (#546)
- Pin contrib.go.opencensus.io/exporter/stackdriver@59d068f8d8ff5b653916aa30cdc4e13c7f15d56e
 - Pin knative.dev/pkg@release-0.11
 - Move `Destination` from (knative.dev/pkg) v1alpha1 to duckv1beta1
 - Run tests against Eventing v0.11.0
2019-12-11 00:21:48 -08:00
Navid Shaikh 4f0eb99f8e Vendor serving v0.11.0 and run tests against it (#545)
* Vendor serving v0.11.0

* Run tests against serving v0.11.0
2019-12-10 21:14:48 -08:00
Navid Shaikh 7dbb5a5bb0 kn source list-types (builtin types) (#536)
* feat: kn source list-types (builtin types)

 - Only lists the builtin source types
 - Uses client-go dynamic client for listing CRDs
 - Adds DyanmicClient interface to KnParams
 - Adds printing options

* chore(lint): Address golint suggestions

* Rebase and update venodr/modules.txt

* Adds unit tests for DynamicClient in types.go

* Add kn source list-types command in smoke tests

* Constants for the CRD GVR and source identifier label key value

 GVR as:
   - Group: apiextensions.k8s.io
   - Version: v1beta1
   - Resource: customresourcedefinitions
 Label as:
   {"duck.knative.dev/source": "true"}

* Add tests for dynamic client

* Add description about SinkBinding source type

  as - "Binding Pattern for ContainerSource"

* Remove unused imports

* Adds unit tests for list-types command processing

* More unit tests for flags

* Adds e2e tests for kn source list-types

  - also test the YAML output

* Sort the source types while listing them

 - Update the unit tests accordingly

* Add examples

* Add unit tests for CreateDynamicTestKnCommand

* Fix typo in unit tests

* golint fixes

* Updates to vendor/modules.txt after rebase

* Remove the extra lines
2019-12-10 11:20:47 -08:00
Ying Chun Guo 003dba3616 Add creating ApiServerSource event source to Client (#415) 2019-12-10 03:52:46 -08:00
Navid Shaikh ed25066cf6 Eventing setup in CI (#538)
* Eventing setup in CI

  - Update test-infra
  - Use library functions for setting up released and latest Eventing
  - Set up Eventing 0.10.2 and nightly release in `latest-release` and default e2e tests CI job respectively

* Fix typo in variable name and update formatting
2019-12-06 10:39:40 -08:00
Martin Gencur 60567a9e37 Integration tests for Tekton (#528)
* Integration tests for Tekton

* Use knative/client instead of fork

* also put back the e2e-tests into its original format where it doesn't
run the tekton tests

* Run ./hack/build.sh with Go 1.12

* Pull buildah and kn tasks directly from catalog

* Revert "Use knative/client instead of fork"

This reverts commit 2ab272f587.

* Revert "Revert "Use knative/client instead of fork""

This reverts commit f14c2105e2.

* Update Tekton to 0.8.0

* Revert "Use knative/client instead of fork"

This reverts commit 2ab272f587.

* Use knative/client instead of fork

This reverts commit 8eb87ada02.

* Export variables after calling initialize

* Run against arbitrary Docker registry

* Conditionally install Tekton

* Use knative/client instead of fork

This reverts commit 3800adbf69.

* Revert "Use knative/client instead of fork"

This reverts commit 71a3d33b5a.

* Simplify passing the flag to test

* Simplify imports
2019-12-06 05:03:39 -08:00
Adriano Cunha 556f457e06 Update test-infra (#529)
Major changes:
* fix monitoring install function
* fix build tests not failing on module updates
2019-12-03 10:27:35 -08:00
Ying Chun Guo 37d27782a5 add common codes for sources client (#514) 2019-11-27 00:50:21 -08:00
Naomi Seyfer e07b5a98b5 In waiting for ready, watch falls back to polling. (#491)
* Fall back to polling-based watcher

* Tests pass, much cleaner

* tests and fixes for polling watcher

* Clean up a lil

* lint

* Nits

* build -u
2019-11-19 22:48:08 -08:00
Adriano Cunha 764e8c933e Update vendor/knative.dev/test-infra (#503) 2019-11-15 09:54:02 -08:00
Ying Chun Guo d66887a310 Add dependencies to Eventing 0.9.0 (#470) 2019-11-12 00:41:22 -08:00
Roland Huß ad02647ddc chore: Update to k8s 1.15.5 and fixing go.sum error (#493) 2019-11-11 02:00:20 -08:00
Roland Huß 07743f8dab chore: Update testing infrastructure (#488) 2019-11-07 06:29:56 -08:00
Naomi Seyfer 4874b9a384 Human-readable revision describe (#475)
* Revision describe rebaseable

* Fix up for rebase

* Some tests

* moretests

* Forgot part of the refactor!

* Fix unit tests

* Change e2e tests and respond to feedback
2019-11-05 17:43:02 -08:00
Roland Huß d8d0192206 chore: Update to Knative Serving 0.10.0 (#474)
* chore: Update to Knative Serving 0.10.0

* chore: Add missing dep, introduced by codegen test (when installing goimports)

* added missing target dir
2019-11-04 13:02:19 -08:00
Navid Shaikh dd5b05cd42 Updates spf13/cobra dep to v0.0.5 (#443)
* Updates spf13/cobra dep to v0.0.5

 Fixes #426

 - and a couple of patches on top which aren't merged yet
 	- spf13/cobra#884
	- spf13/cobra#899
 - also updates viper to 1.4.0

* Updates to go.sum

* Updates go.mod

 as a result of `go install golang.org/x/tools/cmd/goimports`
2019-10-30 03:31:11 -07:00
Navid Shaikh a32f5666b5 Vendors serving v0.9.0 (#458)
* Vendors serving v0.9.0

* Updates references per serving v0.9.0 vendoring

 - Updates code and tests to refer the required data structure and method/function calls
 - duckv1beta1 -> duckv1 conditions
 - traffic percent value is now *int64
 - containerConcurrency validation method relocation

* fix(golint): exported function should have comment

 for NonReadyConditionReason function

* Updates check for removing null targets

 fixes the pointer value check

* Updates per review comments
2019-10-27 22:22:36 -07:00
Navid Shaikh 419678a4b8 Updates YAML transitive dependency to v2.2.4 (#448)
As per title, just to make sure we're not vulnerable to CVE-2019-11253.
 See kubernetes/kubernetes#83253.
2019-10-15 14:36:15 -07:00
Naomi Seyfer b27e366dcb Service describe: information about revision status, tags, latest [created, ready] revisions, and latest traffic (#379)
* Change symbols, add latest and latest ready

* More info on what is latest and tags. Filter annotations and labels.

* Make current tests pass

* More tests

* No longer require Annotations in test

* Add error

* Adjust tests to match adjusted output

* Respond to review comments

* one more

* Fix double printing of revisions + test for it

* Differentiate between latest traffic and latest ready w/o that being reason for traffic

* Re-build with go 1.12

* Rebased

* Limit non-verbose output to error and image

* Fix tests for new format
2019-10-03 11:33:08 -07:00
Roland Huß 6ffef8dd88 refactor(knclient): Moved KnClient -> KnServingClient (#420)
This is in preparation of introducting eventing and makes sense anyway.
Also, the GVK update handling has been moved to "util" so that it then
can be also reused by eventing.
2019-09-28 09:21:45 -07:00
Tsubasa Nagasawa 94bb1cf8db Use sets utility for saving updated env vars (#409) 2019-09-17 07:53:46 -07:00
Adam Harwayne 40631a6e97 Retain the request body when logging HTTP. (#378)
* Retain the request body when logging HTTP.

* hack/build.sh -u

* Add a unit test.

* Unit test redacted headers.
2019-08-21 12:23:33 -07:00
Naomi Seyfer 25c726453e Update serving dependency to 0.8; change all import paths (#368)
* Update serving to 0.8. Try building.

* Find the right serving version

* Change our own import path to knative.dev to match

* Remove dependency on old version of client

* Update yaml template

* Add sleep to test to deal with race

* fix merge conflict

* Update vendor modules
2019-08-15 18:09:08 -07:00
Navid Shaikh 746dacc47c feature(service): Implements traffic splitting and tagging targets (#345)
- Add e2e tests
 - Use '=' for traffic and tag assignment instead of ':'
 - Use --tag and --untag flags for tagging traffic targets
 - Use --traffic flag for setting traffic portions
 - Allow --traffic portion to either take revisionName or tagName
 - Uses @latest identifier for referencing latest revision of service
 - Dont throw error if requested revision=tag pair is same
 - Support having multiple tags for a revision
	 - creates a new target in traffic block if revision present in traffic block with new tag requested
	 - creates N new targets in traffic block if revision absent in traffic block with Nxnew tags requested
 - Ensure updating tag of @latest requires --untag flag
	 - streamline updating tag for latestReadyRevision
	 - adds respective tests
	 - adds tests for ensuring given traffic sum to 100 on CLI and fail fast
 - Add note about preference of order in case where tagOfOneRevision == revisionOfAnother,
   first tags are checked and assigned traffic if any, as tags are supposed to be
   unique in traffic block and should be referenced in such scenario.
 - Remove the examples from flag description, moves it to service update command example section
 - Pass only traffic block to compute trffic, makes it better to consume.
 - Cover more error cases for invalid value format for assignments, covers a=b=c, a=, =b, or variants of them
 - Separate and improves the error messages
 - Add unit tests for traffic computing
 - Add sanity checks in dedicated function verifyInputSanity
 	  - traffic perents should sum to 100
          - individual percent should be in 0-100
          - repetition of @latest or tagName or revisionRef is disallowed
 - Verify traffic percents sum to 100 on client side and fail fast
 - Add e2e tests for traffic splitting
	 - create and update service, assign tags and set traffic to make an existing state
	 - run the scenario on existing state of service
	 - form the desired state traffic block
	 - extract the traffic block and form the traffic block struct actual state
	 - assert.DeepEqual actual and desired traffic blocks
 - Use logic to generate service name in the same way as namespace, use different service name per test case
 - Run e2e test for traffic splitting in parallel
 - Use timeout duration of 30m for e2e tests, use timeout parameter for go_test_e2e library function
 - Use tagName in flag description of --untag, avoiding conflict with --tag flag
 - Update CHANGELOG
2019-08-15 10:56:08 -07:00
Leonardo Rossetti c4e8d5a964 improved create service error message (#312)
* improved create service error message

* error pkg

* revisions error handling

* adding license

* project rebuild

* unit test improvements

* build updates
2019-08-14 17:10:08 -07:00
Roland Huß b4b254f64c feature(service describe): Output of service details (#252)
* feature(service describe): Output of service details

`kn service show` mimics `kubectl describe <sth>` as that it output detail information in human readable output.

A future extension should add machine readable output with `-o` to export
a single object in json/yaml (that is missing from `kn service list`)

This command shows information about the service itself, but also a summary about the associated revisions.

It also knows about scaling and concurrency options.

Options:

`--details`    : Print more information. By default only are shorter summary is shown

* chore: Cleanup up and refreshed dependencies

* fix(service describe): Integration test fix (revert "show" to "describe")

* fix: go.sum

* fix go.sum

* feature(service describe): Add printing of resources (requests/limits) + machine readable output with -o

* chore(service describe): Simplified digest handling

* chore(service describe): Sort maps by key when printed

* chore: Adapt mock framework

* chore(service describe): Test fixes

* chore: Added some tests

* more tests

* test: Moar tests

* chore: Even moar tests

* more, more tests

* changelog update

* fix(service describe): golint fixes
2019-08-08 08:23:56 -07:00
chaodaiG 9f203f2d4d Use knative.dev/test-infra (#319) 2019-07-31 03:20:43 -07:00
dr.max 59b2855d04 Implements Kn plugins re-using some code from kubectl plugins. (#249)
This version contains the following:

1. wraps the main root Kn command to support plugin
2. plugins are any executable in kn's config new pluginDir
   variable which defaults to $PATH
3. plugins must have name kn-*
4. 'kn plugin list' sub-command to list found kn plugins
5. skips any kn plugins found with name that match core
   commands, e.g., kn-service would be ignored
6. can execute any valid kn plugins found, e.g.,
   `kn valid` where the plugin file `kn-valid` is in path
   specified in 2.
7. unit tests (using gotest.tools)

And is missing:

1. integration tests
2. plugin install command
3. plugin repository command
4. plugin / Knative server version negotiation
5. anything else we agree on in plugin req doc

I plan to create issues for the things missing so we don't
end up with an even bigger PR. It's already big as is but is a
good MVP as per plugins requirement doc.
2019-07-26 13:29:48 -07:00
Tsubasa Nagasawa b7808b0fa2 Validate scale and container concurrency options when updating configuration resource (#279)
* Validate invalid container concurrency options

* Use assert package

* Use FlagSet.Changed and don't care about default values

* Update dependency

* Follow e2e test changes

* Return error if invalid value is specified by users

* Fix broken e2e test

* Add more unit tests

* Fix error message

* Fix comment statement

* Revert back unrelated changes

* Fix typo
2019-07-25 02:57:35 -07:00
dr.max 9e29ce893f test(commands): backfills gotest.tools tests for version & completion cmds (#223) 2019-07-09 11:44:55 -07:00
Roland Huß 98184eafbc refactor(serving): KnClient interface for single point of cluster access (#134)
* fix(serving): Remove hardcoded GVK and look it up from schema

Fixes #133.

* chore(serving): Add test for "WaitForService()"

* refactor(service): Add listRoutes() to client + generic way for list options

* chore(serving): Fixing rebase conflicts
2019-07-08 10:08:34 -07:00
Navid Shaikh fc9b24c1e5 Add custom comparison for checking multiple substrings (#227)
* Adds custom comparison for checking multiple substrings

 This changeset introduces custom comparison for checking if a target
 string has given multiple substrings, namely `ContainsMultipleSubstrings`.

 Also removes `commands.TestContains` function and replaces all references
 of `commands.TestContains` with `gotest.tools/assert.Check` function and
 uses `ContainsMultipleSubstrings` as comparison function.

* Renames and makes the compare function variadic

 New name: ContainsAll
 New location: pkg/util/compare.go
 Also the function now takes target string as first arg,
 and accepts any number of substrings to check.
 Removed the message arg, the compare function composes the error message.
 For eg:
```
        Actual output: foo-abcd   foo       <unknown>   0 OK / 0     <unknown>   <unknown>
        Missing strings: foo-abcd1, foo1
```

* Adds tests for compare utility ContainsAll

* Update vendor/modules.txt
2019-07-05 10:07:32 -07:00
dr.max 500b7d1371 fixes(issue #111) generically for all command groups (#218)
Explores all sub-commands from root and adds a RunE for all
commands that are groups with child commands and without a RunE.
The added RunE will return the correct errors when the command
is called with empty sub-command or with an unknown sub-command.
It will also print the command help message first.

Added a gotest.tools test for root.go.
2019-07-02 23:50:32 -07:00
Navid Shaikh aac0ec265e Adds kn route list command (#202)
- Accepts an argument name for listing particular route
- Enables the machine readable output flags
- Updates docs for kn route command group
- Adds unit tests for route command group and route list
- Adds integration tests for route list in basic workflow test
- Updates tests and getting namespace
- Adds more unit tests for code in pkg/kn/commands/route/list_flags.go
- Adds route list command in smoke tests
- Updates vendor/modules.txt
- Clean up imports
- Addresses review comments
 - replaces knative to Knative
 - uses reflect.DeepEqual for slice comparison
 - removes few code comments
 - removes irrelevant tests modifications from the PR
2019-07-02 11:25:32 -07:00
Roland Huß a7d1bc9dc0 feat(service create): Wait for a service to be ready when its created (#156)
* feat(service create): Added --no-wait and --wait-timeout

By default, `kn service create` blocks until the service is either
created or an error occured during service creation.

With the option --no-wait the behaviour can be switched to an
async mode so that that kn returns immediately after the service is
created without waiting for a successful Ready status condition.

The timeout for how long to wait can be configured with --wait-timeout
If a timeout occur, that doesn't mean that the service is not created,
but the wait just returns. The default value is 60 seconds.

In wait mode, print out the service URL as a last line (so that it can be used together with `tail -1`) to extract the service URL after the service is created.

Fixes #54

* chore(service create): Tolerate if obeservedGeneration has not been set yet during startup

* chore(service create): Refactored based on review comments

* Introduced an --async flag (replacing --wait and --no-wait)
* Added proper retry handling on the list watch
* Updated help message

* chore(service wait): Added a new test for sync behaviour
2019-06-28 05:57:06 -07:00
Chi Zhang 483979bba4 Fix the periodic CI flow error in client (#200)
* hack the emitmetrics flag

* update test-infra
2019-06-27 09:53:07 -07:00
Navid Shaikh 9c865a6115 List revisions for a given service (#194)
* Lists revisions for a given service

 Fixes #127

* Adds unit tests for listing revisions of a service

* Adds integration tests for listing revisions of a service

* Updates docs for listing revisions of a service

* Updates vendor/modules.txt
2019-06-20 13:29:00 -07:00
Naomi Seyfer 32ccc334e3 Revert #173 and #139, reinstating having a config file. (#193)
* Revert #173 and #139

* Change default layout to have a hidden kn dir

* Update deps
2019-06-19 18:12:58 -07:00
Kenjiro Nakayama 1b471d587f Remove unused `--config` option (#139)
* Remove unused `--config` option

Currently `--config` option in kn command is not used from anywhere.
This patch removes the option from the command.

* update auto gen files

* Update deps by hack/update-deps.sh
2019-06-08 09:03:41 -07:00
Roland Huß b885e41974 feat(service create/update): Add support of minScale/maxScale/concurrency-target/concurrency-limit (#157)
Autoscaler concurrency annotations are added to the revision template if
--min-scale / --max-scale / --concurrency-target/--concurrency-limit
are provided to `kn service create` and `kn service update`

Fixes #151
2019-06-08 08:27:40 -07:00
dr.max 0800d7c4d3 Regroups code to use subpackages. Finishes issue #66 (#145)
Creates four subpackages for now:

1. kn/commands - inludes types.go for common
   struct and other common files and misc commands
2. kn/commands/service - all 'kn service *' commands
3. kn/commands/revision - all 'kn revision *' commands
4. kn/core - contains the root.go and other top level
   for code and testing
5. refactors:
   a. split .../commons/human_readable_flags.go into three
   b. modifies the HumanReadableFlags.ToPrinter to get pass
      a function that sets the columns and fields

Had to refactor all tests to avoid cycles.
2019-06-05 16:30:38 -07:00
Joyce Liu 43061af74a Update test-infra to the latest version (#154) 2019-05-31 17:41:33 -07:00
Joyce Liu cf41ab2b73 update test-infra in vendor (#148) 2019-05-29 11:46:31 -07:00
Roland Huß c10092ffae fix: Update cli-runtime to include fix for cli options help (#137)
The update to kubernetes-1.13.5 for cli-runtime introduces a fix for #135 (i.e. sorting the keys for the options)
2019-05-21 09:54:27 -07:00
Roland Huß 52b6b236fe Update to serving 0.6.0 (#129)
* chore: Update to 0.6.0

* chore: Fix test

* chore: Update modules.txt
2019-05-20 10:41:27 -07:00
Adriano Cunha 8bb85c6aed Fix auto releases of Knative Client (#124)
This requires updating test-infra to deal with a repo that has no releases yet.

Also use hash and dates from the helper, to keep the binary and the GCS dirs in sync.
2019-05-17 14:40:16 -07:00
Adriano Cunha 9ec9671b2e Setup release infrastructure for Knative Client (#115)
Just like the other Knative modules, and ready for automation.

Requires updating test-infra to the latest version.
2019-05-16 10:51:17 -07:00
Navid Shaikh 39034a73f9 Adds revision get command (#97)
* Renames test names for service get command

 also removes unnecessary commented imports

* Adds revision get command

 renames `revision list` ==> `revision get`

* Adds tests for revision get command

* Updates the vendors/modules.txt

* Removes revision list command
2019-05-13 13:21:39 -07:00
Navid Shaikh bd7d57fa09 Adds service get command (#90)
* Adds service get command

 replaces service list command

* Updates go.mod and vendors/*

* Adds message if no services found in requested namespace

* Adds tests for service get
2019-05-13 10:56:40 -07:00
Navid Shaikh b6d1bb47e7 Adds human-friendly table printing for resource listing (#85)
* Adds human-friendly printer

 All the credits goes to authors of https://github.com/kubernetes/kubernetes/tree/master/pkg/printers

* Updates the vendor/modules.txt

 As its updated after running hack/verify-codegen.sh

* Removes WithKind and WithNamespace printing options

 Lets start with bare minimum printer

* Adds licenses

 and references the original implementation file link.

 Removes pkg/printers/printers.go

* Removes unused imports
2019-05-09 16:27:38 -07:00
Adriano Cunha c33b1de89a License checking works now, enable it (#98)
* License checking now works, enable it

* Update test-infra

* Update vendored test-infra
2019-05-09 14:51:38 -07:00
dr.max 95808278d4 Adds Cobra generated docs and means to generate them and first cut of other docs (#93)
* Added Cobra generated docs and ways to generate them

* Adds docs/README.md and first user's guide for Kn
2019-05-06 17:39:36 -07:00
Roland Huß 18ae474c77 chore: Update dependencies (#68)
* chore: Update dependency to knative-serving 0.5.1

* chore: Changed deps to released versions where possible

Rebuilt mod deps and vendor dir based on this dependency list

github.com/knative/serving v0.5.
github.com/knative/pkg v0.0.0-20190330001454-aad7a9ad4639
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v0.0.3
github.com/spf13/pflag v1.0.3
github.com/spf13/viper v1.3.1
k8s.io/api kubernetes-1.14.1
k8s.io/apimachinery kubernetes-1.14.1
k8s.io/cli-runtime kubernetes-1.14.1
k8s.io/client-go v11.0.0
sigs.k8s.io/yaml v1.1.0

Not sure if all dependencies are required (e.g. is k8s.io/api required
to be specified explicitely or shouldn't we rely on k8s.io/client-go
to bring it this as a transitive dependency which maches always
the cli-runtime's version.

* chore: Update .gitignore to *not* ignore certain vendor files

* chore: Aligned with k8s version from serving 0.5.2

* chore: Run `go mod tidy`

* chore(modules): Update dependencies
2019-04-30 09:48:33 -07:00
dr.max dd4e2a917b 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
2019-04-25 20:20:29 -07:00
Ben Browning 585fe80099 Stub in an integration test (#55)
* Stub in an integration test

This just calls `kn service list` and verifies it doesn't have a
non-zero exit status.

* Build the client in pre_integration_tests

* Need to explicitly build the `kn` client

As opposed to just building the entire repo. That didn't actually
stick a `kn` binary in the root.

* Address code review feedback

Build the client in e2e-tests.sh instead of presubmit-tests.sh, fix a
couple copy/paste places that referred to eventing, remove unnecessary
knative_teardown function.

* Don't attempt to build kn twice

* Turns out pre_integration_tests() is the easiest way to build kn

We don't have any other good hooks at the moment to do something in
`e2e-tests.sh` that runs only once before the test cluster gets setup.

* Update test-infra to use the new cluster_setup function

This updates the version of test-infra to use the new cluster_setup
function added in https://github.com/knative/test-infra/pull/667

It simplifies our e2e setup logic into one place instead of being
split over presubmit-tests.sh and e2e-tests.sh

* Update vendored test-infra as well

* We have to explicitly tell CI to use the vendored modules

* Be a bit more descriptive in the stubbed out integration test
2019-04-08 10:50:58 -07:00
Naomi Seyfer fb587184c4 Actually, vendor everything (#59)
* Actually, vendor everything

* Verifier and update deps

* Dont verify codegen; we cant
2019-04-05 04:08:57 -07:00
Naomi Seyfer b5b02f64f3
Incorporate reference to knative/test-infra for setting up automated tests. (#34)
* Set up some test infra

* fix gitignore

* More mod gitignore

* Add dummy file that depends on stuff
2019-03-05 16:31:05 -08:00