Commit Graph

1676 Commits

Author SHA1 Message Date
Matt Moore 263ce4067b
Add chains to the downstream test (#2237) 2021-08-26 17:55:37 -07:00
Kenjiro Nakayama ddd97e9fb8
Remove obsolete verbose log message for pre-release (#2235)
The error was obsoleted by https://github.com/knative/pkg/pull/1944.

As we can see this test case
a70bb26767/version/version_test.go (L68-L71)

pre-release version is __NOT__ smaller than the corresponding release
version anymore.
2021-08-26 08:40:32 -07:00
Lionel Villard a7f5b39b89
Addressable resolver now accepts custom resolvers (#2195)
* addressable resolver now accepts custom resolvers

* apply comments from review

* add comment about ignoring error
2021-08-26 07:21:32 -07:00
knative-automation 2b66fdd241
Update community files (#2239)
Signed-off-by: Knative Automation <automation@knative.team>
2021-08-26 06:50:33 -07:00
knative-automation 51f5642feb
Update actions (#2238)
Signed-off-by: Knative Automation <automation@knative.team>
2021-08-25 23:03:31 -07:00
Matt Moore 46a3611ec2
Add Tekton downstream test (#2233)
* Add Tekton downstream test

* Use matrix.org per ImJasonH

* Bump to new downstream action version to test

* Fix year on copyright
2021-08-25 13:18:31 -07:00
Yanwei Guo a70bb26767
Add length limit for the generated names used in tests (#2217)
* add limit

* typo

* remove childname
2021-08-25 00:00:25 -07:00
Kenjiro Nakayama a4ed097995
Update version check comment (#2234) 2021-08-24 23:29:25 -07:00
jwcesign a94f5f07b3
Trim the space in configmap/registriesSkippingTagResolving's url. (#2231)
* Trim space of confguration registriesSkippingTagResolving's url, delete
head's and tail's space

* Add test case for trim spaces
2021-08-24 05:08:23 -07:00
Markus Thömmes 12d915ede2
Update prometheus dep to 0.30.0 (#2227) 2021-08-23 06:36:35 -07:00
Matt Moore 3bed4dcf17
Make the configmap update logging Debugf (#2226) 2021-08-22 13:30:34 -07:00
Matt Moore 44fffc8b6e
This implements the EventExpansion needed to emit K8s events. (#2224)
With this change, I was able to pass some downstream e2e tests that check for event emission with this path enabled, which previously failed.

The relevant hand-rolled bits in Kubernetes client-go is here: 35bf219cc6/kubernetes/typed/core/v1/event_expansion.go (L49)

I opted to avoid copy/pasting the generated code, and instead used a trick that let me call into the generated code.

Going through this exercise also (likely) uncovered a Kubernetes bug: https://github.com/kubernetes/kubernetes/issues/104495
2021-08-21 16:23:34 -07:00
Matt Moore 6ef763ddee
Remove long deprecated NewImplWithStats (#2223) 2021-08-21 14:43:34 -07:00
Matt Moore 9c7fd8e14f
Introduce `NewContext`, deprecate `NewImplFull`. (#2222)
* Introduce `NewContext`, deprecate `NewImplFull`.

Our generated `NewImpl` methods have long taken `context.Context`, but despite many iterations the forms we expose from our `controller` package never have.  This change contains several elements:
1. Expose a new `NewContext` method that takes `context.Context` in addition to the current `NewImplFull` signature.
2. Call `NewContext` instead of the deprecated `NewImpl` from our generated controller code.
3. Call `NewContext` from all our webhook reconcilers.

* Add a Tracker to controller.Impl to cut down on downstream boilerplate.
2021-08-21 14:00:34 -07:00
Matt Moore 766b8f7bd2
Have the addressable resolver take a tracker. (#2220)
I noticed in a few places downstream that reconcilers were creating both trackers and Addressable resolvers, which seems superfluous.  As part of examining the way we use the tracker, I'm experimenting with changing this to just take a tracker.
2021-08-21 13:50:34 -07:00
Matt Moore 9b9bc2a226
Run codegen (#2221) 2021-08-20 16:55:05 -07:00
Markus Thömmes 52d2a0db1e
Deprecate ReadOnlyFinalizer interface over OnDeletionInterface (#2212)
* Deprecate ReadOnlyFinalizer interface over OnDeletionInterface

* Fix deprecated
2021-08-20 09:41:05 -07:00
knative-automation 44fc074919
Update community files (#2219)
Signed-off-by: Knative Automation <automation@knative.team>
2021-08-19 23:32:07 -07:00
knative-automation bda81c0291
upgrade to latest dependencies (#2218)
bumping knative.dev/hack e28525d...815cd31:
  > 815cd31 Stop performing pre-releases (# 77)

Signed-off-by: Knative Automation <automation@knative.team>
2021-08-18 22:44:04 -07:00
Matt Moore 7b5ecbc0e4
Sketch out an alternate way of injecting clients/informers (#2210)
* This commit contains the actual changes to support dynamic client injection.

* Incorporate n3wscott review nits

* This includes the code-generation for the dynamic client-based injection.

This also includes a number of manually created files of the form `*_expansion.go`, which are needed to satisfy some of the Kubernetes manual type "expansions".  At present, these are all simply `panic("NYI")`, but may become more than that in the future.
2021-08-18 06:52:08 -07:00
Markus Thömmes 8c88fa2764
Revert "Remove the unused file (#1935)" (#2213)
* Revert "Remove the unused file (#1935)"

This reverts commit e45bbefd1d.

* Add deprecation notice

* Ignore deprecation error of the alias
2021-08-18 03:57:08 -07:00
Julian Friedman 50410e0b83
Use consistent case for "Deprecated" comments (#2216)
* Use consistent case for "Deprecated" comments

Not the most important thing ever, but the canonical string to use for
Deprecated warnings is case sensitive, and also it's nice to be
consistent.

* Add nolint comment
2021-08-17 09:15:16 -07:00
Markus Thömmes 35bcd16656
Drop redundant pointers and decoders (#2211) 2021-08-17 02:04:16 -07:00
Matt Moore bf176d5654
Sink two codegen passes below loop. (#2209)
I noticed doing some tinkering that these were running on every iteration, but the inputs don't change.  This sinks the calls to below the loop, and reduces things to a single call for each.
2021-08-16 15:37:16 -07:00
knative-automation 2c8a7b6bd7
Update community files (#2208)
Signed-off-by: Knative Automation <automation@knative.team>
2021-08-12 07:32:36 -07:00
knative-automation 23b0147246
Update actions (#2206)
Signed-off-by: Knative Automation <automation@knative.team>
2021-08-05 00:38:52 -07:00
Markus Thömmes 21eb4c167c
Bump assorted dependencies to their latest versions (#2205) 2021-08-03 09:00:15 -07:00
Matt Moore 552bbc1061
Support the webhook serving over non-TLS. (#2204)
This reworks the way we setup the TLS Config for the webhook, so that when the `opts.SecretName` is omitted we serve over non-TLS.
2021-08-02 20:22:47 -07:00
Shashankft9 64ab22bbaa
k8s-service-trailing-slash-fix (#2178) 2021-07-31 00:28:40 -07:00
Matt Moore c367a9d696
Drop Client as it is only used in tests (#2203) 2021-07-30 18:05:05 -07:00
Matt Moore bb4aaf09c4
Ignore special errors in codegen for events (#2202) 2021-07-30 10:21:32 -07:00
Matt Moore 3826bb2436
Add a new mechanism for requeuing a key. (#2201)
This is modelled after some of the semantics available in controller-runtime's `Result` type, which allows reconcilers to indicate a desire to reprocess a key either immediately or after a delay.

I worked around our lack of this when I reworked Tekton's timeout handling logic by exposing a "snooze" function to the Reconciler that wrapped `EnqueueAfter`, but this feels like a cleaner API for folks to use in general, and is consistent with our `NewPermanentError` and `NewSkipKey` functions in terms of influencing the queuing behaviors in our reconcilers via wrapped errors.

You can see some discussion of this here: https://knative.slack.com/archives/CA4DNJ9A4/p1627524921161100
2021-07-30 08:31:33 -07:00
knative-automation 889b5670e1
Update community files (#2199)
Signed-off-by: Knative Automation <automation@knative.team>
2021-07-25 19:10:15 -07:00
knative-automation 842df75f5c
Update community files (#2196)
Signed-off-by: Knative Automation <automation@knative.team>
2021-07-22 15:38:44 -07:00
Ben Moss fa8095f04e
Use default Kubeconfig loading rules (#2197)
This mimics the behavior of tools like kubectl, should work for
both in-cluster and out-of-cluster usages
2021-07-22 11:42:03 -07:00
Dave Protasowski d9b7180af6
minor bug when passing spoof options (#2194)
The array needed to be spread using the '...' operator
2021-07-15 10:56:32 -07:00
Dave Protasowski 8931f82991
remove source stats reporter (#2193)
it's been moved to knative.dev/eventing/pkg/metrics/source
2021-07-15 10:15:31 -07:00
Dave Protasowski 591cb897dd
drop unused workflow (#2192) 2021-07-15 07:25:32 -07:00
salaboy dbcf4cf637
removing default for KUBECONFIG to enable in cluster tests (#2191) 2021-07-15 06:35:32 -07:00
Dave Protasowski 7764284cfa
include OpenCensus in the list of metric backend (#2189) 2021-07-14 13:08:31 -07:00
Dave Protasowski aff7376aba
drop stackdriver metrics and tracing exporters (#2183)
* drop stack driver as a tracing backend

* drop stackdriver as a metrics backend

* update deps - dropping stackdriver

* fix linting issues

* drop further references to stack driver

* drop serving & eventing metric key constants
these have been moved to their respective repos
see: https://github.com/knative/pkg/issues/608

* move source metrickeys to pkg/source

We're going to move the StatsReporter downstream eventually

related:
https://github.com/knative/eventing/pull/5587
https://github.com/knative/eventing/pull/5586

* fix linter
2021-07-14 11:45:31 -07:00
Ben Moss 7d1b0f19ef
Add ability to filter objects on injection controller promotion (#2180)
Currently we enqueue every object with no way to filter, which causes
problems for eventing's source controller which reconciles duck CRDs.
2021-07-13 10:55:50 -07:00
Fabian Leonardo Lopez Bernal 459d3176a7
Add CheckEndpointState method to SpoofingClient (#2166)
* add CheckEndpointState method to SpoofingClient

Signed-off-by: Fabian Lopez <lfabian@vmware.com>
Co-authored-by: Sameer Vohra <vsameer@vmware.com>

* add boolean parameter to control polling behavoir on "EndpointState" checks

Signed-off-by: Fabian Lopez <lfabian@vmware.com>

* add unit test for CheckEndpointState method

Signed-off-by: Fabian Lopez <lfabian@vmware.com>

* move CheckEndpointState test to the spoof package

* add tests for WaitForEndpointState method

Signed-off-by: Fabian Lopez <lfabian@vmware.com>

* simplify Wait/Check unit tests and implementation

Signed-off-by: Fabian Lopez <lfabian@vmware.com>

Co-authored-by: Sameer Vohra <vsameer@vmware.com>
2021-07-13 07:32:51 -07:00
Markus Thömmes e8973c6acb
Bump a few assorted dependencies (#2186) 2021-07-12 08:08:22 -07:00
knative-automation 43773305df
Update community files (#2185)
Signed-off-by: Knative Automation <automation@knative.team>
2021-07-12 06:46:23 -07:00
knative-automation 4a3e56dc13
Update actions (#2182)
Signed-off-by: Knative Automation <automation@knative.team>
2021-07-08 07:50:23 -07:00
Markus Thömmes fe90576475
Retry 'no route to host' errors by default (#2181)
* Retry 'no route to host' errors by default

* Fix typo
2021-07-06 10:46:20 -07:00
knative-automation 30f9568e89
Update actions (#2177)
Signed-off-by: Knative Automation <automation@knative.team>
2021-06-30 19:52:03 -07:00
Ellis Tarn 51cfaabbcd
Added inverse functions for the ptr package (#2172)
* Added inverse functions for the ptr package

* PR Comments

* Linter fix
2021-06-28 15:56:12 -07:00
knative-automation cf1994e9cc
Update community files (#2171)
Signed-off-by: Knative Automation <automation@knative.team>
2021-06-27 23:38:47 -07:00