James Sturtevant
c39945c116
Add unit tests to existing code
2021-11-10 11:50:04 -08:00
James Sturtevant
3564cd5beb
Reduce calls to docker from dockershim for stats
2021-11-10 11:25:03 -08:00
Hemant Kumar
27d1e9a4e2
Remove all references to ConfigurableFSGroupPolicy feature gate
2021-11-10 14:24:08 -05:00
Kubernetes Prow Robot
d1f8463d08
Merge pull request #106269 from danwinship/iptables-proxy-cleanup
...
more iptables proxy cleanups
2021-11-10 10:19:39 -08:00
Abdullah Gharaibeh
a241c45dc7
move a number of scheduler metrics to STABLE
2021-11-10 12:51:17 -05:00
Kubernetes Prow Robot
91ff1f9840
Merge pull request #101250 from evertrain/master
...
Bugfix: prevent daemon controller to adopt controller revisions of ot…
2021-11-10 09:19:26 -08:00
Harry Bagdi
d09a8c0a88
Graduate IngressClassNamespacedParams to GA
2021-11-10 08:58:39 -08:00
Hemant Kumar
467bcd8b89
Add tests for checking bind mounts
2021-11-10 11:52:55 -05:00
Kubernetes Prow Robot
b56dc43458
Merge pull request #106282 from bobbypage/cadvisor-v043
...
vendor: Bump cAdvisor to v0.43.0
2021-11-10 08:17:38 -08:00
Shivanshu Raj Shrivastava
3142acbc8c
migrated remaining lines of server.go and csi.go to structured logging
2021-11-10 21:24:34 +05:30
Dan Winship
a4e6d2f6fa
proxy/iptables: add a unit test for the comment elision code
2021-11-10 09:08:02 -05:00
Kubernetes Prow Robot
9b083c4226
Merge pull request #105773 from deepakkinni/2680_fgate_v1
...
PV controller changes to support PV Deletion protection finalizer
2021-11-10 05:33:26 -08:00
Kubernetes Prow Robot
0c6110e412
Merge pull request #106297 from thockin/svc-testlog-hush
...
Don't write fake logs to the real test log
2021-11-09 23:59:26 -08:00
Tim Hockin
049e158a8f
Don't write fake logs to the real test log
...
This caused consternation as errors were logged but tests did not fail.
It was expected to log!
2021-11-09 22:56:34 -08:00
Tim Hockin
26db11f3dc
Clean up some service logging
...
This is a holdover from previous work. It is not complete, but it
should be incrementally better.
2021-11-09 22:46:22 -08:00
CatherineF-dev
8290400e9c
format
2021-11-10 03:29:13 +00:00
CatherineF-dev
ef0b2dfbf4
Fix metrics AlreadyRegisteredError on TestRecordOperation and TestGetHistogramVecFromGatherer unit test
2021-11-10 03:23:54 +00:00
Kubernetes Prow Robot
5d60c8d857
Merge pull request #102393 from mengjiao-liu/fix-sysctl-regex
...
Upgrade preparation to verify sysctl values containing forward slashes by regex
2021-11-09 18:23:26 -08:00
Dan Winship
8ef1255cdd
proxy/iptables: Abstract out code for writing service-chain-to-endpoint-chain rules
...
The same code appeared twice, once for the SVC chain and once for the
XLB chain, with the only difference being that the XLB version had
more verbose comments.
2021-11-09 20:59:33 -05:00
Dan Winship
4c64008181
proxy/iptables: Abstract out shared OpenLocalPort code
...
Also, in the NodePort code, fix it to properly take advantage of the
fact that GetNodeAddresses() guarantees that if it returns a
"match-all" CIDR, then it doesn't return anything else. That also
makes it unnecessary to loop over the node addresses twice.
2021-11-09 20:59:30 -05:00
wangyamei
f10c492b68
The DownwardAPIHugePages feature is beta now, set true by default.
2021-11-10 09:35:52 +08:00
David Porter
b6269ce5de
kubelet: update cAdvisor usage for v0.43
...
* Change cAdvisor manager constructor
* Change call to adding AcceleratorUsageMetrics
Signed-off-by: David Porter <david@porter.me >
2021-11-09 17:09:12 -08:00
Kubernetes Prow Robot
8eda02ccbd
Merge pull request #105968 from shivanshu1333/feature3/master/105841
...
Migrated scheduler files `comparer.go`, `dumper.go`, `node_tree.go` to structured logging
2021-11-09 13:59:47 -08:00
Hemant Kumar
7a73168a59
Check subpath file
2021-11-09 16:05:04 -05:00
Hemant Kumar
06e040de40
Add check for subpaths
2021-11-09 16:05:03 -05:00
Kubernetes Prow Robot
a41d166a90
Merge pull request #105904 from mengjiao-liu/structured_logging_scheduler
...
Migrate assume_cache.go to structured logging
2021-11-09 11:28:00 -08:00
Shivanshu Raj Shrivastava
1a079d7b86
migrated comparer.go, dumper.go, node_tree.go to structured logging
2021-11-10 00:53:38 +05:30
Kubernetes Prow Robot
6ac2d8edc8
Merge pull request #105967 from shivanshu1333/feature2/master/105841
...
Migrated scheduler files `preemption.go`, `stateful.go`, `resource_allocation.go` to structured logging
2021-11-09 10:28:01 -08:00
Kubernetes Prow Robot
8e02b78873
Merge pull request #102534 from wangyysde/create-hpav2stable
...
Create HPA v2 Stable API
2021-11-09 10:27:48 -08:00
Kubernetes Prow Robot
376b2150d5
Merge pull request #105874 from cyclinder/Add_func_name_to_comment
...
fix some lint error
2021-11-09 08:29:47 -08:00
evertrain
a67f22c849
add ut for cluster-scoped controller case
2021-11-09 23:50:24 +08:00
Dan Winship
9cd0552ddd
proxy/iptables: Remove unnecessary /32 and /128 in iptables rules
...
If you pass just an IP address to "-s" or "-d", the iptables command
will fill in the correct mask automatically.
Originally, the proxier was just hardcoding "/32" for all of these,
which was unnecessary but simple. But when IPv6 support was added, the
code was made more complicated to deal with the fact that the "/32"
needed to be "/128" in the IPv6 case, so it would parse the IPs to
figure out which family they were, which in turn involved adding some
checks in case the parsing fails (even though that "can't happen" and
the old code didn't check for invalid IPs, even though that would
break the iptables-restore if there had been any).
Anyway, all of that is unnecessary because we can just pass the IP
strings to iptables directly rather than parsing and unparsing them
first.
(The diff to proxier_test.go is just deleting "/32" everywhere.)
2021-11-09 09:32:50 -05:00
Dan Winship
62672d06e6
proxy/iptables: fix a bug in node address error handling
...
If GetNodeAddresses() fails (eg, because you passed the wrong CIDR to
`--nodeport-addresses`), then any NodePort services would end up with
only half a set of iptables rules. Fix it to just not output the
NodePort-specific parts in that case (in addition to logging an error
about the GetNodeAddresses() failure).
2021-11-09 09:32:50 -05:00
Dan Winship
ab67a942ca
proxy/iptables, proxy/ipvs: Remove an unnecessary check
...
The iptables and ipvs proxiers both had a check that none of the
elements of svcInfo.LoadBalancerIPStrings() were "", but that was
already guaranteed by the svcInfo code. Drop the unnecessary checks
and remove a level of indentation.
2021-11-09 09:32:50 -05:00
Kubernetes Prow Robot
a9ad15c421
Merge pull request #105292 from ravisantoshgudimetla/podOS-field-kubelet
...
Pod os field kubelet
2021-11-09 06:19:47 -08:00
Kubernetes Prow Robot
927914dec7
Merge pull request #105969 from shivanshu1333/feature4/master/105841
...
Migrated scheduler file `cache.go` to structured logging
2021-11-09 02:05:39 -08:00
Kubernetes Prow Robot
d3ef2e393b
Merge pull request #106058 from marosset/host-process-containers-beta
...
Move WindowsHostProcessContainers feature-gate to Beta
2021-11-08 19:59:39 -08:00
wangyysde
d2abddd909
rename v2beta2 to v2
...
Signed-off-by: wangyysde <net_use@bzhy.com >
Generation swagger.json.
Use v2 path for hpa_cpu_field.
run update-codegen.sh
Signed-off-by: wangyysde <net_use@bzhy.com >
2021-11-09 10:34:54 +08:00
wangyysde
f5c75813e3
just copy v2beta2 to v2
...
Signed-off-by: wangyysde <net_use@bzhy.com >
2021-11-09 08:19:33 +08:00
ravisantoshgudimetla
889d45d3fb
[kubelet] Reject pods with OS field mismatch
...
Once kubernetes#104613 and kubernetes#104693
merge, we'll have OS field in pod spec. Kubelet should start rejecting pods
where pod.Spec.OS and node's OS(using runtime.GOOS) won't match
2021-11-08 19:18:15 -05:00
Tim Hockin
731dc8cf74
Fix regression in kube-proxy ( #106214 )
...
* Fix regression in kube-proxy
Don't use a prepend() - that allocates. Instead, make Write() take
either strings or slices (I wish we could express that better).
* WIP: switch to intf
* WIP: less appends
* tests and ipvs
2021-11-08 15:14:49 -08:00
Kubernetes Prow Robot
cda360c59f
Merge pull request #104613 from ravisantoshgudimetla/reconcile-labels
...
[kubelet]: Reconcile OS and arch labels periodically
2021-11-08 14:15:19 -08:00
Hemant Kumar
9d9c3000b0
Remove unnecessary unit tests that exercised disabling the feature gate
2021-11-08 16:41:26 -05:00
Kubernetes Prow Robot
0940dd6fc4
Merge pull request #106163 from aojea/conntrack_readiness
...
kube-proxy consider endpoint readiness to delete UDP stale conntrack entries
2021-11-08 13:11:44 -08:00
Kubernetes Prow Robot
8b463cd141
Merge pull request #105406 from marosset/kubelet-metrics-for-host-process-containers
...
Adding kubelet metrics for started and failed to start HostProcess containers
2021-11-08 13:11:20 -08:00
Deepak Kinni
bfd5f23a0b
PV controller changes to support PV Deletion protection finalizer
...
Signed-off-by: Deepak Kinni <dkinni@vmware.com >
2021-11-08 10:35:58 -08:00
Shivanshu Raj Shrivastava
f4aad52885
migrated preemption.go, stateful.go, resource_allocation.go to structured logging
2021-11-08 22:52:47 +05:30
Kubernetes Prow Robot
33de444861
Merge pull request #103095 from haircommander/podAndContainerStatsFromCRI-feature-gate
...
Kubelet: implement support for podAndContainerStatsFromCRI
2021-11-07 18:26:53 -08:00
Shivanshu Raj Shrivastava
bb31040f06
migrate cache.go to structured logging
2021-11-07 19:20:39 +05:30
Kubernetes Prow Robot
d92a443ca7
Merge pull request #106102 from alculquicondor/delete-pod-tombstone
...
Ensure deletion of pods in queues and cache
2021-11-06 10:52:51 -07:00