Commit Graph

111902 Commits

Author SHA1 Message Date
Alexander Zielenski
4e4d748c06 add UpgradeManagedFieldsPatch
rather than modify the object directly, this function provides a JSONPATCH that should be sent to the server to upgrade its managed fields.
2022-11-03 20:31:20 -07:00
Brian Pursley
09804a198c kubectl/pkg/cmd/run: deprecate flags
The --cascade flag, has no practical effect when used, so it is being deprecated.

The following flags, which are unused and ignored by kubectl run,
have been deprecated:

--filename
--force
--grace-period
--kustomize
--recursive
--timeout
--wait
2022-11-03 23:11:12 -04:00
Kubernetes Prow Robot
b0cbf71f5c
Merge pull request #113146 from alexzielenski/explain-output-plaintext
kubectl explain --output plaintext
2022-11-03 20:04:14 -07:00
Andrew Sy Kim
3c0b75f4ad apiserver identity: always use a unique value for the Lease holder identity
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-03 22:53:56 -04:00
Andrew Sy Kim
6925bee6d5 lease controller: add new constructor NewControllerWithLeaseName to support cases when the lease name and holder identity differ
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-03 22:53:56 -04:00
Andrew Sy Kim
f74f819e1a apiserver identity: update Lease creation integration test to validate new naming format and hostname label
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-03 22:53:56 -04:00
Andrew Sy Kim
21507902ba apiserver identity: use persistent identity format based on hostname
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-03 22:53:56 -04:00
cyclinder
4aff0dba0d
kube-proxy ipatbles: update log message 2022-11-04 10:07:15 +08:00
Alexander Zielenski
dca025f37c use discovery client from factory in explain v2
was making my own which was uncached
2022-11-03 18:59:42 -07:00
Kubernetes Prow Robot
208b2b7ca9
Merge pull request #113580 from mimowo/fix-disruption-controller-permissions
Fix disruption controller permissions to allow patching pod's status
2022-11-03 18:54:24 -07:00
Kubernetes Prow Robot
54d3de0850
Merge pull request #113562 from aojea/e2e_lb
e2e loadbalancer remove after each cleanup
2022-11-03 18:54:13 -07:00
David Ashpole
ed1610ad15
add otel tracing to latency filters 2022-11-04 01:19:55 +00:00
Alexander Zielenski
5002ba215b add OWNERS to csaupgrade 2022-11-03 17:39:34 -07:00
Andrew Sy Kim
9e24680d0b test/integration/endpointslice: remove references to EndpointSliceTerminatingCondition feature gate
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-03 20:26:51 -04:00
Andrew Sy Kim
5ca805fdee pkg/registry/discovery: remove references to EndpointSliceTerminatingCondition feature gate when dropping disabled fields
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-03 20:26:51 -04:00
Andrew Sy Kim
e282b6c6b3 pkg/controller/endpointslice: remove all references to the EndpointSliceTerminatingCondition feature gate
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-03 20:26:51 -04:00
Andrew Sy Kim
219300c26b k8s.io/api/discovery: remove API docs referencing EndpointSliceTerminatingCondition feature gate
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-03 20:16:20 -04:00
Andrew Sy Kim
c11368cb93 promote EndpointSliceTerminatingCondition feature gate to GA
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2022-11-03 20:16:20 -04:00
Kubernetes Prow Robot
d86c013b0d
Merge pull request #108250 from cyclinder/add_flag_in_proxy
kube-proxy:  add a flag  to  disable nodePortOnLocalhost
2022-11-03 17:10:13 -07:00
Han Kang
dfff6e4364 update documentation for metrics with deprecated version and version of k8s
Change-Id: Ia04d21f6644e7fc498304c0035d6f1ae58766a91
2022-11-03 14:57:57 -07:00
Kubernetes Prow Robot
7a46516369
Merge pull request #113496 from avoltz/anvoltz/ga-itr
Promote ServiceInternalTrafficPolicy to GA
2022-11-03 14:50:26 -07:00
Kubernetes Prow Robot
d96e052d98
Merge pull request #109505 from zigarn/no-error-reannotate
Do not raise an error proposing to use '--overwrite' when annotating with the same value
2022-11-03 14:50:15 -07:00
Wei Huang
fc831d7088
Automated codegen 2022-11-03 14:32:35 -07:00
Wei Huang
7b6293b6b6
APIs, Validation and condition enforcements
- New API field .spec.schedulingGates
- Validation and drop disabled fields
- Disallow binding a Pod carrying non-nil schedulingGates
- Disallow creating a Pod with non-nil nodeName and non-nil schedulingGates
- Adds a {type:PodScheduled, reason:WaitingForGates} condition if necessary
- New literal SchedulingGated in the STATUS column of `k get pod`
2022-11-03 14:32:34 -07:00
Mark Rossetti
a7bafa1361
CRI-API updates for windows host networking
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-11-03 14:07:17 -07:00
Mark Rossetti
c916f1a0eb
Adding WindowsHostNetwork feature gate
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-11-03 13:47:30 -07:00
Kubernetes Prow Robot
d62cc3dc6d
Merge pull request #113511 from xing-yang/node_shutdown_beta
Move non-graceful node shutdown to beta
2022-11-03 13:38:13 -07:00
Moshe Levi
c337d7b6f9 fix local-up-cluster.sh to run on other arch than amd64
tested on arm64

Signed-off-by: Moshe Levi <moshele@nvidia.com>
2022-11-03 21:39:09 +02:00
Alexander Zielenski
0c055eae3c remove kubectl annotation logic from upgrade patch
adds unneccessary complexity. also discussed in SIG CLI meeting to keep annotation around for a while longer
2022-11-03 12:07:11 -07:00
Kubernetes Prow Robot
a27a323419
Merge pull request #113535 from kidddddddddddddddddddddd/strict_serializer_audit
Log a warning when dropping unknown fields from loading an audit policy
2022-11-03 11:52:12 -07:00
Kubernetes Prow Robot
50a4dd85ff
Merge pull request #110754 from jsturtevant/cri-stats-windows
CRI: Add Windows Podsandbox Stats
2022-11-03 11:52:05 -07:00
Mike Spreitzer
114f276d68 Handle nil case correctly
Also add test for that case and another.
2022-11-03 11:50:56 -07:00
Mark Rossetti
81e7c9bca0
e2e - use resource-consumer:1.13
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
2022-11-03 11:21:18 -07:00
Mike Spreitzer
4ad1c0f9cb apiserver: remove redundant field from seatDemandStats 2022-11-03 10:41:50 -07:00
Walter Fender
99156b5bdc Turn on CCM in kube-up when cloudprovider=external
Currently if we disable cloud provider by the following
CLOUD_PROVIDER_FLAG=external
KUBE_FEATURE_GATES=DisableCloudProviders=true,DisableKubeletCloudCredentialProviders=true
we can no longer schedule workloads due to taints and a lack of
node configuration.
This pulls a CCM image from K/cloud-provider-gcp to run tests.
This is a pre-step for taking the above feature gates to beta.
It does not address the last known good dependency issue.
Specifically the CCM image is built on top of client-go and staging.
However this image will be an "old" verison of those libraries.
So it does not test if those libraries work in the CCM.

Fix shellcheck errors.
Add CCM_FEATURE_GATES for testing.
Switching to extended regex from perl regex.
Adding instrumentation to cluster configuration.
Improved regex to not greedily get key-value pairs.
Fixed issue with error on regex no line match.
Switch credentialprovider version to v1alpha1
2022-11-03 10:38:23 -07:00
Mike Spreitzer
ba5ec78916 apiserver: define metrics for API Priority and Fairness borrowing 2022-11-03 10:37:20 -07:00
Kubernetes Prow Robot
3b6b8f9101
Merge pull request #113560 from logicalhan/refactor-stability
refactor static analysis code for stability framework
2022-11-03 10:31:37 -07:00
Andy Voltz
29f4862ed8 Promote ServiceInternalTrafficPolicy to GA 2022-11-03 13:17:03 -04:00
Jan Safranek
6d810f2cd4 Add unit tests 2022-11-03 17:54:58 +01:00
James Sturtevant
295a9753a1 Add Windows Podsandbox Stats
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2022-11-03 16:33:02 +00:00
Kubernetes Prow Robot
d802bd56ac
Merge pull request #113559 from wojtek-t/clean_shutdown_5
Clean shutdown of few more integration tests
2022-11-03 09:01:45 -07:00
Kubernetes Prow Robot
38bcc0c153
Merge pull request #113519 from xing-yang/node_shutdown_metrics
Add metric deleting_pods_total
2022-11-03 09:01:37 -07:00
Jan Safranek
3a79466ddd Reshuffle functions between reconstruct and reconstruc_common
Move common functions to reconstruc_common.go and functions used only for
the current (old) reconstruction to reconstruct.go
2022-11-03 16:55:13 +01:00
Jan Safranek
44b72d0348 Move new reconciler logic into reconciler_new.go
Move reconciler logic from reconstruct{new}.go to:
- reconciler.go - only the functionality used by the current (old)
  reconciler.
- reconciler_new.go - only the functionality used by the new reconciler.
- reconciler_common.go - common functions.
2022-11-03 16:55:13 +01:00
Jan Safranek
fc245b339b Refactor ConstructVolumeSpec
Return a struct from ConstructVolumeSpec to be able to add more fields to
it later.
2022-11-03 16:55:13 +01:00
Jan Safranek
2dc8cc13a4 Remove SyncReconstructedVolume call
With the new reconstruction, AWS.MarkVolumeAsMounted will update outer spec
name with the correct value from Pod.
2022-11-03 16:55:12 +01:00
Jan Safranek
e0f3e5c457 Rework volume reconstruction
Subsequent SELinux work (see http://kep.k8s.io/1710) will need
ActualStateOfWorld populated around the time kubelet starts mounting
volumes.

Therefore reconstruct volumes before starting reconciler, but do not depend
on the desired state of world populated nor node.status - both need a
working API server, which may not be available at that time.

All reconstructed volumes are marked as Uncertain and reconciler will sort
them out - call SetUp to ensure the volume is really mounted when a pod
needs the volume or call TearDown then there is no such pod.

Finish the reconstruction when the API server becomes available:
- Clean up volumes that failed reconstruction and are not needed.

- Update devicePath of reconstructed volumes from node.status. Make sure
  not to overwrite devicePath that may have been updated when the volume
  was mounted by reconcile().

Hiding all this rework behind SELinuxMountReadWriteOncePod FeatureGate,
just to make sure we have a way back if this commit is buggy.
2022-11-03 16:55:12 +01:00
Kubernetes Prow Robot
f536b3cc4f
Merge pull request #113555 from wojtek-t/refactor_storage_tests_5
Refactor storage tests - part 5
2022-11-03 06:59:35 -07:00
Kubernetes Prow Robot
c98aef484d
Merge pull request #112895 from nokia/kep-1435-GA
KEP-1435 Mixed Protocol values in LoadBalancer Service GA
2022-11-03 05:43:35 -07:00
Kubernetes Prow Robot
4086b45af3
Merge pull request #110618 from saschagrunert/v1alpha2-removal
Remove CRI v1alpha2
2022-11-03 03:55:35 -07:00