Commit Graph

106409 Commits

Author SHA1 Message Date
Arda Güçlü
43d8b3459b Add manually invalidate cache documentation into delete
When CRDs are deleted, discovery local cache is not invalidated.
This brings about `resource not found` error when new CRD with same name is created
with different fields(ie. changing scope from cluster-wide to namespaced).
Because this already deleted CRD still stays in serverresources.json and kubectl tries to use it.

This local cached files have 10 minutes TTL. After deletion, if user waits 10 minutes,
files will be expired and deleted and there will be no errors. However, 10 minutes is a long time
and cache needs to be invalidated after deletion occurs.

This PR adds a document into delete command by noting that there might be a need to invalidate discovery
cache when CRD is deleted. In addition to that this PR adds a test to catch this behavior.
2022-01-26 09:01:46 +03:00
hxie
56382ddf16 Increase number of workers to 3 for Windows
Number of workers was set to be 1 because prallel probing on Windows is
flakier, network policy tests may get stuck, this symptom disappears on
the newest kubernetes, network poicy tests run very well with 3 workers.
2022-01-25 21:32:21 -08:00
Kubernetes Prow Robot
cd117abf19
Merge pull request #107763 from smarterclayton/wait_for_kuberoot_ca
e2e: Wait for kube-root-ca.crt to be created
2022-01-25 19:20:45 -08:00
Kubernetes Prow Robot
dee90598d2
Merge pull request #107525 from hxietkg/hxietkg/support-udp-for-windows
Support UDP test for netwpol on windows
2022-01-25 19:20:38 -08:00
Kubernetes Prow Robot
38e9a29620
Merge pull request #106932 from SergeyKanzhelev/removeDynamicKubeletConfig
Remove dynamic kubelet config
2022-01-25 19:20:25 -08:00
cyclinder
50045b96bc kube-proxy ipvs: fix to prevent concurrent map read and map write
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
2022-01-26 11:12:56 +08:00
Kubernetes Prow Robot
6a1de6b686
Merge pull request #107765 from Jefftree/ssa-integration-enable
Populate OpenAPI in all integration tests
2022-01-25 18:18:37 -08:00
Kubernetes Prow Robot
482f905d57
Merge pull request #107745 from pacoxu/cleanup-fail-earlier
fail if the runtime/kubelet process is not fetched
2022-01-25 18:18:26 -08:00
brianpursley
e9211d3279 Fix wrong status code in unit test error messages.
Replace deprecated use of diff.ObjectReflectDiff() with cmp.Diff().
2022-01-25 20:31:47 -05:00
RupengLiu
446052f7a3 Revert changes to the flb-exporter hash value 2022-01-25 16:35:58 -08:00
Mike Miranda
99e27b0f37 Extend deadline for /stats/summary test 2022-01-26 00:07:00 +00:00
Kubernetes Release Robot
4ade9f2547 CHANGELOG: Update directory for v1.23.3 release 2022-01-26 00:04:56 +00:00
Kubernetes Prow Robot
6e25590494
Merge pull request #107066 from acumino/cleanup/codeduplication
remove code duplication
2022-01-25 14:35:42 -08:00
Jefftree
eb8f6fe0f9 Populate OpenAPI in all integration tests 2022-01-25 14:16:31 -08:00
Kubernetes Prow Robot
1f05c78350
Merge pull request #107700 from sanposhiho/fix-error-log-namespace-not-found
Create namespace for Pod not to occur error log of namespace not-found
2022-01-25 13:34:05 -08:00
Kubernetes Prow Robot
cbaab07b68
Merge pull request #107695 from rphillips/fixes/fix_podStatus_not_containing_full_name
kubelet: fix static pods not restarting in certain cases
2022-01-25 13:33:54 -08:00
Kubernetes Prow Robot
00da9db69f
Merge pull request #107400 from aramperes/cleanup/common-label-selector
Cleanup kubectl label selectors with 'cmdutil.AddLabelSelectorFlagVar'
2022-01-25 13:33:41 -08:00
Kubernetes Prow Robot
fcd96faa79
Merge pull request #107758 from aojea/flake_socks5
disable socks5 flake test
2022-01-25 12:09:54 -08:00
Kubernetes Prow Robot
42ab2f5d03
Merge pull request #107397 from ncapps/feature-label-selector
Improve kubectl apply label selector message
2022-01-25 12:09:41 -08:00
Clayton Coleman
b4aa9a189e
e2e: Wait only for the service account
Now that projected service account tokens do not require the secret
to be created, exclude the wait condition on the token and simply
wait for the service account.
2022-01-25 14:23:31 -05:00
Clayton Coleman
1608fc5e88
e2e: Wait for kube-root-ca.crt to be created
The change from service account secrets to projected tokens and
the new dependency on kube-root-ca.crt to start pods with those
projected tokens means that e2e tests can start before
kube-root-ca.crt is created in a namespace. Wait for the default
service account AND the kube-root-ca.crt configmap in normal
e2e tests.
2022-01-25 14:23:31 -05:00
Ryan Phillips
25f95f2bde kubelet: fix podstatus not containing pod full name 2022-01-25 13:21:04 -06:00
Bronson Mirafuentes
297432f0e9 wrap error from RunCordonOrUncordon 2022-01-25 10:34:47 -08:00
Kubernetes Prow Robot
804630ed24
Merge pull request #107636 from kerthcet/refactor/initRegistryAndConfig
refactor initRegistryAndConfig function
2022-01-25 10:20:30 -08:00
kerthcet
fdaea59465 refactor initRegistryAndConfig function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-26 01:16:13 +08:00
Antonio Ojea
b6a741b888 disable socks5 flake test 2022-01-25 17:39:34 +01:00
sanposhiho
d8840405e2 Create namespace for Pod not to occur error log of namespace not-found 2022-01-26 00:39:12 +09:00
srikiz
b4dd9cb388 incorporate review comments 2022-01-25 20:11:12 +05:30
Denis Moiseev
cd1d530a1a Add zone/region labels sync function
In the case of `vsphere-legacy-cloud-provider` client
has insufficient permissions to update Node after its addition,
this handler will attempt to populate Nodes topology labels later.
2022-01-25 14:37:58 +01:00
srikiz
430b8e6981 fix ingress path when validating webhook for ingress is in place while tests are running 2022-01-25 18:56:47 +05:30
Kubernetes Prow Robot
e5ae3f8d67
Merge pull request #107693 from nckturner/nick-owners
Add myself to legacy-cloud-provider OWNERS
2022-01-25 01:46:30 -08:00
Paco Xu
e71353c942 fail if the runtime/kubelet process is not fetched 2022-01-25 17:43:51 +08:00
Kubernetes Prow Robot
1c526a536f
Merge pull request #107669 from Monokaix/use-filepath.WalkDir-in-doCleanSubPaths
replace filepath.Walk with filepath.WalkDir in doCleanSubPaths
2022-01-24 20:06:30 -08:00
Monokaix
96702a89b2 replace filepath.Walk with filepath.WalkDir in doCleanSubPaths 2022-01-25 09:56:32 +08:00
Kubernetes Prow Robot
df21ff86eb
Merge pull request #104620 from vinayakankugoyal/cri
Update CRI-API Capabilities to include a field that allows us to set …
2022-01-24 17:34:49 -08:00
Kubernetes Prow Robot
c72ed006fa
Merge pull request #107738 from dims/pull-kubernetes-update-ci-job-needs-etcd-installed
pull-kubernetes-update ci job needs etcd installed
2022-01-24 15:41:15 -08:00
Nick Turner
18be20bdf3 Add myself to legacy-cloud-provider OWNERS 2022-01-24 15:33:54 -08:00
Kubernetes Prow Robot
f4046f9e6d
Merge pull request #107507 from alexzielenski/client-preprocess-handler
Add configuration point to SharedInformer to transform objects before storing
2022-01-24 14:31:27 -08:00
Kubernetes Prow Robot
321b411784
Merge pull request #107088 from joejulian/dry-run-metadata
strip dry-run metadata unwanted fields
2022-01-24 14:31:15 -08:00
Davanum Srinivas
74569840f7
pull-kubernetes-update ci job needs etcd installed
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-24 16:41:52 -05:00
Hemant Kumar
86fdba352d Always enable node restriction plugin by default 2022-01-24 16:08:36 -05:00
Kubernetes Prow Robot
5426da8f69
Merge pull request #107728 from dims/adding-update-dockerized-script
Add a script to help with running make update using docker
2022-01-24 09:49:57 -08:00
Davanum Srinivas
59f92a41f6
Add a script to help with running make update using docker
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-01-24 11:21:01 -05:00
Abu Kashem
95b4ac4dbd
apf: create suggested pl before flowschema 2022-01-24 10:24:30 -05:00
Kubernetes Prow Robot
c225bdd552
Merge pull request #106828 from MadhavJivrajani/watch-cache-interval-impl
cacher: Implement watchCacheInterval to reduce watchCache lock contention
2022-01-24 07:07:57 -08:00
Madhav Jivrajani
347607e971 cacher: watchCacheInterval to reduce lock contention
watchCacheInterval serves as an abstraction over a source
of watchCacheEvents. It maintains a window of events over
an underlying source and these events can be served using
the exposed Next() API. The main intent for doing things
this way is to introduce an upper bound of memory usage
for starting a watch and reduce the maximum possible time
interval for which the lock would be held while events are
copied over.

The source of events for the interval is typically either
the watchCache circular buffer, if events being retrieved
need to be for resource versions > 0 or the underlying
implementation of Store, if resource version = 0.

Furthermore, an interval can be either valid or invalid at
any given point of time. The notion of validity makes sense
only in cases where the window of events in the underlying
source can change over time - i.e. for watchCache circular
buffer. When the circular buffer is full and an event needs
to be popped off, watchCache::startIndex is incremented. In
this case, an interval tracking that popped event is valid
only if it has already been copied to its internal buffer.
However, for efficiency we perform that lazily and we mark
an interval as invalid iff we need to copy events from the
watchCache and we end up needing events that have already
been popped off. This translates to the following condition:
  watchCacheInterval::startIndex >= watchCache::startIndex.
When this condition becomes false, the interval is no longer
valid and should not be used to retrieve and serve elements
from the underlying source.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-01-24 19:35:53 +05:30
Kensei Nakada
86951cb2ac
Update CHANGELOG-1.23.md to delete reverted change 2022-01-24 19:03:58 +09:00
calvin
d9ab5e18d3 fix: data race when hijack klog
Signed-off-by: calvin <wen.chen@daocloud.io>
2022-01-24 15:01:49 +08:00
acumino
13b6b2d92d remove code duplication 2022-01-23 17:30:51 +05:30
Kubernetes Prow Robot
dc96c3dfcc
Merge pull request #107703 from Huang-Wei/sched-ut-goroutine-leak
sched: fix goroutine leak in unit tests
2022-01-23 00:09:56 -08:00