Commit Graph

108989 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
3beb8dc596
Merge pull request #110612 from mattcary/ss-integration
Add TestAutodeleteOwnerRefs statefulset integration test
2022-06-21 15:29:42 -07:00
Kubernetes Prow Robot
4720f0725c
Merge pull request #110531 from Iceber/fix-run-controller-manager
fix the running of the kube-controller-manager
2022-06-21 13:15:55 -07:00
Kubernetes Prow Robot
3d5971aa5d
Merge pull request #110167 from NoicFank/master
scheduling: fix duplicate checks for number of enabled queue sort plugin
2022-06-21 13:15:43 -07:00
Aldo Culquicondor
817c8bbf59 Increase timeout for TestSyncPastDeadlineJobFinished
To mitigate flakiness

Change-Id: I1d0286d16d2b7dd3a605690e9a2d4d2f954701ff
2022-06-21 14:49:10 -04:00
Kubernetes Prow Robot
1ceca7b139
Merge pull request #110646 from thockin/rest-init-uid-early
Initialize UID earlier in the Create process
2022-06-21 11:06:38 -07:00
Kubernetes Prow Robot
e1f5282b19
Merge pull request #110638 from kerthcet/feat/nominate-to-reviewer
REQUEST: nominate kerthcet as sig scheduler reviewer
2022-06-21 11:06:26 -07:00
Kubernetes Prow Robot
a57c140a12
Merge pull request #110567 from xiaomudk/patch-2
Remove redundant variable definitions in scheduler apis defaults.go
2022-06-21 09:46:25 -07:00
Kante Yin
e844c12a61
Cleanup: defer to close server in tests (#110367)
* Cleanup: defer to close server in tests

Signed-off-by: kerthcet <kerthcet@gmail.com>

* address comments

Signed-off-by: kerthcet <kerthcet@gmail.com>

* address comments

Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-06-21 08:00:38 -07:00
Kubernetes Prow Robot
375fd32b9f
Merge pull request #109957 from adammw/adammw/disruption-implements-scale
disruptioncontroller: check for scale subresource correctly
2022-06-21 08:00:26 -07:00
Brian Pursley
25e713ba77 Remove unused flags from kubectl run
The following flags, which do not apply to kubectl run,
have been removed:
--cascade
--filename
--force
--grace-period
--kustomize
--recursive
--timeout
--wait

These flags were being added to the run command to support
pod deletion after attach, but they are not used if set, so
they effectively do nothing.

This PR also displays an error message if the pod fails to be
deleted (when the --rm flag is used).  Previously any error
during deletion would be suppressed and the pod would remain.

This PR also adds some unit tests for run and attach with and
without the --rm flag.  As such, some minor refactoring of the
run command has been done to support mocking dependencies.
2022-06-21 10:51:30 -04:00
Kubernetes Prow Robot
a9f83d839e
Merge pull request #110664 from jbartosik/rollback-failing-hpa-e2e
Revert "Add e2e test for HPA behavior: scale up delay"
2022-06-21 05:49:43 -07:00
hwdef
2ea856026a clean up spelling_failures 2022-06-21 17:33:46 +08:00
chymy
c8aa25e472 fix several typo
Signed-off-by: chymy <chang.min1@zte.com.cn>
2022-06-21 09:11:41 +00:00
Kubernetes Prow Robot
02462739ca
Merge pull request #110655 from Abirdcfly/fixtypo1
typo in comments pkg/kubelet/volumemanager/volume_manager.go
2022-06-20 16:01:42 -07:00
Joachim Bartosik
a936e21538 Revert "Add e2e test for HPA behavior: scale up delay"
The test is failing since its first run: #110662

This reverts commit a724818ad0.
2022-06-20 14:50:46 +02:00
Arda Güçlü
d336f7df87 Stop passing source as parameter
This commit removes passing source field as parameter. Instead,
this commit returns error verb and error functions to caller function.
Caller function can add source field by generating correct message.
2022-06-20 10:04:18 +03:00
Abirdcfly
984ed7ab94
typo in comments pkg/kubelet/volumemanager/volume_manager.go
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-06-20 09:59:01 +08:00
Kubernetes Prow Robot
609db7ed0b
Merge pull request #110635 from chendave/kubeadm_fix
kubeadm: fail faster when the version is not provided
2022-06-19 10:06:03 -07:00
Kubernetes Prow Robot
3724273d38
Merge pull request #110640 from aspsk/aspsk/pr/fix-test-e2e-network-hostport
test/e2e/network: fix a bug in the hostport e2e test
2022-06-19 06:54:03 -07:00
Tim Hockin
5615de51f9 Initialize UID earlier in the Create process
Before:
  Create()
      BeginCreate()
      BeforeCreate()
          init UID <---------------------
          strategy code

After:
  Create()
      init UID <-------------------------
      BeginCreate()
      BeforeCreate()
          strategy code

This also wipes UID early (suggested by David) and asserts it is set in
BeforeCreate().
2022-06-18 18:47:23 -07:00
Kubernetes Prow Robot
d2f97bf90c
Merge pull request #108823 from ialidzhikov/update-deprecation-messages
kubelet: Update deprecation messages from 1.24 to 1.25
2022-06-18 13:32:03 -07:00
ialidzhikov
0a83f72214 kubelet: Update deprecation messages from 1.24 to 1.25
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
2022-06-18 19:45:50 +03:00
yxxhero
7a5af811e7 remove unused code in kubelet
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-06-18 15:03:27 +08:00
Iceber Gu
cac919bca4 fix the running of the kube-controller-manager
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
2022-06-18 09:24:04 +08:00
Kermit Alexander
192aea7119 Remove need for escaped quotes. 2022-06-17 22:40:38 +00:00
Kubernetes Prow Robot
dbb6c77de4
Merge pull request #110108 from ialidzhikov/fix/typo
Nit: Fix a typo
2022-06-17 14:52:02 -07:00
Anton Protopopov
4026d355bc test/e2e/network: add a check to the hostport e2e test
As described in 8c76845b03 ("test/e2e/network: fix a bug in the hostport e2e
test") if we have two pods with the same hostPort, hostIP, but different
protocols, a CNI may be buggy and decide to forward all traffic only to one of
these pods. Add a check that we receiving requests from different pods.

Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2022-06-17 21:08:35 +00:00
Kubernetes Prow Robot
26348b767d
Merge pull request #105797 from pohly/log-configuration-feature-gates
component-base: make LoggingConfiguration a single-version API
2022-06-17 12:34:04 -07:00
Patrick Ohly
4c6338ac0f logs: replace config methods with functions
API types are only supposed to have methods related to serialization.
2022-06-17 20:22:13 +02:00
Patrick Ohly
ea3f25f49b logs: add alpha+beta feature gates
It is useful to have the ability to control whether alpha or beta features are
enabled. We can group features under LoggingAlphaOptions and LoggingBetaOptions
because the configuration is designed so that each feature individually must be
enabled via its own option.

Currently, the JSON format itself is beta (graduated in 1.23) but additional
options for it were only added in 1.23 and thus are still alpha:

  $ go run ./staging/src/k8s.io/component-base/logs/example/cmd/logger.go --logging-format=json --log-json-split-stream --log-json-info-buffer-size 1M --feature-gates LoggingBetaOptions=false
  [format: Forbidden: Log format json is BETA and disabled, see LoggingBetaOptions feature, options.json.splitStream: Forbidden: Feature LoggingAlphaOptions is disabled, options.json.infoBufferSize: Forbidden: Feature LoggingAlphaOptions is disabled]

  $ go run ./staging/src/k8s.io/component-base/logs/example/cmd/logger.go --logging-format=json --log-json-split-stream --log-json-info-buffer-size 1M
  [options.json.splitStream: Forbidden: Feature LoggingAlphaOptions is disabled, options.json.infoBufferSize: Forbidden: Feature LoggingAlphaOptions is disabled]

This is the same approach that was taken for CPUManagerPolicyAlphaOptions and
CPUManagerPolicyBetaOptions.

In order to test this without modifying the global feature gate in a test file,
ValidateKubeletConfiguration must take a feature gate as argument.
2022-06-17 20:22:13 +02:00
Patrick Ohly
1aceac797d logs: make LoggingConfiguration an unversioned API
Making the LoggingConfiguration part of the versioned component-base/config API
had the theoretic advantage that components could have offered different
configuration APIs with experimental features limited to alpha versions (for
example, sanitization offered only in a v1alpha1.KubeletConfiguration). Some
components could have decided to only use stable logging options.

In practice, this wasn't done. Furthermore, we don't want different components
to make different choices regarding which logging features they offer to
users. It should always be the same everywhere, for the sake of consistency.

This can be achieved with a saner Go API by dropping the distinction between
internal and external LoggingConfiguration types. Different stability levels of
indidividual fields have to be covered by documentation (done) and potentially
feature gates (not currently done).

Advantages:

- everything related to logging is under component-base/logs;
  previously this was scattered across different packages and
  different files under "logs" (why some code was in logs/config.go
  vs. logs/options.go vs. logs/logs.go always confused me again
  and again when coming back to the code):

  - long-term config and command line API are clearly separated
    into the "api" package underneath that

  - logs/logs.go itself only deals with legacy global flags and
    logging configuration

- removal of separate Go APIs like logs.BindLoggingFlags and
  logs.Options

- LogRegistry becomes an implementation detail, with less code
  and less exported functionality (only registration needs to
  be exported, querying is internal)
2022-06-17 20:22:13 +02:00
Patrick Ohly
5fe00c14be logs: move code in preparation for v1 api 2022-06-17 20:06:14 +02:00
Patrick Ohly
18bf5d23f1 logs: simplify flush daemon startup
StartFlushDaemon can be called more than once. We can take advantage of that an
eliminate the tracking of where we need to start it.
2022-06-17 20:06:14 +02:00
Patrick Ohly
4033e64bf1 kubelet: initialize logging even sooner, return error
After the removal of the dynamic kubelet configuration feature it became
possible to initialize logging directly after configuration parsing. The
advantage is that logs emitted by
kubeletconfigvalidation.ValidateKubeletConfiguration and
`klog.InfoS("unsupported configuration ...` already use the intended log
output.

After the code was originally added, Run was replaced by RunE. Taking advantage
of that and returning an error is cleaner.
2022-06-17 20:06:14 +02:00
Anton Protopopov
fd94ff6487 agnhost/netexec: fix an error message
The error message inside the UDP server used a SCTP port instead of a UDP port
2022-06-17 16:03:33 +00:00
Anton Protopopov
8c76845b03 test/e2e/network: fix a bug in the hostport e2e test
The hostport e2e test (sonobuoy run --e2e-focus 'validates that there is no
conflict between pods with same hostPort but different hostIP and protocol')
checks, in particular, that two pods with the same hostPort, the same hostIP,
but different L4 protocols can coexist on one node.

In order to do this, the test creates two pods with the same hostIP:hostPort,
one TCP-based, another UDP-based. However, both pods listen on both protocols:

    netexec --http-port=8080 --udp-port=8080

This can happen that a CNI which doesn't distinguish between TCP and UDP
hostPorts forwards all traffic, TCP or UDP, to the same pod. As this pod
listens on both protocols it will reply to both requests, and the test
will think that everything works properly while the second pod is indeed
disconnected. Fix this by executing different commands in different pods:

    TCP: netexec --http-port=8080 --udp-port=-1
    UDP: netexec --http-port=8008 --udp-port=8080

The TCP pod now doesn't listen on UDP, and the UDP pod doesn't listen on TCP on
the target hostPort. The UDP pod still needs to listen on TCP on another port
so that a pod readiness check can be made.
2022-06-17 13:06:41 +00:00
kerthcet
0f4b549e28 nominate kerthcet as sig scheduler reviewer
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-06-17 19:25:34 +08:00
Dave Chen
aa5dfd8b28 kubeadm: fail faster when the version is not provided
Signed-off-by: Dave Chen <dave.chen@arm.com>
2022-06-17 16:42:56 +08:00
Kubernetes Prow Robot
19c8a21271
Merge pull request #110204 from humblec/addon
remove deprecated label and update snapshot controller version
2022-06-16 21:52:32 -07:00
Kubernetes Release Robot
b38f355726 CHANGELOG: Update directory for v1.24.2 release 2022-06-17 03:43:36 +00:00
Kubernetes Release Robot
7a1a4e0670 CHANGELOG: Update directory for v1.21.14 release 2022-06-17 03:39:17 +00:00
Kubernetes Prow Robot
e7ced8ddcc
Merge pull request #110616 from MrHohn/revert-108787-cadvisor_stat_provider_filter_0
Revert "filter out terminated containers in cadvisor_stats_provider"
2022-06-16 19:20:32 -07:00
Kubernetes Prow Robot
7992398725
Merge pull request #110451 from lzhecheng/fix-spread-pods
[e2e] Should spread Pods to schedulable cluster zones
2022-06-16 14:37:05 -07:00
Kubernetes Release Robot
2f8aeb7167 CHANGELOG: Update directory for v1.23.8 release 2022-06-16 20:20:58 +00:00
Kubernetes Release Robot
a12f31dd40 CHANGELOG: Update directory for v1.22.11 release 2022-06-16 19:43:47 +00:00
Kubernetes Prow Robot
92c5f3f01c
Merge pull request #110583 from Riaankl/node_status_ineligible
Update ineligible_endpoints.yaml
2022-06-16 12:33:04 -07:00
Riaan Kleinhans
39d3d9439f
Update ineligible_endpoints.yaml 2022-06-17 06:24:35 +12:00
Kubernetes Prow Robot
80c19baa11
Merge pull request #110557 from ldsdsy/modify
Fixing grammar in e2e Windows test logging
2022-06-16 10:14:48 -07:00
Kubernetes Prow Robot
4e17f88b7e
Merge pull request #110506 from yangjunmyfm192085/removedockershim-des
Remove the description of the docker shim from the kubelet
2022-06-16 08:54:48 -07:00
Kubernetes Prow Robot
734fa8e830
Merge pull request #110624 from swatisehgal/update-staging-readme
staging-readme: Document the need to add doc.go in a staging repo
2022-06-16 07:00:49 -07:00