* Update Eventing Sources API to v1
* Update vendor dir
* Fix imports formatting
* Move PingSource client to v1beta2
* Fix sink resolve
* Fix serving version string
* Use Eventing version 0.22.1 in e2e tests
bumping knative.dev/hack b6ab329...88c69cd:
> 88c69cd Add debug info for release.sh to investigate https://knative.slack.com/archives/CA1DTGZ2N/p1619160369065000 (# 66)
> b5f6e25 Update OWNERS_ALIASES to match autogen in community (# 62)
bumping knative.dev/eventing a0a3302...83a1713:
> 83a1713 Drop --strict flag on ko (# 5303)
bumping knative.dev/serving 3537984...792c8d2:
> 792c8d2 upgrade to latest dependencies (# 11260)
bumping knative.dev/networking 2b84569...7a7ad51:
> 7a7ad51 upgrade to latest dependencies (# 401)
> 2ee665e upgrade to latest dependencies (# 398)
bumping knative.dev/pkg 0c5259d...2a0fc65:
> 2a0fc65 Make VolatileTime compatible with controller-gen (# 2104)
> 78b8140 Use semantic equality for status update retries (# 2103)
Signed-off-by: Knative Automation <automation@knative.team>
bumping knative.dev/networking 57bee66...2b84569:
> 2b84569 upgrade to latest dependencies (# 397)
bumping knative.dev/pkg 1afd049...0c5259d:
> 0c5259d Allow errors.As to work with reconciler.Events (# 2100)
bumping knative.dev/serving 3214502...3537984:
> 3537984 Don't fall back to cluster IP when error is not mesh-related (# 11208)
> e97bc76 upgrade to latest dependencies (# 11252)
> d31ab23 Lower the drain sleep in queue-proxy to previous value (# 11249)
bumping knative.dev/eventing 7775e37...a0a3302:
> a0a3302 upgrade to latest dependencies (# 5297)
Signed-off-by: Knative Automation <automation@knative.team>
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>
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>
* 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>
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>
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>
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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>
* 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>
* 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
* 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
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.
* 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>
* 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