Commit Graph

106409 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
67b2b347d1
Merge pull request #108103 from xmudrii/go-update-publishing-rules
Update publishing-bot rules for Go 1.17.7 / 1.16.14
2022-02-14 06:13:29 -08:00
Marko Mudrinić
b9abd5a710
Update publishing-bot rules for Go 1.17.7 / 1.16.14
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-02-14 13:04:07 +01:00
Kubernetes Prow Robot
b591acca57
Merge pull request #108047 from wojtek-t/fix_event_update
Fix validation of event updates
2022-02-14 02:27:28 -08:00
Kubernetes Prow Robot
21c0f6f6ff
Merge pull request #107677 from pohly/scheduler-integration-benchmark
scheduler integration benchmark improvements
2022-02-14 01:23:28 -08:00
Kubernetes Prow Robot
6669a016ae
Merge pull request #108091 from xmudrii/go-1.17.7
[go] Update Go to 1.17.7
2022-02-12 19:11:46 -08:00
Kubernetes Prow Robot
39ccd6f3f9
Merge pull request #108090 from aojea/slice_topology_error
endpointslice: don't try to update topology cache if node informer error
2022-02-12 16:19:46 -08:00
Kubernetes Prow Robot
f6a8044579
Merge pull request #106082 from matthyx/105820
container_manager: use oomScoreAdj instead of default when set
2022-02-12 09:07:47 -08:00
Matthias Bertschy
9500ee9d9c container_manager: use oomScoreAdj instead of default when set 2022-02-12 15:23:13 +01:00
Kubernetes Prow Robot
31dba0a435
Merge pull request #107142 from dimbleby/delete-user-completion
Completions for kubectl config delete-user
2022-02-12 06:19:48 -08:00
Marko Mudrinić
980406f083
Update Go to 1.17.7
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2022-02-12 13:06:08 +01:00
Kubernetes Prow Robot
1659924a97
Merge pull request #108070 from jsafrane/remove-selinux
Remove util/selinux package
2022-02-11 18:19:47 -08:00
Kubernetes Prow Robot
1f041ccd54
Merge pull request #107887 from bertinatto/fix-panic-kubelet
Fix panic in Kubelet
2022-02-11 12:58:07 -08:00
Kubernetes Prow Robot
a07241e3e0
Merge pull request #107737 from gnufied/enable-node-restriction-default
Enable node restriction plugin by default for local clusters
2022-02-11 12:57:59 -08:00
Kubernetes Prow Robot
8580bbf7d7
Merge pull request #107594 from hakman/remove_container-runtime_logic
Clean up logic for deprecated flag --container-runtime in kubelet
2022-02-11 12:57:47 -08:00
Kubernetes Prow Robot
f74f91d3d3
Merge pull request #108044 from mengjiao-liu/improve_tail_test_coverage
Improve test coverage: add unit tests `TestReadAtMost` in `pkg/util/tail`
2022-02-11 11:48:22 -08:00
Kubernetes Prow Robot
a62759d57c
Merge pull request #107712 from sanposhiho/patch-1
Update CHANGELOG-1.23.md to delete reverted change
2022-02-11 11:48:11 -08:00
Patrick Ohly
e1e84c8e5f scheduler_perf: run with -v=0 by default
This provides a mechanism for overriding the forced increase of the klog
verbosity to 4 when starting the apiserver and uses that for the scheduler_perf
benchmark. Other tests run as before.

A global variable was used because adding an explicit parameter to several
helper functions would have caused a lot of code churn (test ->
integration/util.StartApiserver ->
integration/framework.RunAnAPIServerUsingServer ->
integration/framework.startAPIServerOrDie).
2022-02-11 16:58:33 +01:00
Kubernetes Prow Robot
a1ac74224e
Merge pull request #108062 from aojea/lease_reconciler
apiserver: use endpoint lease reconciler as default
2022-02-11 07:37:45 -08:00
Kubernetes Prow Robot
e24b5333e5
Merge pull request #108052 from klueska/fix-topology-manager
Fix bug in TopologyManager with merging hints when NUM_NUMA > 2
2022-02-11 07:37:34 -08:00
Kubernetes Prow Robot
d79ea9ea33
Merge pull request #108038 from mengjiao-liu/remove_feature_gate_SetHostnameAsFQDN
Remove feature gate `SetHostnameAsFQDN`
2022-02-11 07:36:26 -08:00
Jan Safranek
77aa06d0c8 Remove util/selinux package
The package says:

> the libcontainer SELinux package is only built for Linux, so it is
> necessary to have a NOP wrapper which is built for non-Linux platforms

This is not true, Kubernetes now imports
github.com/opencontainers/selinux/go-selinux and it has proper
multiplatform support (i.e. NOOP on non-Linux platforms).

Removing the whole package and calling go-selinux directly.
2022-02-11 15:20:35 +01:00
Kubernetes Prow Robot
8bae9bea45
Merge pull request #108059 from RaghavRoy145/k8s-utils-update
Vendor in k8s.io/utils Changes
2022-02-11 06:08:18 -08:00
Kubernetes Prow Robot
8472892a9e
Merge pull request #108054 from bobbypage/issue_107830
cluster/ - Configure containerd only if necessary
2022-02-11 06:07:05 -08:00
Antonio Ojea
60502c9b32 endpointslice: don't try to update topology cache if node informer error 2022-02-11 12:14:01 +01:00
David Hotham
62eb74880c
Completions for kubectl config delete-user 2022-02-11 10:06:26 +00:00
Kubernetes Prow Robot
49dc226381
Merge pull request #108020 from tossmilestone/remove-tolerate-unready-ep-annotation
Remove tolerate-unready-endpoints annotation
2022-02-11 01:40:04 -08:00
Kubernetes Prow Robot
f06baf9f36
Merge pull request #108053 from eddiezane/ez/update-kubectl-stack-log
Change level for klog.Fatal in kubectl
2022-02-11 00:36:04 -08:00
Antonio Ojea
5a20c425f2 apiserver: use endpoint lease reconciler as default
The apiserver owns and manages the kubernetes.default service.

It has 3 different options to reconcile the endpoints that belong to
that service:

- None: endpoints are handled by an external party.
- MasterCount: legacy, it reconciles based on the endpoints generated
and a flag specifying the number of master on the cluster.
- Lease: default since 1.11, each apiserver writes a lease in etcd
and renews periodically, the endpoints are generated based on the
existing leases.

It seems that when the default was set for the lease reconciler, the
controlplane code wasn't updated and kept using the master count
reconciler.

This also starts the deprecation of the master count reconciler in
favor of the lease reconciler.
2022-02-11 09:00:54 +01:00
Raghav Roy
e167d44a17 Updated k8s.io/utils dependency
Signed-off-by: Raghav Roy <raghavroy145@gmail.com>
2022-02-11 13:03:54 +05:30
Kubernetes Prow Robot
7cfe0ca828
Merge pull request #107774 from calvin0327/fix-data-race
fix: data race when hijack klog
2022-02-10 23:32:15 -08:00
Kubernetes Prow Robot
627465b3c1
Merge pull request #107650 from apelisse/update-managedfields-time-field-description
Update ManagedFields Time description to be more accurate
2022-02-10 23:32:03 -08:00
Kubernetes Prow Robot
bd6b5b1229
Merge pull request #108058 from verult/remove-owners
Remove verult from OWNERS files
2022-02-10 19:28:03 -08:00
Cheng Xing
b152fa9b6c Remove verult from OWNERS files 2022-02-10 18:25:38 -08:00
Mengjiao Liu
bc55118b5b Improve test coverage: add unit tests TestReadAtMost in pkg/util/tail 2022-02-11 10:20:42 +08:00
Kubernetes Prow Robot
438c3a51e6
Merge pull request #108055 from liggitt/api-compatibility
Catch unused API compatibility fixtures
2022-02-10 17:50:18 -08:00
Kubernetes Prow Robot
5a765040da
Merge pull request #107210 from jonyhy96/feat-pod-name-quota
feat: add container name when violate quota constraints
2022-02-10 14:59:17 -08:00
Jordan Liggitt
384ab8d53c Remove unused API compatibility fixture files 2022-02-10 17:40:51 -05:00
Jordan Liggitt
bd405cd8b0 Add check for unused API compatibility fixture files 2022-02-10 17:40:25 -05:00
David Porter
3281504a50 cluster/ - Configure containerd only if necessary
PR #107663 changed the startup logic to always call `SetupContainerd`
which will generate a new containerd `/etc/containerd/config.toml` file.

This is not always desired since some jobs install containerd from
source and the containerd startup scripts
(https://github.com/containerd/containerd/blob/main/contrib/gce/configure.sh)
are responsible for generating the `/etc/containerd/config.toml` file.
By always calling `SetupContainerd`, the containerd configuration by
containerd's `configure.sh` will be overridden which breaks certain test
jobs, see https://github.com/kubernetes/kubernetes/issues/107830.

To fix this issue, only call `SetupContainerd` if
`/etc/profile.d/containerd_env.sh` does not exist. When containerd
`configure.sh` script will run, `/etc/profile.d/containerd_env.sh` will
be written, and as a result the k8s setup scripts should avoid
overriding the containerd configuration.

Signed-off-by: David Porter <david@porter.me>
2022-02-10 14:24:14 -08:00
Jordan Liggitt
05bfa26791 Add hpa v2 compatibility fixtures 2022-02-10 17:23:46 -05:00
Kevin Klues
155562dd2e Fix bug in TopologyManager with merging hints when NUM_NUMA > 2
Before this fix, hint permutations such as:

	permutation: [{11 true} {0101 true}]

Could result in merged hints of:

	mergedHint: {01 true}

This was possible because both hints in the permutation container a "preferred"
allocation (i.e. the full set of NUMA nodes set in the affinity bitmask are
*required* to satisfy the allocation). With this in place, the simplified logic
we had simply kept the merged hint as preferred as well.

However, what we really want is to ensure that the merged hint is only
preferred if *true* alignment of all resources is possible (i.e. if all hints
in the permutation are preferred AND their affinities are exactly equal).

The only exception to this is if *no* topology information is provided by a
given hint provider. In this case, we assume alignment doesn't matter and only
consider the resources that actually have hints provided for them.

This changes the semantics of permutations of the form:

	permutation: [{111 true} {011 true}]

To now result in the merged hint of:

	mergedHint: {011 false}

Instead of:

	mergedHint: {011 true}

This is arguably how it should always have been though (because a hint should
not be preferred if true alignment isn't possible), and two tests have had to
change to accomodate these new semantics.

This commit changes the merge function to implement the updated logic, adds a
test to verify it is functioning correctly, and updates the two tests mentioned
above to adjust to the new semantics.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
2022-02-10 22:07:51 +00:00
Eddie Zaneski
cd71d3f788
Change level for klog.Fatal
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2022-02-10 14:43:19 -07:00
Antoine Pelisse
f19efa7391 Run hack/update-all.sh 2022-02-10 21:07:37 +00:00
Kubernetes Prow Robot
3866cb91f2
Merge pull request #107921 from mpuckett159/feature/show-ingress-class
Add Ingress Class to kubectl describe ingress output
2022-02-10 11:57:28 -08:00
Wojciech Tyczyński
7314286efd Fix validation of event updates 2022-02-10 20:01:45 +01:00
Kubernetes Prow Robot
542a979c03
Merge pull request #108029 from deads2k/just-runtimeconfig
update the --runtime-config handling to ensure that user preferences always take priority over hardcoded preferences
2022-02-10 10:15:57 -08:00
Kubernetes Prow Robot
973e77ceb1
Merge pull request #102330 from tnqn/replicaset-optimization
Add controllerUID index to improve ReplicaSetController performance
2022-02-10 10:15:46 -08:00
Kubernetes Prow Robot
56c5413dc6
Merge pull request #108039 from MadhavJivrajani/clusterscope-test-context
resttest: Modify TestContext to have namespace in context
2022-02-10 08:21:58 -08:00
Kubernetes Prow Robot
edd1f15c7c
Merge pull request #106279 from oomichi/add-note-vsphere
Add note for the deprecated vSphere 6.5
2022-02-10 08:21:47 -08:00
David Eads
41b2662bac update resourceconfig to have per-resource preferences take priority 2022-02-10 10:53:16 -05:00