Commit Graph

268 Commits

Author SHA1 Message Date
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
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
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
Roland Huß 878b037c16
Fix for test flake when sync waiting and an intermediate error occurs (#1052)
* fix: Cancel error timer on sync wait when a non-error event arrives

* chore: Added
2020-10-08 05:30:21 -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
Roland Huß a01861b1f3
Add support for internal plugins (#902)
* chore: Add support for internal plugins

* added test for internal plugin lookup

* add changelog entry

* fix formatting

* update to latest changes on main

* Added more tests + some docs

* formatting fix

* moved to proper injection label for setting up the broker in integration test
2020-08-25 04:34:48 -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
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
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ß 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
dr.max df78b8b40c
(refactor) address the e2e extract / refactor of issue #763 (#765)
* (refactor) address the e2e extract / refactor of issue #763

* various updates to address reviewers feedback

* renamed lib/test/integration to lib/test and package to test
2020-04-01 09:21: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
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ß 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
Roland Huß 0ca6f14d4a feature(source cronjobs): Implementation of CronJobSource management (#542)
* feature(source cronjobs): Implementation of CronJobSource management

Contains create/delete/update/describe but not tests yet.

Still todo:

* Think how to provide a namespace for the sink
* Support for more sinks
* Synchronous mode for create & update
* Add list (or implement "source list")

* chore: Add a mock test for cronjob source

* addd missing license headers

* cosmetic changes

* chore(cronjobsource): Add tests

* fixup

* chore(cronjob source): Improved test coverage

* chore(cronjob source): some review polishing
2019-12-13 01:27:53 -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 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
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
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
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 73dfd21d21 chore: go mod tidy updates (#450)
Generated by
 ```
 go mod tidy -v
 ```

 Fixes #449
2019-10-16 12:57:15 -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
Navid Shaikh 10f981ccaa Ensures kn cross platform build works in presubmit tests (#385)
Fixes #364

 - Ensure kn cross platform build works in pre-submit tests
 - Run ./hack/build.sh -x after running existing pre-submit tests
 - defines a function post_build_tests to invoke cross platform builds
 - post_build_tests will be run by test-infra after build tests are compelete
2019-08-26 10:59:17 -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
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
Roland Huß 55073029b4 fix(build): Minor build optimizations (#265)
* Check that every generated file has been regenerated for CI
* No color when not on a tty which is useful for build logs
* Always do updates when called without args
* Removed -u option and added -c for codegen only (dep update, docs gen, formatting, license check)
2019-07-15 13:21:27 -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
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
Roland Huß a60d273d82 feat(build.sh): Enable goimports + cleanup imports in source files (#186)
* feat(build.sh): Enable goimports for cleanup imports + cleanup imports

Much like 'go fmt' for cleaning up go source, 'goimports' can help
in properly formatting and grouping imports. See https://goinbigdata.com/goimports-vs-gofmt/
for a quick overview.

This commit also cleansup imports on existing files.

* fix(build): Add missing space for output on iterm

* chore(build): Merged gofmt and goimports

And changed order so that formatting and import reordering comes
before compiling and testing
2019-06-28 06:30:08 -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 d25ea5f1e7 Renames service 'get' to 'list' (#179)
* Renames service 'get' to 'list'

 As per title.

* Renames get references to list in e2e tests

* Replaces get to list in docs
2019-06-13 13:56:43 -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
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 ebbd659e69 go.mod and go.sum updates (#46)
* go.mod and go.sum updates

* Set GO111MODULE=on
2019-03-26 12:41:51 -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
Scott Andrews 855ea20d40 Generate go.sum with go 1.11.5 (#19)
When building with go 1.11.5 I see a hash mismatch for knative/serving.
The algorithm for computing the hash has changed in recent go releases.

To create this PR I ran:
- `rm go.sum`
- `go test ./pkg/...`
- `go build ./cmd/kn`
- `go mod tidy`

All developers should update their version of go and clean their module
cache to flush downloaded modules with an invalid hash.
2019-02-04 16:19:49 -08:00
Naomi Seyfer 7cc59481bb
Refactor to allow testing; write first tests. (#10)
* Refactor commands to allow insertion of fakes for testing

* Pin client-go to version that matches signatures other libs use

* Add tests for service list

* actually add test file

* Review comments: Fatal instead of Error/return, Split instead of read to newline
2019-01-29 12:40:22 -08:00
Naomi Seyfer 38932b1d61
Get revision and service listing skeletons in. (#2)
* Get revision and service listing skeletons in.

This adds the kn program, with basic commands for service and revision listing
in.

kn service list
kn revision list

They use the genericclioptions library from kubernetes to support jsonpath,
yaml, and json output. The default is to just list the names of the objects, for
now, until we add in some of the kubectl-based libraries for creating tables in
another commit.

This is deliberately bare-bones; I am looking to get the basic skeletons of how
this repository is laid out down.

No tests yet. Soon.

* Move commands to pkg, so cmd only contains minimalist main.go

* RunE instead of Run. The defaults on Cobra command generation are weird.

* Oops forgot to change types of stuff

* Do not panic on bad config file

* Make commands no longer global

* Make configuration initialization not static in the module, but rather triggered by main.go init
2019-01-22 09:03:58 -08:00