Commit Graph

110029 Commits

Author SHA1 Message Date
Arda Güçlü
3d8cfaacbe Introduce KUBECACHEDIR environment variable to override default discovery cache dir
This PR introduces new environment variable, namely `KUBECACHEDIR`. `KUBECACHEDIR`
is used to override default discovery cache directory for all commands(whose default value
is $HOME/.kube/cache).

`--cache-dir` flag per command has higher precedence than `KUBECACHEDIR` and default
directory path.
2022-04-14 10:52:31 +03:00
XuzhengChang
2bc6ac5af6 remove excluded staticcheck that were already fixed 2022-04-14 11:12:57 +08:00
Kubernetes Prow Robot
f33ca23065
Merge pull request #109471 from justaugustus/etcd-update-353
etcd: Update to v3.5.3
2022-04-13 17:14:46 -07:00
Stephen Augustus
621c4aa599
etcd: Update container repo to gcr.io/etcd-development/etcd
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-04-13 19:04:01 -04:00
Stephen Augustus
3f85937b11
etcd: Update to v3.5.3
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-04-13 19:04:00 -04:00
Kubernetes Prow Robot
d9213f95a0
Merge pull request #109470 from serathius/image-v3.5.3
etcd: Build 3.5.3-0 image
2022-04-13 15:50:45 -07:00
Kubernetes Prow Robot
ce4b026eed
Merge pull request #109465 from cpanato/pubbot
Update publishing-bot rules for Go 1.17.9
2022-04-13 13:34:48 -07:00
Marek Siarkowicz
b0f3f015d7
Build etcd v3.5.3 image
Co-authored-by: Stephen Augustus <foo@auggie.dev>
2022-04-13 16:25:14 -04:00
Stephen Augustus
cddd83c997
Update Debian base images
- debian-base:bullseye-v1.2.0
- debian-iptables:bullseye-v1.3.0
- setcap:bullseye-v1.2.0

Signed-off-by: Stephen Augustus <foo@auggie.dev>
2022-04-13 16:23:54 -04:00
Peter Hornyack
eb64e29528 Remove pjh from cluster/gce/ OWNERS files
Moved to emeritus_approvers for the windows directory - this seems
appropriate according to
https://www.kubernetes.dev/docs/guide/owners/#emeritus.
2022-04-13 18:24:20 +00:00
cpanato
e1a433b67c
Update publishing-bot rules for Go 1.17.9
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-04-13 18:41:49 +02:00
Kubernetes Prow Robot
75e49ec824
Merge pull request #109461 from cpanato/go118
[GO] Update Go to 1.18.1
2022-04-13 09:10:47 -07:00
Priyanka Saggu
0e92873ee5
update verify-licenses.sh to make it execute in a different git worktree 2022-04-13 21:00:56 +05:30
cpanato
2e9d10e8c6
Update Go to 1.18.1
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-04-13 16:44:21 +02:00
Kubernetes Prow Robot
4cdeab4696
Merge pull request #109436 from JamesLaverack/revert-108290
Revert "Introduce APIs to support multiple ClusterCIDRs (#108290)"
2022-04-13 07:02:46 -07:00
James Laverack
7d57d5c70d Revert "Introduce APIs to support multiple ClusterCIDRs (#108290)"
This reverts commit b9792a9dae.
2022-04-13 13:58:19 +01:00
Stephen Heywood
931ad8944d Fix e2e test, assignment to entry in nil map 2022-04-13 15:24:47 +12:00
Kubernetes Prow Robot
65178fec72
Merge pull request #109442 from ahg-g/ahg-fix
Correct event registration for multiple scheduler plugins
2022-04-12 16:48:46 -07:00
Abdullah Gharaibeh
6d499ee9ea Correct event registration for multiple scheduler plugins. 2022-04-12 18:32:24 -04:00
Kevin Delgado
581ac7f446 Add Apply and ApplyStatus methods to dynamic ResourceInterface 2022-04-12 21:55:40 +00:00
Miciah Masters
5832b84200 kubelet: parseResolvConf: Handle "search ."
When parsing a resolv.conf file that has "search .", parseResolvConf should
accept the "." entry verbatim.  Before this commit, parseResolvConf
unconditionally trimmed the "." suffix, which in the case of "." resulted
in a "" entry (that is, the empty string).  This empty entry could lead
parseResolvConf to produce a resolv.conf file with "search ".  Resolvers
could fail to parse such a resolv.conf file from parseResolvConf, thus
breaking DNS resolution in pods.  After this commit, parseResolvConf
accepts a resolv.conf file with "search ." and passes the "." entry through
verbatim to produce a valid resolv.conf file.  The "." suffix is still
trimmed for any entry that does not solely comprise ".".

Follow-up to commit a215a88d91.

* pkg/kubelet/network/dns/dns.go (parseResolvConf): Handle a "." entry in
the search path by copying it verbatim.
* pkg/kubelet/network/dns/dns_test.go (TestParseResolvConf): Add a test
case for "search .".
2022-04-12 15:39:31 -04:00
Maciej Szulik
8074ef5867
Export function returning kustomize version 2022-04-12 19:44:38 +02:00
Abhijit Hoskeri
ea6e653db1 conformance-test: use kubelet healthz port.
The readonly port could be disabled.

Since we are only using the /healthz endpoint,
we can use the healthz port.

Change-Id: If004f2888ca5847b9e2d8c02d5615bed52d94b24
2022-04-11 16:57:29 -07:00
Vladimir Nachev
9b4927be15
Fix typo in TokenRequest doc string 2022-04-11 23:58:06 +03:00
Dan Winship
0ecf11a23b proxy/iptables: add a general test of internal vs external traffic
Add TestInternalExternalMasquerade, which tests whether various
packets are considered internal or external for purposes of traffic
policy, and whether they get masqueraded, with and without
--masquerade-all, with and without a working LocalTrafficDetector.
(This extends and replaces the old TestMasqueradeAll.)
2022-04-11 13:23:08 -04:00
Dan Winship
f4261283ac proxy/iptables: add packet-flow-based tests of iptables rules
Add a new framework for testing out how particular packets would be
handled by a given set of iptables rules. (eg, "assert that a packet
from 10.180.0.2 to 172.30.0.41:80 gets NATted to 10.180.0.1:80 without
being masqueraded"). Add tests using this to all of the existing unit
tests.

This makes it easier to tell whether a given code change has any
effect on behavior, without having to carefully examine the diffs to
the generated iptables rules.
2022-04-11 13:23:08 -04:00
Davanum Srinivas
984037d4f7
Set default flake attempt to 1 (not 2)
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-04-10 20:24:17 -04:00
Priyanka Saggu
84759deac5
add verify-licenses.sh hack script (kubernetes#108942) 2022-04-09 20:08:24 +05:30
Noah Ispas (iamNoah1)
6e03bd9fe9 generate ressources after change request 2022-04-09 10:45:01 +02:00
Noah Ispas (iamNoah1)
d3a2cbf896 add change requests 2022-04-09 10:26:04 +02:00
cncal
ab945d21ad reorder the import packages 2022-04-09 11:30:26 +08:00
cncal
fa1d1edbef use require to simplify testcases 2022-04-09 11:30:26 +08:00
cncal
a64b9cee21 fix test for CheckpointStateRestore 2022-04-09 11:30:26 +08:00
Kubernetes Prow Robot
7380fc735a
Merge pull request #109109 from mborsz/exec_time
Add apf_execution_time log field.
2022-04-08 07:50:43 -07:00
Kubernetes Prow Robot
9984048bd5
Merge pull request #109365 from alculquicondor/fix-integration
Retry Job update on conflict
2022-04-08 05:04:42 -07:00
ialidzhikov
c682716e87 kubelet: Remove the deprecated --experimental-kernel-memcg-notification flag
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2022-04-08 10:40:25 +03:00
Elana Hashman
eb540aaa4a
Update OWNERS file for stable metrics 2022-04-07 13:22:39 -07:00
Aldo Culquicondor
77d9243623 Retry Job update on conflict
Once JobReadyPods is enabled, the Job status might be updated at a later stage after the pods are running.

Change-Id: I4c13c9e55ab7e11b1f9428d6cf0a560a41be1c6a
2022-04-07 09:38:20 -04:00
Kubernetes Prow Robot
707b8b6efd
Merge pull request #109362 from deepakkinni/rollback_alpha_v1
Rollback HonorPVReclaimPolicy feature to Alpha
2022-04-07 05:41:57 -07:00
Dan Winship
cd55f35306 proxy/iptables: tweak sortIPTablesRules a bit
It's confusing to have the "this must be the last rule" get sorted to
be the first rule in KUBE-SERVICES...
2022-04-07 08:38:14 -04:00
Dan Winship
d9ca665551 proxy/iptables: fix up some test case comments 2022-04-07 08:38:14 -04:00
Dan Winship
261f4f9e2d proxy/iptables: remove redundant test
We originally had one HealthCheckNodePort test that used
assertIPTablesRulesEqual() and one that didn't, but later I went
through and made all the tests use assertIPTablesRulesEqual() and
didn't notice that this resulted in there now being two
nearly-identical HealthCheckNodePort tests.
2022-04-07 08:36:34 -04:00
Soh Takada
5ec2aaa339 validate nodeLabels in kubelet
Signed-off-by: Soh Takada <34182539+FeLvi-zzz@users.noreply.github.com>
2022-04-07 20:27:11 +09:00
Deepak Kinni
8bfd9d63cf Rollback HonorPVReclaimPolicy feature to Alpha
Signed-off-by: Deepak Kinni <dkinni@vmware.com>
2022-04-07 16:10:50 +05:30
Kubernetes Prow Robot
df1a3ddc98
Merge pull request #109205 from deepakkinni/fix_fin_v1
Add or Remove PV deletion protection finalizer based on PV recalimPolicy
2022-04-07 02:57:57 -07:00
Paco Xu
36594d739b CRI socket paths should have URL scheme 2022-04-07 16:11:58 +08:00
HirazawaUi
fc0d38f02f The same err should not judge whether it is empty twice, and the err of "GetKubeletContainer" function should not affect the value of "RuntimeCgroups" 2022-04-07 11:08:25 +08:00
Deepak Kinni
a7b1fcba40 Add or Remove PV deletion protection finalizer considering the recalimPolicy
Signed-off-by: Deepak Kinni <dkinni@vmware.com>
2022-04-07 00:48:35 +05:30
Kubernetes Prow Robot
21184400a4
Merge pull request #109340 from liggitt/revert-generate-name
Revert generate name
2022-04-06 10:38:55 -07:00
Fabio Bertinatto
5ccef5c25e test/e2e/storage: replace hardcoded value with custom timeout in cleanup routine 2022-04-06 14:25:40 -03:00