Commit Graph

122207 Commits

Author SHA1 Message Date
Cici Huang
3d89672476 Adding the feature gates to fix cost for VAP and webhook matchConditions. 2024-05-13 17:34:08 +00:00
Gabe
b762a187f4 cherry pick #124618 to 1.30 2024-05-13 11:04:47 +00:00
Filip Křepinský
1c8b0f697c fix requests tracker concurrency 2024-05-13 11:11:59 +02:00
Filip Křepinský
2956e294c4 fix conflict race in statefulset rest update
statefulset controller does less requests per sync now and thus can
reconcile status faster, thus resulting in a higher chance for conflicts
2024-05-13 11:11:59 +02:00
Filip Křepinský
7d9b913d10 fix stateful set pod recreation and event spam
- do not emit events when pod reaches terminal phase
- do not try to recreate pod until the old pod has been removed from
  etcd storage
2024-05-13 11:11:58 +02:00
Filip Křepinský
a58d4f54cf fix pods tracking and internal error checking in statefulset tests 2024-05-13 11:11:58 +02:00
cpanato
f20b6672b8
[go] Bump images, dependencies and versions to go 1.22.3 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-05-12 15:30:58 +02:00
Kubernetes Prow Robot
7cf91cf387
Merge pull request #124794 from jsafrane/1.30-pvlabel-cleanup
1.30: Clean up PersistentVolumeLabel admission plugin
2024-05-11 16:56:16 -07:00
Taehoon Yoon
d8c37e8153 Updated & added visibility to apiserver x509 test certificates expiring this year 2024-05-11 01:18:51 +00:00
Kubernetes Prow Robot
7d9aab80e6
Merge pull request #124415 from pohly/automated-cherry-pick-of-#124289-origin-release-1.30
Automated cherry pick of #124289: e2e node: fix -v support
2024-05-10 16:26:03 -07:00
Jan Safranek
ad1353499e Clean up PersistentVolumeLabel admission plugin
Azure and vSphere cloud providers were removed in v1.30. Remove their usage
from PersistentVolumeLabel admission plugin, otherwise the admission plugin
refuses creation of in-tree AzureDisk or vSphere volume.
2024-05-10 14:24:29 +02:00
Kubernetes Prow Robot
4183998aa0
Merge pull request #124753 from sanposhiho/automated-cherry-pick-of-#124714-upstream-release-1.30
Automated cherry pick of #124714: scheduler: preallocation for NodeToStatusMap
2024-05-10 01:15:15 -07:00
Kubernetes Prow Robot
6c9d03c1b9
Merge pull request #124702 from aojea/automated-cherry-pick-of-#124572-upstream-release-1.30
Automated cherry pick of #124572: tag TrafficDistribution tests to avoid running on
2024-05-10 01:15:06 -07:00
Kubernetes Prow Robot
630266c3cc
Merge pull request #124570 from neolit123/automated-cherry-pick-of-#124503-origin-release-1.30
Automated cherry pick of #124503: kubeadm: check for available nodes during 'CreateJob'
2024-05-10 01:14:57 -07:00
Kubernetes Prow Robot
65921f4ea1
Merge pull request #124497 from neolit123/automated-cherry-pick-of-#124480-origin-release-1.30
Automated cherry pick of #124480: kubeadm: fix bug of kubeletconfig not being downloaded on
2024-05-10 01:14:48 -07:00
Kubernetes Prow Robot
80932fe95b
Merge pull request #124694 from pmalek/backport-124553-to-release-1.30
[backport release-1.30]: fix(api): make LocalObjectReference.Name and HostAlias.IP required (#124553)
2024-05-10 00:00:28 -07:00
Kensei Nakada
42742942f5 scheduler: preallocation for NodeToStatusMap 2024-05-08 13:06:43 +00:00
Antonio Ojea
d17cd6ef75 tag service.spec.TrafficDistribution field as alpha 2024-05-06 12:22:12 +00:00
Antonio Ojea
d379535362 tag TrafficDistribution tests to avoid running on clusters without the feature enabled 2024-05-06 12:22:12 +00:00
Patryk Małek
37e7cbdd3a
fix(api): make LocalObjectReference.Name and HostAlias.IP required (#124553)
* fix(api): LocalObjectReference Name a "" default and make HostAlias.IP required

* chore(api): add LocalObjectReference comment

* chore(api): add omitempty to LocalObjectReference's Name

* chore(api): add kubebuilder:default annotation

* chore(api): ./hack/update-codegen.sh
2024-05-04 21:43:21 +02:00
Lubomir I. Ivanov
1410806d2a kubeadm: check for available nodes during 'CreateJob' preflight
Instead of erroring during the preflight check 'CreateJob'
from "upgrade" commands when there are no schedulable nodes,
show a warning.

This can happen in single node clusters.

Also increase the Job TTL after completion to 20 seconds
to make sure it's more than the timeout what waits
for the Job to complete.
2024-04-26 20:00:56 +03:00
Kubernetes Prow Robot
43a0480e94
Merge pull request #124517 from wojtek-t/automated-cherry-pick-of-#124352-upstream-release-1.30
Automated cherry pick of #124352: Idempotent transformers in scheduler & kcm
2024-04-25 02:58:26 -07:00
Wojciech Tyczyński
e1594967bb Idempotent transformers in scheduler & kcm 2024-04-24 21:57:15 +02:00
Lubomir I. Ivanov
dabc4428f2 kubeadm: fix bug of kubeletconfig not being downloaded on upgrade
During upgrade apply we had logic to download the kubelet and
kubeproxy configs from the cluster as part of the call to:
  FetchInitConfigurationFromCluster()

With the introduction of UpgradeConfiguration there was
some refactor in this area and the function no longer
had the argument skipComponentConfigs set to false.

It is set to 'true', an InitConfiguration is downloaded
but it would contain empty / defaulted component configs.

- Set the argument to 'false'
- Perform minor cleanup of STDOUT messages and comments.
that were missed in 1.30.
2024-04-24 10:36:25 +03:00
Patrick Ohly
7e5e4c3f61 e2e framework: configure Ginkgo logger and klog consistently
Even if the textlogger which writes to Ginkgo is installed as the logger in
klog, klog still does some verbosity checks itself (for example,
klog.V().Enabled).

Therefore the framework has to keep the verbosity settings in the textlogger
and in klog consistent. This is done by wrapping the Set call instead of
replacing it.
2024-04-19 18:27:56 +02:00
Patrick Ohly
6bb6b07b18 e2e node: fix -v support
Since 43539c855f (first released in
v1.30.0-alpha.2), the test/e2e/framework manages -v and -vmodule and uses them
for a logger which writes to the Ginkgo output stream.

This did not work for test/e2e_node, because:
- logs.AddFlags(pflag.CommandLine) registers its own -v and -vmodule flags
- pflag.CommandLine.AddGoFlagSet(flag.CommandLine) skips the corresponding
  flags in the flag.CommandLine
- pflag.Parse() initializes the settings in the "logs" package even though
  those are not used at runtime

The solution is to not use the "logs" package.
2024-04-19 18:27:56 +02:00
Kubernetes Prow Robot
e7178656ad
Merge pull request #124371 from soltysh/automated-cherry-pick-of-#123893-#124193-upstream-release-1.30
Automated cherry pick of #123893: kube_codegen: expose applyconfig-openapi-schema flag for
#124193: Update applyconfig-gen for pacakges where group and dir
2024-04-19 04:49:27 -07:00
Maciej Szulik
4d1dd9cd07
Update applyconfig-gen for pacakges where group and dir differ in name
It is possible that package paths might differ from the group name, see
https://github.com/openshift/api/blob/master/operatorcontrolplane/v1alpha1/doc.go
notice that pacakge name is `operatorcontrolplane` whereas the group is
`controlplane.operator...`. This confuses the generator since it tries
to extrapolate the name of the package based on the group name. Whereas
the ImportTracker can properly recognize the import path. This leads to
cyclical imports in packages where the group name is different from the
actual import path.
2024-04-18 14:22:46 +02:00
Maciej Szulik
933272d333
kube_codegen: expose applyconfig-openapi-schema flag for client generation 2024-04-18 14:22:45 +02:00
Kubernetes Release Robot
502d9434a4 Update CHANGELOG/CHANGELOG-1.30.md for v1.30.0 2024-04-17 17:56:15 +00:00
Kubernetes Release Robot
7c48c2bd72 Release commit for Kubernetes v1.30.0 2024-04-17 17:27:02 +00:00
Kubernetes Release Robot
a2b4393c75 Merge remote-tracking branch 'origin/master' into release-1.30 2024-04-16 19:55:16 +00:00
Kubernetes Release Robot
69e332560d CHANGELOG: Update directory for v1.27.13 release 2024-04-16 15:20:21 +00:00
Kubernetes Release Robot
f0317549a2 Merge remote-tracking branch 'origin/master' into release-1.30 2024-04-15 19:53:04 +00:00
Kubernetes Prow Robot
b722d017a3
Merge pull request #124322 from ritazh/admission-ephemeralcontainers-envfrom
Add envFrom to serviceaccount admission plugin
2024-04-15 09:16:32 -07:00
Rita Zhang
128d6cc146
Add envFrom to serviceaccount admission plugin
Signed-off-by: Rita Zhang <rita.z.zhang@gmail.com>
2024-04-12 10:49:30 -07:00
Kubernetes Release Robot
698ad6630c Merge remote-tracking branch 'origin/master' into release-1.30 2024-04-12 07:49:28 +00:00
Kubernetes Prow Robot
cae35dba5a
Merge pull request #124283 from dims/rename-cluster-to-storage_cluster_id-for-apiserver_storage_size_bytes-metric
Rename Label `cluster` to `storage_cluster_id` for apiserver_storage_size_bytes metric
2024-04-12 00:13:00 -07:00
Kubernetes Release Robot
2ab0d15788 Merge remote-tracking branch 'origin/master' into release-1.30 2024-04-12 01:46:03 +00:00
Davanum Srinivas
fb5140f562
Rename cluster to storage_cluster_id for apiserver_storage_size_bytes metric
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-04-11 17:15:32 -04:00
Kubernetes Release Robot
d51a005d25 Update CHANGELOG/CHANGELOG-1.30.md for v1.30.0-rc.2 2024-04-11 17:05:58 +00:00
Kubernetes Release Robot
7606cf7b3d CHANGELOG: Update directory for v1.30.0-rc.2 release 2024-04-11 17:05:57 +00:00
Kubernetes Release Robot
22140b6a07 Release commit for Kubernetes v1.30.0-rc.2 2024-04-11 16:36:57 +00:00
Kubernetes Release Robot
794aa6eda9 Merge remote-tracking branch 'origin/master' into release-1.30 2024-04-10 19:46:14 +00:00
Maksym Pavlenko
be4b7176dc
Fix Abs path validation on Windows (#124084)
* Windows: Consider slash-prefixed paths as absolute

filepath.IsAbs does not consider "/" or "\" as absolute paths, even
though files can be addressed as such. [1][2]

Currently, there are some unit tests that are failing on Windows due to
this reason.

[1] https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#traditional-dos-paths
[2] https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#fully-qualified-vs-relative-paths

* Add test to verify IsAbs for windows

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>

* Fix abs path validation on windows

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>

* Skipp path clean check for podLogDir on windows

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>

* Implement IsPathClean to validate path

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>

* Add warn comment for IsAbs

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>

---------

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
Co-authored-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
2024-04-10 10:13:59 -07:00
Kubernetes Release Robot
e34cbc16e2 Merge remote-tracking branch 'origin/master' into release-1.30 2024-04-07 07:41:39 +00:00
Kubernetes Prow Robot
9791f0d1f3
Merge pull request #124206 from cpanato/update-rules
Update publishing-bot rules to Go 1.21.9
2024-04-06 19:52:22 -07:00
cpanato
d19bff9a02
Update publishing-bot rules to Go 1.21.9
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-04-06 12:34:48 +02:00
Kubernetes Release Robot
255e7919bc Merge remote-tracking branch 'origin/master' into release-1.30 2024-04-05 19:39:51 +00:00
Kubernetes Prow Robot
f8930f980d
Merge pull request #124196 from cpanato/update-go-main
[go] Bump images, dependencies and versions to go 1.22.2 and distroless iptables
2024-04-05 07:30:42 -07:00