Commit Graph

103078 Commits

Author SHA1 Message Date
Marek Siarkowicz
b9d5d5536e Add log sanitization klog integration tests 2021-06-20 13:52:35 +02:00
Claudiu Belu
f9e4a015e2 tests: Spawn poststart / prestop pods on the same node as the http pod
In the case of multinode clusters, the http server pod and the test cluster can
spawn on different nodes, which can be problematic for  poststart / prestop hooks,
as they are executed by the kubelet itself, and the cross-node lifecycle hook might
fail (according to the Kubernetes network model, it is not mandatory for kubelet to
be able to access pods on a different node).

This commit ensures that the test pod spawns on the same node as the http server pod.
2021-06-19 23:13:39 -07:00
Kubernetes Prow Robot
e55ff835b4
Merge pull request #102922 from SataQiu/update-link
cmd/kubelet: replace KEP link with the documentation one as it is available now
2021-06-19 13:10:50 -07:00
Kubernetes Prow Robot
b469c9cfa4
Merge pull request #102437 from MadhavJivrajani/structured-logging/source-code-location
Add info about source code location in JSON logging
2021-06-19 08:46:50 -07:00
Madhav Jivrajani
cff40a7bcc Add info about source code location in JSON logging
- Add `EncodeCaller` field in `encoderConfig`
- Use `ShortCallerEncoder` as `EncodeCaller
- Add CallerKey to encoderConfig
- Get frame of calling function based on what logging function is called (Info, Error, dPanic)
- Using obtained frame (if obtainable), set the Caller in the zapcore.Entry to indicate source code info
- Update tests to reflect the new format

Fix call frame depth implementation

- Implement zapLogger.WithCallDepth to implement the logr.CallDepthLogger interface
- Add a custom time encoder that use timeNow() stub instead of calling it manually in a zap Entry
- Update json logger unit tests and klog integration tests

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2021-06-19 19:11:40 +05:30
Hidehito Yabuuchi
e371b27e6c Fix frameworkImpl.extenders being not set 2021-06-19 18:07:31 +09:00
Pengfei Ni
875f1ffe2b chore: clean up the tests that have external dependencies 2021-06-19 16:55:46 +08:00
Kubernetes Prow Robot
2ff70c77c9
Merge pull request #103010 from BenTheElder/ansi-386-overflow
update Azure/go-ansiterm to v0.0.0-20210617225240-d185dfc1b5a1
2021-06-18 21:42:49 -07:00
tewei.luo
72a53288a5 Remove gcepd unmanaged zone test.
This test verifies an implementation detail in the in-tree gcepd
plugin. The behavior is not implementated in the gcepd CSI driver
and therefore the test will be obsolete after CSI migration.
2021-06-19 04:13:11 +00:00
Kubernetes Prow Robot
53bc4c13c1
Merge pull request #96115 from ncopa/disk-usage
Get inodes and disk usage via pure go
2021-06-18 20:30:50 -07:00
Kubernetes Prow Robot
5b671d41c2
Merge pull request #102980 from mengjiao-liu/clean-up-master
Clean up the master term in test/integration comments
2021-06-18 19:27:01 -07:00
Kubernetes Prow Robot
2d0821c2a0
Merge pull request #102960 from BenTheElder/nodataracesplease
enable race detector by default in make test
2021-06-18 19:26:49 -07:00
Kubernetes Prow Robot
ba50598ae5
Merge pull request #102386 from JornShen/bump_calico_to_v3.19.1
bump calico to v3.19.1
2021-06-18 18:12:50 -07:00
Kubernetes Prow Robot
6fdb5a8100
Merge pull request #103004 from vinayakankugoyal/bug
remove the path if it exists before writing pki data.
2021-06-18 16:42:54 -07:00
Kubernetes Prow Robot
7e23c5367d
Merge pull request #95768 from danwinship/document-nodeaddresstype
Document the NodeAddressType values
2021-06-18 16:42:42 -07:00
Benjamin Elder
35e9d97f3e update Azure/go-ansiterm to v0.0.0-20210617225240-d185dfc1b5a1
fixes constant overflow on windows/386
2021-06-18 16:11:58 -07:00
Benjamin Elder
8942cba24d log if we're running with -race 2021-06-18 14:49:53 -07:00
Benjamin Elder
68d8bcb64f remove redundant bits from test-dockerized.sh 2021-06-18 14:49:53 -07:00
Benjamin Elder
4ee729ce5f disable race detector in test-cmd.sh 2021-06-18 14:49:53 -07:00
Benjamin Elder
55d2868e9d don't redundantly set KUBE_RACE in test-integration.sh 2021-06-18 14:49:52 -07:00
Benjamin Elder
3c44b86ad6 enable race detector by default in make test 2021-06-18 14:49:52 -07:00
Kubernetes Prow Robot
d283d92121
Merge pull request #103007 from smira/error-wrapping
fix: properly wrap errors when reading response body in the client
2021-06-18 14:48:05 -07:00
Andrey Smirnov
6c0463bd2b fix: properly wrap errors when reading response body in the client
As `%v` doesn't allow error unwrapping, checks like `errors.Is` are not
working properly.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2021-06-18 23:35:31 +03:00
Kubernetes Prow Robot
33c4383985
Merge pull request #102657 from pohly/subpath-test-flake
storage e2e: extend timeouts for subpath restart tests
2021-06-18 12:12:05 -07:00
Mike Spreitzer
3930629e13 Track generalization for width 2021-06-18 15:07:25 -04:00
Mike Spreitzer
676f0450ed Add APF metrics about R(t) 2021-06-18 15:07:22 -04:00
Simon Schneider
e72effbf12 Remove omitempty from PathType
Signed-off-by: Simon Schneider <github@simon-schneider.eu>
2021-06-18 20:15:50 +02:00
Kubernetes Prow Robot
4afb72a863
Merge pull request #100183 from jsafrane/fix-unstage-retry
Mark volume as uncertain after Unmount* fails
2021-06-18 11:04:06 -07:00
Vinayak Goyal
774d228637 remove the path if it exists before writing pki data.
if setfacl is called before chmod g+r at anypoint during the lifetime of
the cluster then the default group does not have read permissions on the
file. so we explicitly grant the default group read permissions. See
https://gist.github.com/mmdriley/85ca34f711acbec4b1b94902add488e5 for a
repro.
2021-06-18 11:03:37 -07:00
Kubernetes Prow Robot
ab7d8b5b5b
Merge pull request #102871 from rainrambler/patch-1
kubeadm: use defer to unlock mutex in certs.go
2021-06-18 09:52:30 -07:00
Kubernetes Prow Robot
e9c6ec639c
Merge pull request #102783 from mcbenjemaa/update-dep-gnostic
Update gnostic to the latest version
2021-06-18 09:52:18 -07:00
Kubernetes Prow Robot
d89c11a0d4
Merge pull request #102629 from tiloso/staticcheck-cluster-apimachinery-apiserver
Fix staticcheck in cluster & k8s.io/{apimachinery,apiserver}
2021-06-18 09:52:06 -07:00
Kubernetes Prow Robot
eda1298c47
Merge pull request #102991 from soltysh/column_printer
Extract columnPrinter interface for printing the values behind additional columns
2021-06-18 07:20:19 -07:00
Kubernetes Prow Robot
f899bbe445
Merge pull request #102925 from alculquicondor/fix-node-resources
Fix Node Resources plugins score when there are pods with no requests
2021-06-18 07:20:06 -07:00
Kubernetes Prow Robot
48b7492f92
Merge pull request #102946 from ahmed-mez/patch-1
Fix ServerGroupsAndResources docs typo
2021-06-18 04:36:04 -07:00
Maciej Szulik
5d15ed02b5
Extract columnPrinter interface for printing the values behind additional columns 2021-06-18 13:30:09 +02:00
Mohamed chiheb Ben jemaa
1c2ba3162d update internal modules 2021-06-18 10:42:13 +01:00
Mengjiao Liu
e977740ae6 Rename master to apiserver in test/integration 2021-06-18 17:40:46 +08:00
Kubernetes Prow Robot
f62b9dbd92
Merge pull request #102934 from lavalamp/verblog
Make logged verbs match metric-reported verbs
2021-06-18 02:18:17 -07:00
Kubernetes Prow Robot
0c58969955
Merge pull request #102848 from tkashem/apf-width-seat-cap
apf: take seats into account when dispatching request
2021-06-18 02:18:05 -07:00
Mohamed chiheb Ben jemaa
9571b1f884 update vendor 2021-06-18 09:46:44 +01:00
Mengjiao Liu
4eab19ae7d Clean up the master term in test/integration comments 2021-06-18 16:31:05 +08:00
Kubernetes Prow Robot
9d3e4eb862
Merge pull request #102415 from hyakuhei/AWS-SDK-GO-v1.38.49
Update aws-sdk-go to 1.38.49
2021-06-17 20:28:04 -07:00
Kubernetes Prow Robot
3be88d5d0f
Merge pull request #102892 from gnufied/no-error-on-canonical-path
Do not throw error when we can't get canonical path
2021-06-17 17:16:05 -07:00
Daniel Smith
54fde5d119 Make logged verbs match metric-reported verbs 2021-06-17 16:42:23 -07:00
Kubernetes Prow Robot
dc54636c6d
Merge pull request #102965 from jsturtevant/hostprocesstest-update
Use the hostprocess feature flag and assign a user
2021-06-17 15:50:05 -07:00
James Sturtevant
762eeb0988 Use the hostprocess feature flag and assign a user 2021-06-17 14:42:24 -07:00
Kubernetes Prow Robot
f1d9db4381
Merge pull request #102940 from gy95/sche
when new manager failed should return err
2021-06-17 14:08:17 -07:00
Kubernetes Prow Robot
75151fa524
Merge pull request #102933 from andrewsykim/net-pol-legacy
test/e2e/network: mark tests in test/e2e/network/netpol/network_legacy.go with NetworkPolicyLegacy
2021-06-17 14:08:05 -07:00
Kubernetes Prow Robot
3dbe33ae31
Merge pull request #102935 from nilo19/bug/cherry-pick-661
fix: cleanup outdated routes
2021-06-17 13:00:17 -07:00