Commit Graph

1592 Commits

Author SHA1 Message Date
Markus Thömmes ea766de6bd
Bump assorted dependencies (#2130) 2021-05-25 07:27:38 -07:00
ying e2947dba20
update the multiple label selector implemention to avoid clobber in filtered factory (#2120) 2021-05-25 00:14:38 -07:00
knative-automation e749d6a2ad
Update community files (#2129)
Signed-off-by: Knative Automation <automation@knative.team>
2021-05-19 23:22:16 -07:00
Markus Thömmes 67897f4ec2
Replace golint with revive (#2126) 2021-05-18 06:10:15 -07:00
Evan Anderson 1442287e59
Add knative-release-leads to OWNERS (#2125) 2021-05-17 23:27:14 -07:00
knative-automation 9b837a73f3
Update actions (#2123)
Signed-off-by: Knative Automation <automation@knative.team>
2021-05-16 22:31:24 -07:00
knative-automation 525c6250d8
Update actions (#2121)
Signed-off-by: Knative Automation <automation@knative.team>
2021-05-14 06:23:49 -07:00
Markus Thömmes 620e8d257e
Allow disable via regex in chaosduck (#2117) 2021-05-11 08:22:47 -07:00
knative-automation 1f5a45bae4
Update knative/community files (#2119)
Signed-off-by: Knative Automation <automation@knative.team>
2021-05-11 02:14:46 -07:00
Grant Rodgers 4564797bf3
Remove grantr from approvers (#2118) 2021-05-10 10:59:00 -07:00
Mona Borham 37b289bab1
Allow URIs to be resolved without reconciler context (#2095) 2021-05-10 05:35:59 -07:00
knative-automation 132b1e7108
Update actions (#2112)
Signed-off-by: Knative Automation <automation@knative.team>
2021-05-07 08:02:10 -07:00
knative-automation 878c850835
upgrade to latest dependencies (#2108)
bumping knative.dev/hack 86f9adc...93ad912:
  > 93ad912 Print java and mvn version (# 65)

Signed-off-by: Knative Automation <automation@knative.team>
2021-04-28 07:13:53 -07:00
knative-automation 5a308fa621
upgrade to latest dependencies (#2105)
bumping knative.dev/hack b6ab329...86f9adc:
  > 86f9adc Fix default codegen pkg dir (# 67)
  > 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)

Signed-off-by: Knative Automation <automation@knative.team>
2021-04-27 19:31:53 -07:00
Ben Moss cfc1eed828
Better support for error wrapping with ReconcilerEvents (#2106)
* Fix codegen to work outside GOPATH

* Fix ReconcilerEvent handling of %w format strings

Using fmt.Errorf(...).Error() means we get %w's translated to %v's for
printing
2021-04-26 11:00:40 -07:00
Markus Thömmes 2a0fc657a7
Make VolatileTime compatible with controller-gen (#2104) 2021-04-26 03:14:39 -07:00
Markus Thömmes 78b8140ed1
Use semantic equality for status update retries (#2103) 2021-04-23 09:26:38 -07:00
Ben Moss 0c5259d650
Allow errors.As to work with reconciler.Events (#2100) 2021-04-22 14:00:38 -07:00
knative-automation 1afd049936
Update knative/community files (#2097)
Signed-off-by: Knative Automation <automation@knative.team>
2021-04-19 22:32:35 -07:00
Stavros Kontopoulos 942c621ec5
add prometheus condition (#2088) 2021-04-19 11:42:01 -07:00
Markus Thömmes 554d133a0d
Bump assorted dependencies (#2096) 2021-04-19 09:00:01 -07:00
Markus Thömmes 2e62ba6a9d
Add possibility to implement a deletion handler in a reconciler. (#2089)
* Add possibility to implement a deletion handler in a reconciler.

ObserveFinalizeKind is not guaranteed to be called for every resource
that gets deleted, even if they do have a finalizer. The leader can race
the observers in removing the finalizer so the observers would not even
see the deletion.

Using the OnDelete handler on the informer is equally racy in that it
can trigger the deletion handler while a potential "normal" reconcile is
still in-flight.

This adds an ObserveDeletedKind handler that can be implemented by
reconcilers. The events still go via the workQueue, so proper order and
deduplication is guaranteed. Observation is guaranteed as well. In most
if not all cases, this handler should replace the ObserveFinalizeKind
handler.

* Move interface to its own file

* Fix license

* Fix comment
2021-04-19 08:38:00 -07:00
Stavros Kontopoulos b80a192625
Improve state reporting in kube checks (#2082)
* improve state reporting in kube check

* use spew

* update

* nits
2021-04-16 09:13:10 -07:00
Markus Thömmes b51994e3b3
Fix a few comments in reconciler-gen (#2090) 2021-04-12 10:37:42 -07:00
Scott Nichols 3a2ae6db70
resolve cluster domain using env CLUSTER_DOMAIN as a fallback (#2092) 2021-04-09 13:38:51 -07:00
knative-automation 4302f33ad4
Update knative/community files (#2091)
Signed-off-by: Knative Automation <automation@knative.team>
2021-04-08 18:38:51 -07:00
Evan Anderson 728bc4ad4e
Update OWNERS_ALIASES to match autogen in community (#2078) 2021-04-08 07:42:51 -07:00
Stavros Kontopoulos 01dccc570b
Add benchmarking for the http tracing handler (#2080)
* add benchmark for tracing handler

* updates

* fixes
2021-04-08 00:39:50 -07:00
Markus Thömmes 9050838f89
Bump assorted dependencies (#2086) 2021-04-07 09:09:49 -07:00
Stavros Kontopoulos b8e331a6ab
Add skonto to metrics reviewers (#2061)
* add to metrics reviewers

* add group

* new line
2021-04-06 10:01:39 -07:00
Markus Thömmes 4a09d5ef1a
Simplify loading of local kubeconfig in sharedmain (#2079) 2021-04-06 09:48:39 -07:00
ying 5ac4a75f34
add optional fs() to edit fake ctx for testing purpose (#2057) 2021-04-05 23:48:38 -07:00
knative-automation 952fdd90db
Update common github actions (#2077)
Signed-off-by: Knative Automation <automation@knative.team>
2021-03-30 23:52:21 -07:00
Sameer Vohra 6317ec6066
Update DEVELOPMENT.md (#2069)
Remove stale ref to dep as repo uses modules.
2021-03-30 23:23:21 -07:00
Kenjiro Nakayama a5005d37e6
Bump k8s min version to v1.18.0 (#2076)
* Bump k8s min version to v1.18.0

Minimum version for k8s was v1.18.x since v0.21.x but it was not updated:
https://github.com/knative/community/blob/main/mechanics/RELEASE-VERSIONING-PRINCIPLES.md#knative-serving-version-table
This patch updates it.

* Fix unit test
2021-03-30 22:48:22 -07:00
Markus Thömmes 808d62257d
Escape path before returning it in a response (#2075) 2021-03-30 09:22:21 -07:00
Markus Thömmes 71e938e5aa
Fix int conversion in statefulset ordinals (#2074) 2021-03-30 09:09:21 -07:00
Jason Hall 3b7934e599
Update webhook/README.md to reflect current packages (#2062)
`NewAdmissionController` was moved to `resourcesemantics/validation` in #848 and this doc wasn't updated.
2021-03-30 00:33:20 -07:00
Sameer Vohra 9d92ea16c0
Update reconciler_controller.go (#2066)
* Update reconciler_controller.go

nit: fix tiny typo

* Ran ./hack/update-codegen.sh

Signed-off-by: Sameer Vohra <vsameer@vmware.com>
2021-03-28 23:52:22 -07:00
knative-automation 78ca0709a4
upgrade to latest dependencies (#2070)
bumping knative.dev/hack 58edbdc...b6ab329:
  > b6ab329 Add a comment to explain why we have a long wait_until_pods_running function (# 60)

Signed-off-by: Knative Automation <automation@knative.team>
2021-03-26 00:41:19 -07:00
Victor Agababov b558677ab0
Use TB interface, rather than T pointer when doing test stuff (#2064)
* Use TB interface, rather than T pointer when doing test stuff

this will permit passing testing.B everywhere too!

/assign @markusthoemmes @dprotaso

* rm-todo
2021-03-23 13:29:17 -07:00
Scott Nichols 9bf9eeba17
rename downstream-test-go to actions-downstream-test (#2065) 2021-03-23 10:54:17 -07:00
knative-automation dfeeb18176
Update common github actions (#2059)
Signed-off-by: Knative Automation <automation@knative.team>
2021-03-17 22:20:54 -07:00
knative-automation de0a8c9458
upgrade to latest dependencies (#2060)
bumping knative.dev/hack 9b73a25...58edbdc:
  > 58edbdc [schema cli] correct arrays (# 58)
  > 97362eb go test flag should go first (# 54)
  > 57abacd Don't redirect STDERR to /dev/null when querying pods (# 55)

Signed-off-by: Knative Automation <automation@knative.team>
2021-03-17 22:00:55 -07:00
Markus Thömmes 6a33a1ab29
Upgrade a few assorted dependencies (#2058) 2021-03-15 09:01:01 -07:00
Markus Thömmes 40488532be
Drop master references to knative repos (#2050) 2021-03-11 09:48:26 -08:00
Markus Thömmes c326b70b83
Add RunAndSyncInformers helper that makes sure informers are synced in tests (#2055)
* Add RunAndSyncInformers helper that makes sure informers are synced in tests

* Review stuff

* Drop Println
2021-03-10 23:53:26 -08:00
knative-automation 9eeb66f2b0
Update common github actions (#2056)
Signed-off-by: Knative Automation <automation@knative.team>
2021-03-10 23:15:26 -08:00
Markus Thömmes bbe0bb3eb1
Implement getter machinery to generically fetch all injected clients (#2054) 2021-03-10 09:35:25 -08:00
Stavros Kontopoulos 85bc723bac
Add benchmark for metrics recording (#2052)
* add bench for metrics recording

* fixes

* fix import
2021-03-10 08:50:25 -08:00