Commit Graph

105027 Commits

Author SHA1 Message Date
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
Etienne Champetier
356d9e0626 kubeadm: fix inverted warning message
Before this commit when setting bindAddress to 1.2.3.4 the warning was:
The recommended value for "bindAddress" in "KubeProxyConfiguration" is: 1.2.3.4; the provided value is: 0.0.0.0

Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
2021-11-09 20:54:57 -05:00
chenlinx17
7c67665f7f Fix concurrent map writes error in kube-apiserver 2021-11-10 09:45:17 +08: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
David Porter
c6452be958 Bump cAdvisor to v0.43.0
Bumping cAdvisor from v0.39.2 -> v0.43.0

* Also pin transitive dependencies
  * containerd v1.4.9 -> v1.4.11
  * docker v20.10.2+incompatible> v20.10.7+incompatible

Signed-off-by: David Porter <david@porter.me>
2021-11-09 17:09:00 -08:00
Kubernetes Prow Robot
c04157895c
Merge pull request #106273 from claudiubelu/integration/windows-log-network-consistentcy
tests: Logs the stdout and stderr for network consistency Windows tests on error
2021-11-09 16:31:39 -08:00
Kubernetes Prow Robot
f59b0a56c6
Merge pull request #106181 from ulucinar/aru/consume-kube-openapi
Bump k8s.io/kube-openapi to commit ee342a809c29
2021-11-09 16:31:26 -08:00
Kubernetes Prow Robot
b27c41f66d
Merge pull request #106263 from endocrimes/dani/skip-dkc
e2e_node: Skip dynamic config tests when the feature is disabled
2021-11-09 15:30:53 -08:00
Kubernetes Prow Robot
884a900820
Merge pull request #106245 from mauriciopoppe/gce-windows-ssh-fix
Use simple match instead of regex match in GCE Windows OpenSSH startup script
2021-11-09 15:30:46 -08:00
Kubernetes Prow Robot
0abc054933
Merge pull request #106190 from MikeSpreitzer/integration-scrape-etcd
Add periodic etcd scraping to integration tests
2021-11-09 15:30:38 -08:00
Kubernetes Prow Robot
9d67415468
Merge pull request #106186 from Raffo/patch-1
Improve wording for panic message
2021-11-09 15:30:27 -08:00
Kubernetes Prow Robot
e4adf7f31c
Merge pull request #106116 from fromanirh/e2e-podresources-fix
E2E podresources: fix test checking esclusive cpus allocation
2021-11-09 13:59:59 -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
Jiahui Feng
9c05de2f31 prune enum when OpenAPIEnums is disabled. 2021-11-09 13:00:00 -08:00
Jiahui (Jared) Feng
73ffb49203 generated: ./hack/update-vendor.sh 2021-11-15 15:54:59 -08:00
Kubernetes Prow Robot
093e5e9cf7
Merge pull request #106156 from eddiezane/ez/update-sig-cli-owners
Update sig-cli owners
2021-11-09 12:31:49 -08:00
Alexander Zielenski
0963704178 remove mutation of liveObj in fieldManager.Apply
also document manager interface
2021-11-09 12:21:31 -08:00
Alexander Zielenski
14b67bece4 guard against modification of test inputs in TestNoOpChanges 2021-11-09 11:39:46 -08:00
Kubernetes Prow Robot
e759c32129
Merge pull request #106243 from calvin0327/fix-kubeadm-init-constant
fix some kubeadm init phase constants
2021-11-09 11:28:24 -08:00
Kubernetes Prow Robot
398e028d61
Merge pull request #106228 from sanchayanghosh/104868-scheduler-logging-config-format-incorrectly
Changed the Info type so that the config file can be displayed withou…
2021-11-09 11:28:12 -08: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
Kubernetes Prow Robot
5848dbaa80
Merge pull request #105741 from neolit123/1.23-kubeadm-kubelet-config-map-change
kubeadm: introduce the UnversionedKubeletConfigMap feature gate
2021-11-09 11:27:48 -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
Damien Grisonnet
a225be542d Add dgrisonnet as sig-instrumentation reviewer
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-11-09 20:01:25 +01:00
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
Francesco Romani
bf9bab5bc6 e2e: podresources: wait for local node ready again
Let's wait for the local node (aka the kubelet)
to be ready before to query podresources again,
to avoid false negatives.

Co-authored-by: Artyom Lukianov <alukiano@redhat.com>
Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-11-09 19:02:19 +01:00
Nikhil Sharma
fc0ec62626 Changed code to improve output for files under test/e2e/lifecycle 2021-11-09 22:24:27 +05:30
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
Philip Hamer
e07a6c9e52
fix edit of non-registered custom API types 2021-11-09 10:06:03 -05: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
Danielle Lancashire
caa701b7a3 e2e_node: Skip dynamic config tests when disabled
DKC is being removed and we don't want it to continue flaking the rest
of our tests. Lets disable them when dkc is disabled rather than hard
failing. This fits more in line with our other E2Es, and reduces the
maintenance load in test-infra.
2021-11-09 13:40:18 +01:00
Kubernetes Prow Robot
3ae56ab320
Merge pull request #106174 from markusthoemmes/buildx-check
Make the docker buildx check call --help
2021-11-09 04:31:46 -08:00
Francesco Romani
14105c09fb e2e: node: wait for kvm plugin removal
we need to make sure the system state is completely cleaned up
again, to avoid to mess up with the shared node state, before
we transition from one test to another.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-11-09 11:43:55 +01:00
Francesco Romani
4b46c3a0d2 e2e: node: podresources: fix exclusive cpus check
Since commit 42dd01aa3f the cpuRequest is in millicores, hence
we need to properly check translating to exclusive cpus
when verifying the resource allocation.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-11-09 11:16:54 +01:00
Francesco Romani
a6e8f7530a e2e: node: podresources: add internal helpers
the intent is to make the code more readable, no intended
changes in behaviour. Now it should be a bit more explicit
why the code is checking some values.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2021-11-09 11:16:54 +01: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
Artyom Lukianov
61fe924208 e2e_node: do not relay on Kubelet automatic restart service under hugepages tests
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
2021-11-09 10:33:48 +02:00
Mauricio Poppe
84b403fd02 Use simple match instead of regex match 2021-11-09 05:09:18 +00: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
calvin
c5c9429d0e fix some kubeadm init phase constants 2021-11-09 10:30:01 +08:00
Abu Kashem
ec93e854ca
client-go: add jitter to flowcontrol.Backoff 2021-11-08 19:30:03 -05:00