1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-17 07:30:01 +00:00
Commit Graph

2214 Commits

Author SHA1 Message Date
Jiaqi Luo
3957fcc9c2 Merge pull request #3599 from jiaqiluo/fix-kubeapi-env-15 2024-06-07 10:09:54 -07:00
Jiaqi Luo
d639082218 Avoid allocating empty strings in the Env slice
Previously, we declared the Env slice with the size of the `c.Services.KubeAPI.ExtraEnv` field, which leads to empty strings at the beginning of the Env slice because we use Golang's append function to add new elements, and Docker is not happy with that.
We fix this issue by declaring the Env variable as an empty slice. We also enhance the `getUniqStringList` function to properly trim leading and trailing spaces in each element and to ignore empty strings. We add unit tests for the `getUniqStringList` function and update the integration tests.
2024-06-07 09:33:55 -07:00
Sergey Nasovich
fda0cc543d Update CODEOWNERS 2024-05-31 15:47:42 -04:00
Jiaqi Luo
8714c3c06e Merge pull request #3586 from jiaqiluo/15-swtich-kdm 2024-05-13 14:19:32 -07:00
Jiaqi Luo
0595d1b767 update readme 2024-05-13 12:58:01 -07:00
Jiaqi Luo
0b010a221a switch KDM branch to dev-v2.8 2024-05-13 12:56:22 -07:00
Jiaqi Luo
08e8d6dddf Merge pull request #3582 from jiaqiluo/15-prepare-release v1.5.9 2024-05-13 12:22:57 -07:00
Jiaqi Luo
32d83fa02b go generate 2024-05-13 11:38:43 -07:00
Jiaqi Luo
64b1f219ff switch KDM branch to release-v2.8 2024-05-13 11:38:14 -07:00
Chirayu Kapoor
3f3725e0a2 Merge pull request #3566 from chiukapoor/fix-containerd-1.5 2024-04-29 11:44:38 +05:30
Chirayu Kapoor
85578dad3a go mod tidy
Signed-off-by: Chirayu Kapoor <chirayu.kapoor@suse.com>
2024-04-24 17:00:48 +05:30
Chirayu Kapoor
08342901fa chore: Bump containerd to v1.6.27
Signed-off-by: Chirayu Kapoor <chirayu.kapoor@suse.com>
2024-04-24 17:00:17 +05:30
Jiaqi Luo
4943768ea8 Merge pull request #3563 from rancher/githubaction-go-generate-2024-04-23-17-13-18 v1.5.9-rc2 2024-04-23 10:51:19 -07:00
github-actions[bot]
255a3bec6b go generate 2024-04-23 17:13:18 +00:00
Jiaqi Luo
9632a7c7bf Merge pull request #3547 from jiaqiluo/fix-kube-apiserver v1.5.9-rc1 2024-04-11 10:16:06 -07:00
Jiaqi Luo
31c8dc4534 Merge pull request #3554 from rancher/githubaction-go-generate-2024-04-10-22-17-07 2024-04-10 21:38:08 -07:00
github-actions[bot]
28f58231b3 go generate 2024-04-10 22:17:07 +00:00
Jiaqi Luo
9281aba2f2 Merge pull request #3552 from jiaqiluo/update-readme 2024-04-10 15:04:13 -07:00
Jiaqi Luo
52e35c21a8 update latest versions in readme 2024-04-10 13:59:40 -07:00
Jiaqi Luo
2e767c8c28 This PR fixes the issue that kube-apiserver does not restart in all CP nodes after changing the Pod Security Admission Configuration.
A new environment variable RKE_ADMISSION_CONFIG_CHECKSUM whose value is the checksum of the content of the admission configuration file is added to the env list that is set in the `kube-apiserver` container configuration, so any changes in the admission configuration file will result in a change in the container's configuration. RKE will detect the changes during reconciliation and therefore restart the kube-apiserver container on all CP nodes. The upgrade cadence is thresholded by the upgrade strategy in the cluster.

This PR also drops the unnecessary appending of env var to the cluster object which shows in the cluster.rkestate file.

Signed-off-by: Jiaqi Luo <6218999+jiaqiluo@users.noreply.github.com>
2024-04-09 14:24:17 -07:00
Chirayu Kapoor
6e75b3536c Merge pull request #3546 from chiukapoor/docker-1.25
[release/v1.5] Vendor KDM data
2024-04-09 10:16:19 +05:30
Chirayu Kapoor
4aa1f211cd go generate
Signed-off-by: Chirayu Kapoor <chirayu.kapoor@suse.com>
2024-04-05 10:47:21 +05:30
Jiaqi Luo
3b5fd33f25 Merge pull request #3542 from jiaqiluo/change-kdm v1.5.7 2024-03-27 12:09:55 -07:00
Jiaqi Luo
ebde95b72a switch KDM branch to release-v2.8 2024-03-27 11:42:24 -07:00
Jiaqi Luo
2710ae50cf Merge pull request #3541 from rancher/githubaction-go-generate-2024-03-27-18-01-35 2024-03-27 11:25:59 -07:00
github-actions[bot]
f7659b23f1 go generate 2024-03-27 18:01:35 +00:00
Jiaqi Luo
2689e5b061 Merge pull request #3537 from jiaqiluo/revert-fix-kube-apiserver v1.5.7-rc5 2024-03-22 08:55:50 -07:00
Jiaqi Luo
312f5ee285 Revert "Merge pull request #3531 from jiaqiluo/fix-kube-apiserver"
This reverts commit 5e050c58a9, reversing
changes made to 1951add95d.
2024-03-21 20:11:03 -07:00
Jiaqi Luo
5e050c58a9 Merge pull request #3531 from jiaqiluo/fix-kube-apiserver v1.5.7-rc4 2024-03-21 11:42:49 -07:00
Jiaqi Luo
1951add95d Merge pull request #3533 from rancher/githubaction-go-generate-2024-03-14-15-59-52 2024-03-14 14:22:07 -07:00
github-actions[bot]
970ee5f387 go generate 2024-03-14 15:59:52 +00:00
Jiaqi Luo
6dff99618c This PR fixes the issue that kube-apiserver does not restart in all CP nodes after changing the Pod Security Admission Configuration.
A new environment variable RKE_ADMISSION_CONFIG_CHECKSUM whose value is the checksum of the content of the admission configuration file is added to the env list that is set in the `kube-apiserver` container configuration, so any changes in the admission configuration file will result in a change in the container's configuration. RKE will detect the changes during reconciliation and therefore restart the kube-apiserver container on all CP nodes. The upgrade cadence is thresholded by the upgrade strategy in the cluster.

This PR also drops the unnecessary appending of env var to the cluster object which shows in the cluster.rkestate file.

Signed-off-by: Jiaqi Luo <6218999+jiaqiluo@users.noreply.github.com>
2024-03-13 18:10:58 -07:00
Jiaqi Luo
5340d4bf47 Merge pull request #3526 from thatmidwesterncoder/backport_v1.5.6 2024-03-11 17:15:50 -07:00
Jiaqi Luo
e5d8572fa1 Merge pull request #3528 from thatmidwesterncoder/update_readme_with_latest 2024-03-11 16:48:06 -07:00
Jiaqi Luo
0b2083ae12 Merge pull request #3530 from rancher/githubaction-go-generate-2024-03-11-23-12-15 2024-03-11 16:47:48 -07:00
github-actions[bot]
0e7fdcc6ae go generate 2024-03-11 23:12:15 +00:00
Jacob Lindgren
7a26bd8ed6 remove v1.3 line from readme 2024-03-08 15:06:14 -06:00
Jacob Lindgren
b7b3ae3042 Update README with latest versions 2024-03-08 11:46:51 -06:00
Jacob Lindgren
e03db6243a go generate 2024-03-07 17:36:35 -06:00
Jacob Lindgren
74b34e9219 Merge branch 'release/v1.5.6' into backport_v1.5.6 2024-03-07 17:35:34 -06:00
Jacob Lindgren
f6b2f21c1d Merge pull request #3525 from thatmidwesterncoder/release_1.5.6
[1.5.6] Feb 2024 patches: Release 1.5.6
v1.5.6
2024-03-07 16:56:31 -06:00
Jacob Lindgren
9f4cbb0f97 Point KDM at release URL 2024-03-07 15:58:46 -06:00
Chirayu Kapoor
aabab81e5f Merge pull request #3520 from chiukapoor/1.5.6-go-generate
[v1.5.6] go generate
v1.5.6-rc3
2024-03-07 18:51:58 +05:30
Chirayu Kapoor
c86c1fe31a go generate
Signed-off-by: Chirayu Kapoor <chirayu.kapoor@suse.com>
2024-03-07 17:58:06 +05:30
Chirayu Kapoor
8ce10247a8 Merge pull request #3514 from noironetworks/aci-6041-rke-1.5.6
[v1.5] Add ACI CNI 6.0.4.1 variables
v1.5.6-rc2
2024-03-06 22:34:09 +05:30
Jiaqi Luo
0185aa2d18 Merge pull request #3517 from rancher/githubaction-go-generate-2024-03-06-05-04-12 2024-03-06 09:47:12 -07:00
JeffinKottaram
f48c854b4c go generate 2024-03-05 23:28:32 -08:00
github-actions[bot]
bf92f0b753 go generate 2024-03-06 05:04:12 +00:00
Jiaqi Luo
9a498c6fe5 Merge pull request #3511 from jiaqiluo/fix-node-drain v1.5.7-rc3 2024-03-01 15:04:30 -07:00
Jiaqi Luo
e8aea49eec Merge pull request #3513 from rancher/githubaction-go-generate-2024-03-01-04-43-50 2024-03-01 12:20:44 -07:00