Commit Graph

1482 Commits

Author SHA1 Message Date
Matt Moore e2d6b4f845
Try splitting configmap package (#1851) 2020-12-22 13:58:04 -08:00
Evan Anderson e41409af6c
Refactor and fix metrics export tests. (#1957)
* Copy resource_view_test to e2e_test

* Restore metrics/resource_view_test.go

* Refactor metrics tests, fix e2e_test

* Address yanweiguo feedback

* Cleanup per vagababov

* Switch to zap.Error but avoid the bug the code previously had.
2020-12-18 10:57:03 -08:00
Markus Thömmes 7226f4f447
Unify usage of YAML libraries (#1971)
* Replace ghodss/yaml with sigs.k8s.io/yaml

* Replace unnecessary usage of gopkg.in/yaml too
2020-12-17 07:24:02 -08:00
knative-automation b0c121fb66
Update common github actions (#1970)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-16 17:47:02 -08:00
Markus Thömmes 261c9b4624
Remove unnecessary intermediate loggers (#1969)
* Remove unnecessary intermediate loggers

* Make linter happy

* Collapse logging variable into if contexts
2020-12-16 08:27:58 -08:00
knative-automation 95b8793bd6
Format markdown (#1967)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-15 17:45:58 -08:00
Igor Belianski ef8048c0ba
Enable multi namespace log collection in e2e test (#1959)
* enable multi namespace log collection in e2e test

* Update test/logstream/README.md

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/README.md

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/interface.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* var grouping of global variables

* fix broken build

* Update test/logstream/README.md

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/v2/stream_test.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/v2/stream_test.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/v2/stream.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* minor misc style fixes

* closing brackets spacing

* Update test/logstream/v2/stream.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

Co-authored-by: Victor Agababov <vagababov@gmail.com>
2020-12-15 12:24:58 -08:00
Markus Thömmes a1d2289bb5
Remove useless logger creation (#1966) 2020-12-15 10:22:58 -08:00
Markus Thömmes ba2137c16f
Fix excessive allocation in the resource metrics (#1964)
* Fix excessive allocation in the resource metrics

* Optimize further

* Fix lint

* Prettify

* Add comment to lambda

* Even prettier
2020-12-15 09:37:58 -08:00
Antoine Cotten af53027cbd
Format copyright headers to match boilerplate (#1962) 2020-12-15 02:12:43 -08:00
Francesco Guardiani c35cc6b200
Update wrong year for pkg cut (#1955)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-12-15 01:43:44 -08:00
knative-automation 0908e494c4
upgrade to latest dependencies (#1961)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-14 17:52:43 -08:00
Markus Thömmes 909c152426
Update dependencies to their latest versions (#1958)
* Update dependencies to their latest versions

* update-deps.sh
2020-12-14 06:46:44 -08:00
Stavros Kontopoulos 80c1131539
Add host config option to the prometheus exporter (#1882) (#1945)
* add host to the prometheus exporter

* typo

* fix imports

* updates

* fixes

* more fixes

* typos

* respect the default

* fix comment

* use default

* nits
2020-12-10 08:56:42 -08:00
knative-automation 0c53297607
Update common github actions (#1954)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-09 17:41:42 -08:00
Matt Moore 9b9407a76d
Expose the statefulset constructor (#1953) 2020-12-09 09:29:41 -08:00
Markus Thömmes 5f11dd0634
Add smart handling of selectors in webhooks (#1949)
* Add smart handling of selectors in webhooks

This is an alternative fix for #1590. Instead of arbitrarily adding a label from a different project to avoid the reconcilers racing, this adds "smart" handling of the selectors in that labels not inside the knative.dev domain are plainly ignored and our own selectors are added additively.

* Fix formatting

* Fix missing variable usage
2020-12-08 23:38:41 -08:00
Jean-Rémy Bancel b1ac587fdd
Fix missing 'to'. (#1952) 2020-12-08 17:12:41 -08:00
Matt Moore 120f38c15b
Make the profiling port configurable via envvar. (#1950)
* Make the profiling port configurable via envvar.

With this folks can override the default 8008 with PROFILING_PORT.

Fixes: https://github.com/knative/pkg/issues/1948

* Revert breaking int -> str change
2020-12-08 09:45:41 -08:00
Victor Agababov 7e918163fc
Fix some nits around logging (#1946) 2020-12-07 14:50:40 -08:00
Markus Thömmes 45d3810627
Default to the lowest pre-release version to be the minimum (#1944) 2020-12-07 06:50:10 -08:00
Victor Agababov beabf446d6
Remove the pkg/network/prober since it's moved to networking (#1941)
and all the dependencies are now updated
2020-12-04 17:32:09 -08:00
Victor Agababov c9bac6be76
Log if the deserialized line is semi-normal. (#1939)
Right now they panic and we lose all the context.
2020-12-04 09:55:09 -08:00
Victor Agababov b89ac2a632
Fix the logstream since it's paniciiiiing (#1938)
The thing instroduced here: https://github.com/knative/pkg/pull/1773
2020-12-03 17:32:09 -08:00
Ian Milligan a536174bdf
Use zapdriver config as base zap config (#1773)
* Use zapdriver config as base zap config

Changes the encoding of the timestamp, severity, and message fields to
be parseable by Stackdriver.

* Wrap zap core with zapdriver core

Automatically adds labels and source location to log messages.
2020-12-03 11:31:09 -08:00
knative-automation 4bb54df521
Update common github actions (#1936)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-03 06:52:09 -08:00
Victor Agababov e45bbefd1d
Remove the unused file (#1935)
Everyone is actually using the aliased option
2020-12-02 16:53:09 -08:00
knative-automation 81712ed625
upgrade to latest dependencies (#1933)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-01 17:40:37 -08:00
Zhongduo Lin (Jimmy) e5346d90e9
feat/perf-test: continue test when fail to get commit id (#1930)
* feat/perf-test: continue test when fail to get commit id

changeset.Get does not work well when the test image is in the
vendor directory because there is no kodata setup. After this
commit, failure to get the commit id will result in a
log entry instead of failing the whole test.

* Update test/mako/sidecar.go

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
2020-11-30 11:24:36 -08:00
Glyn Normington 0d896b5c87
Apply multiple bindings to the same subject (#1925)
* Factor index out of Reconciler

Applying multiple Bindings to the same subject makes the reconciler more
complex, so split out the index handling.

* unexport contents of index.go

* Apply multiple bindings to the same subject

The affected files are actually copyright 2019-2020,
but boilerplate-check fails if this is used. See:
https://github.com/mattmoor/boilerplate-check/issues/22

Fixes https://github.com/knative/pkg/issues/1786
2020-11-26 17:33:35 -08:00
Dave Protasowski f164e757b1
fixes TestInformedWatcher flake (#1929)
* fixes TestInformedWatcher flake

* use wait pkg
2020-11-26 10:40:35 -08:00
Jon Donovan 9bf616d2f4
Fail louder when bad context given to injection (#1768)
This uses the presence of the config key to determine whether
this is an injection context, and if it is not, the panic
message includes a notice about injection context behavior.
2020-11-25 01:50:35 -08:00
rusde 3154117dcf
Add tags to knative provided reconcile metrics (#1916)
* Add  tags to knative provided reconcile metrics

* Remove resource tag to reduce metric cardinality

* Removing unknown tags

* Update controller/testing/fake_stats_reporter.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

Co-authored-by: Victor Agababov <vagababov@gmail.com>
2020-11-24 12:42:35 -08:00
Victor Agababov c5296cd61e
Log body as well, since it's useful, it seems (#1926) 2020-11-24 11:42:35 -08:00
Dave Protasowski e1306afead
move some spoof helpers to the spoof package (#1827)
This helps avoid pulling in the pkg/test globals
2020-11-24 10:23:35 -08:00
Victor Agababov 49e55c9eb8
Provide the information about why did the connection fail (#1924)
All the juicy details are in that http response,
the error is basically meaningless
2020-11-23 18:31:35 -08:00
Lionel Villard fea72c1c8e
Fix logging message (#1923) 2020-11-23 09:29:58 -08:00
knative-automation 92bc25a0a5
upgrade to latest dependencies (#1922)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-22 17:40:53 -08:00
knative-automation 6a0e731e25
upgrade to latest dependencies (#1920)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-20 10:31:52 -08:00
Arghya Sadhu 45918d07f2
add webhookname from env (#1918)
Signed-off-by: Arghya Sadhu <arghya88@gmail.com>
2020-11-20 07:01:52 -08:00
knative-automation e5e30edc36
upgrade to latest dependencies (#1919)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-19 09:01:52 -08:00
knative-automation 260026d547
upgrade to latest dependencies (#1917)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-18 18:15:51 -08:00
Victor Agababov 0fccc54273
Use the same dial with backoff for H2C as we do for HTTP/1.1 (#1915)
Also remove the constant that is not used anywhere.
2020-11-17 14:14:52 -08:00
Dave Protasowski 14386bb65d
bump k8s deps to v0.18.12 (#1914) 2020-11-17 12:09:52 -08:00
Chris Suszynski ac327c4338
Skip at BackgroundOperation's verify stage doesn't hang tests (#1912) 2020-11-17 10:07:51 -08:00
runzexia ab1a398f66
drainer support kprobe (#1906)
* drainer support kprobe

Signed-off-by: runzexia <root@junwuhui.cn>

* servekprobe

Signed-off-by: runzexia <root@junwuhui.cn>

* use const in test & fix errror log

Signed-off-by: runzexia <root@junwuhui.cn>
2020-11-16 18:02:52 -08:00
Victor Agababov 188df22c59
Some small changes for the URL test (#1910)
I was looking at the #923 (it'll be quite some effort to get the
informer there, or create dynamic one for k8s services),
but nonetheless clean the test up.

- Rename the getters to exclude word get (as go style suggests).
- The errors test contains only errors, so stream line it
- Ensure errors are also idempotent, which wasn't.
2020-11-16 13:44:03 -08:00
knative-automation 615f17a0eb
upgrade to latest dependencies (#1905)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-13 10:29:00 -08:00
Victor Agababov 93fedf1413
Various test improvements in formatting (#1904) 2020-11-12 12:10:59 -08:00
Scott Nichols 8a7139d759
updating release flow for release 0.19 (#1872)
* updating release flow for release 0.19

* match sytle

* give context to why we are staging the non-released artifacts

* some of the feedback, still working

* note the release notes workflow

* document the release notes script can have default shas

* update to use the github ui to make release branches

* control the image height

* correct syntax

* smaller images

* order images

* come on markdown

* show steps for manual update

* document how to manually run the prow auto release

* adding images
2020-11-12 07:44:00 -08:00