Commit Graph
18 Commits
Author SHA1 Message Date
k8s-infra-cherrypick-robotandAlejandro Macedo d744e3fb92 Fix: Change "empty" definition for PodSecurity Admission configuration (#12477)
Fixes a bug where `kube-apiserver` fails to start if the PodSecurity
configuration file doesn't have the `apiVersion` and `kind` keys.

Signed-off-by: Alejandro Macedo <alex.macedopereira@gmail.com>
Co-authored-by: Alejandro Macedo <alex.macedopereira@gmail.com>
2025-08-19 03:45:36 -07:00
k8s-infra-cherrypick-robotandChad Swenson 6921b70a22 Add version pinning for AWS tf provider to fix CI (#12325)
Co-authored-by: Chad Swenson <chadswen@gmail.com>
2025-06-19 19:24:51 -07:00
k8s-infra-cherrypick-robotandDearJay 6f9d003999 fix manage-offline-container-images.sh get image_id (#12315)
Co-authored-by: DearJay <zhongtianjieyi143@gmail.com>
2025-06-15 08:00:57 -07:00
k8s-infra-cherrypick-robotandMax Gautier 0b2488dfaa Workaround missing etcd certds on control plane node (#12193)
Co-authored-by: Max Gautier <mg@max.gautier.name>
2025-05-06 09:15:14 -07:00
k8s-infra-cherrypick-robotanddarkobas 9a506636e3 fix: kubecontrollersconfigurations list permission (#12038)
[WARNING][1] kube-controllers/runconfig.go 193: unable to list KubeControllersConfiguration(default) error=connection is unauthorized: kubecontrollersconfigurations.crd.projectcalico.org "default" is forbidden: User "system:serviceaccount:kube-system:calico-kube-controllers" cannot list resource "kubecontrollersconfigurations" in API group "crd.projectcalico.org" at the cluster scope

Co-authored-by: darkobas <marko@datafund.io>
2025-03-15 09:15:47 -07:00
k8s-infra-cherrypick-robotandMax Gautier 184b15f8ae Revert "apiserver: fix incorrect path to admission plugins config files (#11779)" (#11811)
This reverts commit 742409e663.

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-12-18 18:10:10 +01:00
k8s-infra-cherrypick-robotandMax Gautier ee2d3916f2 apiserver: fix incorrect path to admission plugins config files (#11800)
Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-12-16 10:18:51 +01:00
k8s-infra-cherrypick-robotandMax Gautier 75e12e8981 containerd: add After=dbus.service (#11784)
This is needed for shutdown ordering: while at startup, it's not a
problem that containerd start before dbus (the dbus socket already
exists) it needs to shutdown before dbus to do its cleanup (asking
systemd via dbus to cleanup cgroups).

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-12-11 16:32:03 +00:00
k8s-infra-cherrypick-robotandMax Gautier b35a3ff924 Bump version of community.general (#11726)
We use the persistent option of modprobe, which was introduced in 7.0.0

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-11-18 14:00:53 +00:00
k8s-infra-cherrypick-robotandMax Gautier cd26b379fe Fix the pretty-printing of (core|nodelocal)dns (#11723)
When using
dns_upstream_forward_extra_opts:
  prefer_udp: "" # the option as no value so use empty string to just
                 # put the key

This is rendered in the dns configmap as ($ for end-of-line)

...
  prefer_udp $
...

Note the trailing space.
This triggers https://github.com/kubernetes/kubernetes/issues/36222,
which makes the configmap hardly readable when editing them manually or
simply putting them in a yaml file for inspection.

Trim the concatenation of option + value to get rid of any trailing
space.

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-11-18 08:12:54 +00:00
k8s-infra-cherrypick-robotandbo.jiang 0b9872cd27 fix task naming in bootstrap-os (#11719)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
Co-authored-by: bo.jiang <bo.jiang@daocloud.io>
2024-11-17 18:06:52 +00:00
k8s-infra-cherrypick-robotandMax Gautier 6b487d513e Include scripts and conf files in the ansible collection (#11717)
We use shell scripts and conf files in some roles (notably, certificates
provisioning), so we need to include them in order for the collection to
work when using the configurations depending on those roles.

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-11-16 20:36:52 +00:00
k8s-infra-cherrypick-robotandKubeKyrie 552c6bb975 update calico template (#11676)
Signed-off-by: KubeKyrie <shaolong.qin@daocloud.io>
Co-authored-by: KubeKyrie <shaolong.qin@daocloud.io>
2024-10-31 08:21:26 +00:00
k8s-infra-cherrypick-robotandChengHao Yang 5ad38a4d0d [release-2.26] Fix debian11-custom-cni failing test & upgrade debian12-custom-cni-helm chart version (#11658)
* Test: update custom_cni values

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Test: fix cilium require kube_owner set to root

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Test: update custom_cni render manifests

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Test: fix render template pre-commit

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Test: update debian12-custom-cni-helm chart version to 1.16.3

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

---------

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
Co-authored-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2024-10-25 03:08:51 +01:00
k8s-infra-cherrypick-robotandChengHao Yang 3f44293f69 Fix: cannot stop & remove all cri containers via remove_node.yml (#11637)
Before adding these changes, `ansible_facts.services["containerd.service"]` will not defined and fail to check for triggering the container stop and delete behaviors.

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
Co-authored-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2024-10-16 03:31:03 +01:00
k8s-infra-cherrypick-robotandMax Gautier 84324f50be Always copy cert generation scripts to first etcd (#11615)
If we don't, existing installation would not pick up fix to that script,
such as dc33a1971d.

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-10-09 12:52:23 +01:00
k8s-infra-cherrypick-robotandKay Yan 4577ee4a5d fix elastx cleanup security groups (#11536)
Co-authored-by: Kay Yan <kay.yan@daocloud.io>
2024-09-16 08:43:14 +01:00
k8s-infra-cherrypick-robotandMax Gautier d80686acb0 [release-2.26] Refactor and expand download_hash.py (#11538)
* download_hash.py: generalized and data-driven

The script is currently limited to one hardcoded URL for kubernetes
related binaries, and a fixed set of architectures.

The solution is three-fold:
1. Use an url template dictionary for each download -> this allow to easily
   add support for new downloads.
2. Source the architectures to search from the existing data
3. Enumerate the existing versions in the data and start searching from
   the last one until no newer version is found (newer in the version
   order sense, irrespective of actual age)

* download_hash.py: support for 'multi-hash' file + runc

runc upstream does not provide one hash file per assets in their
releases, but one file with all the hashes.
To handle this (and/or any arbitrary format from upstreams), add a
dictionary mapping the name of the download to a lambda function which
transform the file provided by upstream into a dictionary of hashes,
keyed by architecture.

* download_hash: argument handling with argparse

Allow the script to be called with a list of components, to only
download new versions checksums for those.
By default, we get new versions checksums for all supported (by the
script) components.

* download_hash: propagate new patch versions to all archs

* download_hash: add support for 'simple hash' components

* download_hash: support 'multi-hash' components

* download_hash: document missing support

* download_hash: use persistent session

This allows to reuse http connection and be more efficient.
From rough measuring it saves around 25-30% of execution time.

* download_hash: cache request for 'multi-hash' files

This avoid re-downloading the same file for different arch and
re-parsing it

* download_hash: document usage

---------

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-09-16 08:39:14 +01:00