xin.li
180c2332bf
[UT] increase coverage ut for kubeadm/app/features
...
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-06-20 12:57:22 +08:00
Filip Křepinský
85d9339ef8
add KCM names into CCM cmd allowed import-restrictions
2023-06-19 15:01:01 +02:00
Filip Křepinský
4e6a3fb9c1
deduplicate cloud provider controller names
...
and move the to cloud-provider module
2023-06-19 15:01:01 +02:00
Filip Křepinský
e5f5a9bfdb
use controller names for CLI FlagSets to show the names in help
2023-06-19 15:01:01 +02:00
Filip Křepinský
cd56748ec5
reference controllers correctly from CLI help
2023-06-19 15:01:01 +02:00
Filip Křepinský
9fd8f568fe
introduce CCM controller aliases and unify controller names
2023-06-19 15:01:01 +02:00
Filip Křepinský
94792d85de
simplify TestValidateControllersOptions test
2023-06-19 15:00:59 +02:00
Filip Křepinský
9730951136
introduce KCM controller aliases and unify controller names
2023-06-19 14:59:33 +02:00
Lubomir I. Ivanov
ede2ec22b6
kubeadm: drop older etcd versions from kubeadm support
...
- drop versions < 1.22 in the etcd map
- use 3.5.9-0 for >= 1.22 versions
- make the minimum version for external etcd 3.4.13-4 and max 3.5.9-0
- update images_test to not rely on a pinned etcd version in tests
note: the image 3.4.18-0 was never released in registry.k8s.io!
2023-06-18 15:38:53 +03:00
Paco Xu
f44029705f
exit 1 if status are not as expected(order)
...
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-06-18 14:09:50 +08:00
Kubernetes Prow Robot
47e79b8156
Merge pull request #116910 from fatsheep9146/job-controller-contextual-logging
...
Migrated pkg/controller/job to contextual logging
2023-06-14 08:00:18 -07:00
Ziqi Zhao
7bc449d7e0
add contextual logging to job-controller
...
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-06-14 13:40:02 +08:00
carlory
5e048041e4
remove helper function for unused storage feature in pkg/proxy/util
2023-06-13 09:22:59 +08:00
Kubernetes Prow Robot
2353dac98a
Merge pull request #117964 from ytinirt/patch-1
...
Update --image-gc-low-threshold option's description
2023-06-12 13:46:26 -07:00
Kubernetes Prow Robot
32048b1467
Merge pull request #117550 from borgerli/cron-job-syncs
...
add --concurrent-cron-job-syncs flag for kube-controller-manager
2023-06-12 13:46:19 -07:00
Kubernetes Prow Robot
03486cec21
Merge pull request #116530 from pacoxu/undepreated-provider-id
...
undeprecate kubelet --provider-id flag
2023-06-12 13:45:58 -07:00
Kubernetes Prow Robot
49d7b3f0a0
Merge pull request #118596 from SataQiu/fix-kubelet-20230610
...
kubelet: mark '--azure-container-registry-config' flag as deprecated
2023-06-12 12:44:10 -07:00
Kubernetes Prow Robot
8a0b1bbf24
Merge pull request #118095 from carlory/patch-002
...
remove unused pv informer from expand_controller
2023-06-12 11:43:58 -07:00
SataQiu
910630fbea
kubelet: mark '--azure-container-registry-config' flag as deprecated
2023-06-10 00:52:24 +08:00
Kubernetes Prow Robot
b2042d6ce4
Merge pull request #118338 from aroradaman/mv-ipset
...
move pkg/util/ipset inside pkg/proxy/ipvs
2023-06-09 08:14:24 -07:00
Kubernetes Prow Robot
577d524f08
Merge pull request #118513 from danwinship/proxy-node-ip
...
kube-proxy startup node IP detection
2023-06-08 17:30:12 -07:00
Kubernetes Prow Robot
de7360d9bc
Merge pull request #118115 from TommyStarK/gh_118090
...
kube-proxy: remove log warning about not using config file
2023-06-08 15:40:24 -07:00
Kubernetes Prow Robot
7ef5ec499d
Merge pull request #117029 from Rajalakshmi-Girish/prune-junit-xml
...
Add flag to prune PASSED subtests in junit xml and have top level tests
2023-06-07 06:18:24 -07:00
Dr. Stefan Schimanski
77cf37ee54
STRUCTURE: cmd/kube-apiserver: move admission construction back from controlplane
2023-06-07 10:11:04 +03:00
Dr. Stefan Schimanski
7961812bed
STRUCTURE: cmd/kube-apiserver: move OpenAPI construction back from controlplane
2023-06-07 10:11:04 +03:00
Dr. Stefan Schimanski
43be9c3a0a
MOVE: cmd/kube-apiserver: move genericapiserver construction into controlplane package
2023-06-07 10:11:04 +03:00
Dr. Stefan Schimanski
9be6e7bb33
STRUCTURE: cmd/kube-apiserver/app: stratify construction with options/config/server
2023-06-07 10:05:43 +03:00
Dr. Stefan Schimanski
e6ed4c7934
CLEANUP: cmd/kube-apiserver/app: remove trivial funcs
2023-06-07 10:05:43 +03:00
Dr. Stefan Schimanski
f7d4e90b5c
MOVE: cmd/kube-apiserver/app.createAPIExtensionsConfig -> pkg/controlplane
2023-06-07 10:05:43 +03:00
Dan Winship
4962e6eacb
Squash detectNodeIP and nodeIPTuple together
2023-06-06 20:48:00 -04:00
Dan Winship
b69b34bec6
Move a kube-proxy unit test to the correct file
2023-06-06 16:01:03 -04:00
Kubernetes Prow Robot
5a5ebfd88b
Merge pull request #118499 from aojea/kproxy_podcidr_alt
...
kube-proxy avoid race condition using LocalModeNodeCIDR
2023-06-06 12:18:11 -07:00
Kubernetes Prow Robot
6f116dc4d5
Merge pull request #118416 from sttts/sttts-etcd-options-complete
...
k8s.io/apiserver: remove skewed completion from EtcdOptions
2023-06-06 09:20:22 -07:00
Antonio Ojea
26801d6541
kube-proxy avoid race condition using LocalModeNodeCIDR
...
Since kube-proxy in LocalModeNodeCIDR needs to obtain the PodCIDR
assigned to the node it watches for the Node object.
However, kube-proxy startup process requires to have these watches in
different places, that opens the possibility of having a race condition
if the same node is recreated and a different PodCIDR is assigned.
Initializing the second watch with the value obtained in the first one
allows us to detect this situation.
Change-Id: I6adeedb6914ad2afd3e0694dcab619c2a66135f8
Signed-off-by: Antonio Ojea <aojea@google.com>
2023-06-06 15:03:22 +00:00
Rajalakshmi Girish
dddbecb47e
prune's xml files to display only top level tests and failed sub-tests
2023-06-06 05:26:00 -07:00
Dr. Stefan Schimanski
e9e4acb1dd
k8s.io/apiserver: remove skewed completion from EtcdOptions
2023-06-06 08:32:34 +03:00
cyclinder
8e4228a8c1
remove CSI-migration gate
2023-06-04 18:40:17 +08:00
Dr. Stefan Schimanski
f351c6d1ec
k8s.io/apiserver: apply storage object count tracker implicitly
2023-06-02 20:24:06 +02:00
Kubernetes Prow Robot
2eb4eac581
Merge pull request #118353 from SataQiu/fix-kubeadm-test-20230531
...
kubeadm: add command-line integration test to ensure that the supported etcd version is always available for the stable Kubernetes version
2023-06-02 04:40:53 -07:00
Andy Zhang
1ce285ad3d
Revert "removed the deprecated azureFile
in-tree storage plugin"
2023-06-02 10:20:53 +08:00
SataQiu
daa7115907
kubeadm: add deprecation message for UpgradeAddonsBeforeControlPlane feature gate
2023-06-01 23:06:26 +08:00
Kubernetes Prow Robot
33a2438de9
Merge pull request #118341 from pacoxu/add-pacoxu-kubeadm
...
add pacoxu to kubeadm approvers
2023-06-01 04:33:46 -07:00
SataQiu
d49c43abde
kubeadm: add integration test to ensure that the supported etcd version is always available for the stable Kubernetes version
2023-06-01 18:45:06 +08:00
TommyStarK
db2389ba9c
kube-proxy: remove log warning about not using config file
...
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-06-01 11:48:16 +02:00
Kubernetes Prow Robot
23698d3e9f
Merge pull request #118335 from pacoxu/revert-118316-fix-kubeadm-20230529
...
Revert "kubeadm: add --feature-gates flag for kubeadm upgrade node"
2023-05-31 02:01:57 -07:00
Paco Xu
f2a5e247eb
add pacoxu to kubeadm approvers list
2023-05-31 10:34:42 +08:00
Daman Arora
2d8c820741
move pkg/util/ipset inside pkg/proxy/ipvs
...
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2023-05-31 00:30:20 +05:30
Kubernetes Prow Robot
9a40920c06
Merge pull request #118296 from uablrek/remove-moby-ipvs
...
Move pkg/util/ipvs inside pkg/proxy/ipvs
2023-05-30 10:14:02 -07:00
Paco Xu
85e0d8c8b1
Revert "kubeadm: add --feature-gates flag for kubeadm upgrade node"
2023-05-31 00:30:08 +08:00
Kubernetes Prow Robot
320d915897
Merge pull request #118316 from SataQiu/fix-kubeadm-20230529
...
kubeadm: add --feature-gates flag for kubeadm upgrade node
2023-05-29 13:01:43 -07:00
Kubernetes Prow Robot
a6f641b656
Merge pull request #118236 from andyzhangx/remove-azurefile
...
removed the deprecated `azureFile` in-tree storage plugin
2023-05-29 09:25:54 -07:00
Kubernetes Prow Robot
76bad75c1e
Merge pull request #118270 from pacoxu/warningonly-for-deprecatedFG
...
kubeadm: warning only for deprecated FG
2023-05-29 08:23:55 -07:00
SataQiu
4523a301c8
kubeadm: enable --feature-gates flag for kubeadm upgrade node
2023-05-29 21:32:42 +08:00
Paco Xu
0951204298
kubeadm: Supports() return true for all alpha/beta/ga/deprecated
2023-05-29 13:05:20 +08:00
SataQiu
c6aaa1eab0
kubeadm: lower the log level of EtcdSupportedVersion warning message as it is a kubeadm internal warning
2023-05-29 10:39:20 +08:00
Lars Ekman
4aa5441de2
Move pkg/util/ipvs inside pkg/proxy/ipvs
...
Ipvs will never be used by any other component within K8s than
the proxy/ipvs
Signed-off-by: Lars Ekman <uablrek@gmail.com>
2023-05-27 18:37:50 +02:00
Kubernetes Prow Robot
c35a2775b2
Merge pull request #115554 from yt2985/cleanSA
...
LegacyServiceAccountTokenCleanUp alpha
2023-05-26 08:54:53 -07:00
Paco Xu
6a867eacd8
kubeadm: warning only for deprecated FG
2023-05-26 09:47:40 +08:00
Kubernetes Prow Robot
d8e9a7b33a
Merge pull request #118017 from danwinship/kube-proxy-platform
...
merge duplicated linux/windows kube-proxy setup code
2023-05-25 16:39:02 -07:00
Kubernetes Prow Robot
cfeb83d56b
Merge pull request #116525 from ffromani/kubelet-podresources-endpoint-ga
...
node: podresources: graduate to GA
2023-05-25 16:38:50 -07:00
Kubernetes Prow Robot
3d27dee047
Merge pull request #118065 from BenTheElder/prune-junit-cleanup
...
prune-junit-xml cleanup
2023-05-25 11:34:54 -07:00
Kubernetes Prow Robot
03ebd4b7ef
Merge pull request #116656 from HirazawaUi/fik-fd-leaks
...
Cleanup fd leaks and file removal cleanup
2023-05-24 22:50:50 -07:00
Kubernetes Prow Robot
90ed8ba687
Merge pull request #118013 from neolit123/1.28-add-config-validate
...
kubeadm: add the "config validate" subcommand
2023-05-24 20:36:49 -07:00
tinatingyu
133eff3df4
implement LegacyServiceAccountTokenCleanUp alpha
2023-05-24 23:20:17 +00:00
Kubernetes Prow Robot
3efd083b6c
Merge pull request #118012 from mengjiao-liu/runtime-framework-pass-context
...
kube-scheduler: NewFramework function to pass the context parameter
2023-05-24 11:50:49 -07:00
Lubomir I. Ivanov
72e4c9a82a
kubeadm: add the "config validate" subcommand
...
The command can be used to validate an input --config and throw
warnings and errors.
Add a new argument strctErrors to the functions
documentMapTo{Init|Join}Configuration(). This allows
to return errors from the calls to VerifyUnmarshalStrict().
Add a new function verifyKnownGVKs() in config/common.go
that is used to verify if a list of GVKs in a config file is
known. This function is used by the "validate" and "migrate"
commands.
Both commands now throw errors for unknown APIs or fields.
2023-05-24 21:22:02 +03:00
Kubernetes Prow Robot
7024beeeeb
Merge pull request #117984 from champtar/kubeadm-init-speedup
...
kubeadm: speedup init by 0s or 20s
2023-05-24 09:09:01 -07:00
andyzhangx
485d1631cd
Remove Azure file in-tree storage plugin
2023-05-24 14:10:34 +00:00
Dan Winship
6232ac734a
Merge duplicated Linux/Windows kube-proxy setup code
2023-05-23 16:17:07 -04:00
Dan Winship
08ce580576
Add ProxyServer.platformSetup
...
Move the Linux-specific conntrack setup code into a new
"platformSetup" rather than trying to fit it into the generic setup
code.
Also move metrics registration there.
2023-05-23 16:17:04 -04:00
Mengjiao Liu
1c05cf1d51
kube-scheduler: NewFramework function to pass the context parameter
...
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com>
2023-05-23 10:17:34 +08:00
Benjamin Elder
96d48de9b9
add OWNERS for cmd/prune-junit-xml
2023-05-22 11:01:38 -07:00
Lubomir I. Ivanov
d8db9640fa
kubeadm: remove function pointer comparison in phase test
...
TestBindToCommandArgRequirements has a .Pointer()
comparison that is not guaranteed to pass given
the reflected functions are closures.
This test is consistently failing on Go 1.21 rc1.
Remove said comparison from the test.
2023-05-20 23:03:45 +03:00
Kubernetes Prow Robot
589d6f3886
Merge pull request #117630 from skitt/intstr-fromint32-cluster-lifecycle
...
Cluster lifecycle: use new intstr functions
2023-05-19 08:50:30 -07:00
Kubernetes Prow Robot
15a1f9a39d
Merge pull request #117921 from kkkkun/clean-up-etcd-version
...
clean up unsupport etcd version
2023-05-18 20:30:28 -07:00
Etienne Champetier
19ae2de19c
kubeadm: speedup init by 0s or 20s
...
Before this commit, kubeadm starts kubelet before it creates
/etc/kubernetes/manifests. On boot, kubelet tries to load the
static pod manifests from this dir by calling `listConfig()`
7ad8303b96/pkg/kubelet/config/file.go (L97)
and it'll then try to start a file watcher every second for 20s
7ad8303b96/pkg/kubelet/config/file.go (L114)
7ad8303b96/pkg/kubelet/config/file_linux.go (L51-L67)
If kubelet starts and calls `listConfig()` before kubeadm creates
`/etc/kubernetes/manifests` (while writing the static pods manifests),
the file watcher will be created less than a second after, but there
will be no changes to report, so the manifests will only be detected
on the next tick of `listTicker`, a bit less than 20s later
7ad8303b96/pkg/kubelet/config/file.go (L102-L103)
Even if we fixed the watch code to `listConfig()` just after starting the
inotify watch, watching source file is only supported on linux,
so moving the manifests generation before kubelet start fixes all
cases and make more sense IMO.
Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
2023-05-18 15:09:15 -04:00
Kubernetes Prow Robot
7ad8303b96
Merge pull request #118104 from liggitt/crd-sync
...
Fix waiting for CRD sync at server start
2023-05-18 11:26:45 -07:00
Jordan Liggitt
e4102d5e30
Test APIService safe handling at startup
2023-05-18 12:17:37 -04:00
Jordan Liggitt
3be3997193
Fix waiting for CRD sync at server start
2023-05-18 11:07:53 -04:00
carlory
bea71a3e4e
remove unused pv informer from expand_controller
2023-05-18 15:58:38 +08:00
Kubernetes Prow Robot
f9d97e0880
Merge pull request #118069 from SataQiu/fix-kubeadm-20230517
...
kubeadm: fix a bug where the static pod changes detection logic is inconsistent with kubelet
2023-05-17 21:26:40 -07:00
Kubernetes Prow Robot
9d613da22b
Merge pull request #118066 from BenTheElder/yamlfmt-cleanup
...
yamlfmt cleanup
2023-05-17 15:42:33 -07:00
Benjamin Elder
fc4fb004cf
add reviewers and labels to yamlfmt
2023-05-17 09:59:26 -07:00
SataQiu
261de704c2
kubeadm: fix a bug where the static pod changes detection logic is inconsistent with kubelet
2023-05-17 17:05:24 +08:00
kkkkun
8b4840aa37
clean up unsupport etcd version
...
Signed-off-by: kkkkun <scuzk373x@gmail.com>
2023-05-17 16:35:50 +08:00
Benjamin Elder
e0ebac6c9c
drop redundant NArg check when looping Args
2023-05-16 23:23:22 -07:00
Benjamin Elder
82c40e3697
drop redundant NArg check when looping Args
2023-05-16 23:12:37 -07:00
Humble Chirammal
e3eb4bd0c5
updating dependencies.yaml for etcd v3.5.9 version
...
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-05-16 20:27:17 +05:30
Kubernetes Prow Robot
ffb4172ff1
Merge pull request #115754 from linxiulei/sched
...
Start informers after leader election
2023-05-15 15:41:36 -07:00
Eric Lin
a52dcd0d9f
Add DelayCacheUntilActive option to start informers after leader election
...
If scheduler fails to be active (elected if leader election is enabled),
setting this option will not start informers so that to avoid memory
overhead.
Signed-off-by: Eric Lin <exlin@google.com>
2023-05-15 19:52:04 +00:00
Kubernetes Prow Robot
1487fc762f
Merge pull request #117982 from jpbetz/sig-roles-jpbetz
...
Add api-machinery TL owners permissions for jpbetz
2023-05-15 09:07:29 -07:00
Joe Betz
f0f92853ad
Add api-machinery TL owners permissions for jpbetz
2023-05-15 11:09:54 -04:00
Kubernetes Prow Robot
f70c26d495
Merge pull request #117919 from dlipovetsky/kubeadm-etcd-log-message-format
...
kubeadm: Remove leading zeros from etcd member ID in log messages
2023-05-14 20:09:38 -07:00
Daniel Lipovetsky
ef9f8d7c0c
kubeadm: Remove leading zeros from etcd member ID in log messages
2023-05-12 17:38:44 -07:00
Daniel Lipovetsky
ff4c6916ec
kubeadm: Fix log message when etcd member is added as learner
2023-05-12 17:38:44 -07:00
Kubernetes Prow Robot
8479db5876
Merge pull request #117946 from lavalamp/lavalamp-taking-a-break
...
lavalamp is taking a long break
2023-05-12 14:34:47 -07:00
Kubernetes Prow Robot
8f9c185696
Merge pull request #116761 from iancoolidge/devel-cpuset-revendor
...
Complete cpuset export to k/utils by revendoring
2023-05-12 08:37:02 -07:00
ZHAO Yao
4b50c4bb01
Update --image-gc-low-threshold option's description
...
kubelet option '--image-gc-low-threshold' description says it 'should not be larger than that of --image-gc-high-threshold'. But actually, it must less than '--image-gc-high-threshold', according to 02659772cb/pkg/kubelet/apis/config/validation/validation.go (L84)
2023-05-12 14:51:45 +08:00
Daniel Smith
1ffe3f467e
lavalamp is taking a long break
2023-05-11 16:43:38 +00:00
Kubernetes Prow Robot
64af2d93e5
Merge pull request #117295 from aojea/transport_cache_metrics
...
add new metric for the internal client-go cache size
2023-05-11 08:59:02 -07:00
Kubernetes Prow Robot
19aaf0c0e1
Merge pull request #117724 from dlipovetsky/kubeadm-remove-etcd-member-idempotent
...
kubeadm: Make etcd member removal idempotent
2023-05-10 12:08:59 -07:00
Daniel Lipovetsky
5fd5768ef3
kubeadm: Make etcd member removal idempotent
...
If the etcd member is not found, then it has already been removed, and
kubeadm reset should immediately complete the 'remove-etcd-member'
phase. Previously, the phase would complete only once the
exponential-backoff retry expired, up to 3 minutes duration.
This commit also fixes a semantic error in etcd.GetMemberID. Previously,
the function returned 0 if no member was found, but 0 is not a valid
member ID.
2023-05-10 09:13:31 -07:00
SataQiu
164113bc1c
fix a bug where the KubeletConfiguration is not printed correctly in the log
2023-05-10 22:29:37 +08:00
Kubernetes Prow Robot
626b2db1ca
Merge pull request #117335 from kkkkun/update-etcd-3.5.8
...
etcd: Update version to 3.5.8
2023-05-10 03:38:59 -07:00
Kubernetes Prow Robot
44a93d0b9d
Merge pull request #117792 from dlipovetsky/kubeadm-etcd-client-refactor
...
kubeadm: Add etcd client unit tests
2023-05-09 11:02:20 -07:00
HirazawaUi
82e3fa0930
fix fd leaks and failed file removing for main pkg and cmd
2023-05-09 09:24:11 -05:00
Min Ni
e865b30abd
update serial number to a valid non-zero number in ca certificate ( #117791 )
...
* update serial number to a valid non-zero number in ca certificate
* fix the existing problem (0 SerialNumber in all certificate) as part of this PR in a separate commit
2023-05-09 06:34:08 -07:00
Daniel Lipovetsky
05b3449346
kubeadm: Add etcd client unit tests
2023-05-08 13:35:03 -07:00
Daniel Lipovetsky
fc1b228779
kubeadm: Use internal etcd client through an interface
2023-05-08 13:35:03 -07:00
SataQiu
b4560f9e57
kubeadm: fix a bug where file copy(backup) could not be executed correctly on Windows platform during upgrade
2023-05-08 22:17:32 +08:00
Kubernetes Prow Robot
50ce134595
Merge pull request #117835 from pacoxu/kubeadm-crictl
...
kubeadm: fix crictl pull using wrong flag, use -i and -r
2023-05-06 09:31:15 -07:00
Kubernetes Prow Robot
98cf297e57
Merge pull request #117391 from catandcoder/master
...
fix doc mismatch
2023-05-06 08:35:17 -07:00
kkkkun
c56839c0a1
etcd: Update version to 3.5.8
...
Signed-off-by: kkkkun <scuzk373x@gmail.com>
2023-05-06 17:29:47 +08:00
Paco Xu
64f2fe2357
kubeadm: fix crictl pull using wrong flag, use -i and -r
2023-05-06 14:50:21 +08:00
Kubernetes Prow Robot
ff244415ae
Merge pull request #117747 from danwinship/proxy-startup-config
...
proxy startup-time config handling cleanup (take 2)
2023-05-04 14:37:24 -07:00
Dan Winship
0c9f55588c
Simplify creation of default KubeProxyConfiguration
2023-05-04 11:39:40 -04:00
Kubernetes Prow Robot
763b10f000
Merge pull request #117421 from cbandy/scheduler-testing-setenv
...
Replace os.Setenv with testing.T.Setenv in tests
2023-05-03 23:54:53 -07:00
Ian K. Coolidge
cede96336a
Depend on k8s.io/utils cpuset
...
Steps performed:
$ find . -name '*.go' -exec sed -i
's|k8s.io/kubernetes/pkg/kubelet/cm/cpuset|k8s.io/utils/cpuset|g' {} \
$ ./hack/update-vendor.sh
$ ./hack/update-gofmt.sh
$ git rm -r pkg/kubelet/cm/cpuset/
2023-05-03 16:26:09 +00:00
Dan Winship
10a869fc75
Remove duplicated config fields from ProxyServer
...
Rather than duplicating some of the KubeProxyConfiguration into
ProxyServer, just store the KubeProxyConfiguration itself so later
code can reference it directly.
For the fields that get platform-specific defaults (Mode,
DetectLocalMode), fill the defaults directly into the
KubeProxyConfiguration rather than keeping the original there and the
defaulted version in the ProxyServer.
2023-05-03 10:15:37 -04:00
SataQiu
1f7c07f355
scheduler: remove deprecated v1beta2 KubeSchedulerConfiguration
2023-05-03 21:43:19 +08:00
Dan Winship
c4575c3438
Fix up detect-local-mode validation
...
Validate the --detect-local-mode value in the API object validation
rather than doing it separately later. Also, remove runtime checks and
unit tests for cases that would be blocked by validation
2023-05-03 08:22:49 -04:00
Dan Winship
3734fe7ab1
Remove some useless error checks
...
Don't return errors in the event of programmer errors, and don't
double-check things that were already validated.
2023-05-03 08:22:45 -04:00
Alexander Zielenski
ffb9c076d7
add OpenAPIV3 config to tests and server options
2023-05-01 13:18:44 -07:00
Francesco Romani
69bc685556
node: podresources: graduate to GA
...
Lock the feature gate to ON and simplify the code
accordingly.
Signed-off-by: Francesco Romani <fromani@redhat.com>
2023-05-01 16:23:28 +02:00
Stephen Kitt
4c83aae2cc
kubeadm: replace intstr.FromInt with intstr.FromInt32
...
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-01 09:17:50 +02:00
Kubernetes Prow Robot
f47d7f3a16
Merge pull request #117690 from pacoxu/revert-117297-proxy-startup-config
...
Revert "proxy startup-time config handling cleanup"
2023-04-30 03:08:17 -07:00
Kubernetes Prow Robot
bc872028ab
Merge pull request #117660 from pacoxu/UpgradeAddonsBeforeControlPlane
...
kubeadm: add deprecated FG UpgradeAddonsBeforeControlPlane
2023-04-29 20:50:17 -07:00
Paco Xu
e28f3de656
Revert "proxy startup-time config handling cleanup"
2023-04-30 09:05:42 +08:00
Kubernetes Prow Robot
e8130ba572
Merge pull request #117297 from danwinship/proxy-startup-config
...
proxy startup-time config handling cleanup
2023-04-28 17:32:16 -07:00
Kubernetes Prow Robot
9924dc65b7
Merge pull request #117614 from chendave/multi_cri
...
kubeadm: fix unit test failure on node with multiple cri endpoints
2023-04-28 01:30:16 -07:00
Dave Chen
2572a43034
kubeadm: fix unit test failure on node with multiple cri endpoints
...
Signed-off-by: Dave Chen <dave.chen@arm.com>
2023-04-28 15:00:16 +08:00
Paco Xu
c6f4bee98d
kubeadm: add deprecated FG UpgradeAddonsBeforeControlPlane
2023-04-28 13:55:46 +08:00
Dan Winship
258c4c4251
Remove duplicated config fields from ProxyServer
...
Rather than duplicating some of the KubeProxyConfiguration into
ProxyServer, just store the KubeProxyConfiguration itself so later
code can reference it directly.
For the fields that get platform-specific defaults (Mode,
DetectLocalMode), fill the defaults directly into the
KubeProxyConfiguration rather than keeping the original there and the
defaulted version in the ProxyServer.
2023-04-27 15:43:35 -04:00
Dan Winship
9d4f10f5d2
Fix up detect-local-mode validation
...
Validate the --detect-local-mode value in the API object validation
rather than doing it separately later. Also, remove runtime checks and
unit tests for cases that would be blocked by validation
2023-04-27 15:43:35 -04:00
Kubernetes Prow Robot
78b56ce16d
Merge pull request #116570 from SataQiu/fix-kubeadm-20230314
...
kubeadm: support upgrade coredns and kube-proxy addons after all the control plane instances have been upgraded
2023-04-27 01:44:26 -07:00
SataQiu
170d5ef9fa
code cleanup for kubeadm
2023-04-26 23:51:39 +08:00
Antonio Ojea
24e68b3c6a
use client-go metrics not only rest_client
...
Change-Id: Id1a98fbaffd3e9db8dc719478ac1e7b4031ccbad
2023-04-25 20:06:05 +00:00
SataQiu
e3d84aa93c
kubeadm: add the experimental (alpha) feature gate UpgradeAddonsAfterControlPlane that supports upgrade coredns and kube-proxy addons after all the control plane instances have been upgraded
2023-04-25 22:12:50 +08:00
Kubernetes Prow Robot
c0804231b9
Merge pull request #117521 from nberlee/fix-coredns-rbac
...
remove nodes resource from CoreDNS RBAC manifest
2023-04-24 10:57:13 -07:00
Li Bo
f9bab9a60b
add --concurrent-cron-job-syncs flag
2023-04-24 18:28:14 +08:00
Kubernetes Prow Robot
b35ffd1dcb
Merge pull request #113969 from Octopusjust/k8s-pr11
...
Add test for cmd/kubeadm/app/phases/upgrade/compute.go
2023-04-24 02:45:01 -07:00
SataQiu
3469bb05db
kubeadm: fix unit test panic for TestNewResetData
2023-04-22 17:02:34 +08:00
Nico Berlee
39e52449f9
remove nodes resource from CoreDNS RBAC manifest
...
This commit syncs RBAC from coredns/deployment and removes a get nodes
RBAC.
Historically the federation CoreDNS plugin needed the nodes resource to
fetch zone and region labels.
However, the CoreDNS federation plugin was deprecated and cleaned up a
long time ago and removed the Nodes RBAC requirement here in
`coredns/deployment` coredns.yaml.sed:
https://github.com/coredns/deployment/pull/229
This change however, never made it to `kubernetes/kubernetes`.
Signed-off-by: Nico Berlee <nico.berlee@on2it.net>
2023-04-21 15:10:31 +02:00
Chris Bandy
b9ef160322
Cleanup environment in tests that call os.Unsetenv
...
testing.T.Cleanup ensures the environment is restored after a test and
any of its parallel sub-tests. It's possible that some of these can be
simplified further to T.Setenv(key, ""), but I did not investigate.
2023-04-17 20:03:33 -05:00
Chris Bandy
240fccd766
Replace os.Setenv with testing.T.Setenv in tests
...
T.Setenv ensures that the environment is returned to its prior state
when the test ends. It also panics when called from a parallel test to
prevent racy test interdependencies.
2023-04-17 20:03:09 -05:00
Chris Bandy
fc643d2e40
Replace os.Setenv with testing.T.Setenv in tests
...
T.Setenv ensures that the environment is returned to its prior state
when the test ends. It also panics when called from a parallel test to
prevent racy test interdependencies.
2023-04-17 19:34:03 -05:00
cui fliter
1359ebcc5b
fix doc mismatch
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-04-16 18:29:45 +08:00
Dan Winship
a96358ac0f
Remove some useless error checks
...
Don't return errors in the event of programmer errors, and don't
double-check things that were already validated.
2023-04-13 19:50:26 -04:00
Andy Goldstein
432a3016a4
Revert "Merge pull request #113151 from ncdc/refactor-crd-conversion"
...
This reverts commit f524d765f4
, reversing
changes made to c2b5457dfa
.
2023-04-13 11:27:39 -04:00
Kubernetes Prow Robot
c3e3ff989a
Merge pull request #116896 from thockin/apimachinery_util_diff_cleanup
...
apimachinery util/diff cleanups
2023-04-13 02:26:37 -07:00