Skip to content

Commit 8e04b30

Browse files
authored
Merge pull request #4661 from koooosh/develop
Re-add reserved pid settings migration + bump core-kit to 10.7.1
2 parents 713f44c + 41129d6 commit 8e04b30

File tree

7 files changed

+93
-50
lines changed

7 files changed

+93
-50
lines changed

Release.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "1.49.0"
1+
version = "1.50.0"
22

33
[migrations]
44
"(0.3.1, 0.3.2)" = ["migrate_v0.3.2_admin-container-v0-5-0.lz4"]
@@ -441,5 +441,7 @@ version = "1.49.0"
441441
"migrate_v1.47.0_container-runtime-concurrent-download-chunk-size.lz4",
442442
"migrate_v1.47.0_host-bootstrap-containers-command-setting.lz4"
443443
]
444-
"(1.47.0, 1.48.0)" = []
445444
"(1.48.0, 1.49.0)" = []
445+
"(1.49.0, 1.50.0)" = [
446+
"migrate_v1.50.0_kubernetes-reserved-pid-settings.lz4",
447+
]

Twoliter.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ digest = "hj2a36Z678mer4x3ItzVVqL4VZPVLvSG0mVI+kRqfNY="
1717

1818
[[kit]]
1919
name = "bottlerocket-core-kit"
20-
version = "10.6.0"
20+
version = "10.7.1"
2121
vendor = "bottlerocket"
22-
source = "public.ecr.aws/bottlerocket/bottlerocket-core-kit:v10.6.0"
23-
digest = "qHfA7kRBsSDPOvgQGOg5besQUmvPNaszPszMTZMjjHQ="
22+
source = "public.ecr.aws/bottlerocket/bottlerocket-core-kit:v10.7.1"
23+
digest = "0TTDnEa4cEzjiZfhCiqV/UQ6xC/dV+YFZ/Ytfo7KU5Y="

Twoliter.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
schema-version = 2
2-
release-version = "1.49.0"
2+
release-version = "1.50.0"
33
project-vendor = "Bottlerocket"
44

55
[vendor.bottlerocket]
@@ -17,5 +17,5 @@ vendor = "bottlerocket"
1717

1818
[[kit]]
1919
name = "bottlerocket-core-kit"
20-
version = "10.6.0"
20+
version = "10.7.1"
2121
vendor = "bottlerocket"

sources/Cargo.lock

Lines changed: 43 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sources/Cargo.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ members = [
4444
"settings-migrations/v1.46.0/kubernetes-static-pods-enabled-setting",
4545
"settings-migrations/v1.47.0/container-runtime-concurrent-download-chunk-size",
4646
"settings-migrations/v1.47.0/host-bootstrap-containers-command-setting",
47+
"settings-migrations/v1.50.0/kubernetes-reserved-pid-settings",
4748

4849
"settings-plugins/aws-dev",
4950
"settings-plugins/aws-ecs-2",
@@ -112,27 +113,27 @@ walkdir = "2"
112113

113114
[workspace.dependencies.bottlerocket-defaults-helper]
114115
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
115-
tag = "bottlerocket-settings-models-v0.15.0"
116+
tag = "bottlerocket-settings-models-v0.16.0"
116117
version = "0.1.1"
117118

118119
[workspace.dependencies.bottlerocket-modeled-types]
119120
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
120-
tag = "bottlerocket-settings-models-v0.15.0"
121-
version = "0.11.0"
121+
tag = "bottlerocket-settings-models-v0.16.0"
122+
version = "0.12.0"
122123

123124
[workspace.dependencies.bottlerocket-settings-models]
124125
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
125-
tag = "bottlerocket-settings-models-v0.15.0"
126-
version = "0.15.0"
126+
tag = "bottlerocket-settings-models-v0.16.0"
127+
version = "0.16.0"
127128

128129
[workspace.dependencies.bottlerocket-settings-plugin]
129130
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
130-
tag = "bottlerocket-settings-models-v0.15.0"
131+
tag = "bottlerocket-settings-models-v0.16.0"
131132
version = "0.1.0"
132133

133134
[workspace.dependencies.settings-extension-oci-defaults]
134135
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
135-
tag = "bottlerocket-settings-models-v0.15.0"
136+
tag = "bottlerocket-settings-models-v0.16.0"
136137
version = "0.1.0"
137138

138139
[profile.release]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "kubernetes-reserved-pid-settings"
3+
version = "0.1.0"
4+
authors = ["Kush Upadhyay <kushupad@amazon.com>"]
5+
license = "Apache-2.0 OR MIT"
6+
edition = "2021"
7+
publish = false
8+
# Don't rebuild crate just because of changes to README.
9+
exclude = ["README.md"]
10+
11+
[dependencies]
12+
migration-helpers.workspace = true
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
use migration_helpers::common_migrations::AddSettingsMigration;
2+
use migration_helpers::{migrate, Result};
3+
use std::process;
4+
5+
// We added new kubernetes settings to reserve pids for kubernetes and system components.
6+
fn run() -> Result<()> {
7+
migrate(AddSettingsMigration(&[
8+
"settings.kubernetes.kube-reserved.pid",
9+
"settings.kubernetes.system-reserved.pid",
10+
]))
11+
}
12+
13+
// Returning a Result from main makes it print a Debug representation of the error, but with Snafu
14+
// we have nice Display representations of the error, so we wrap "main" (run) and print any error.
15+
// https://github.com/shepmaster/snafu/issues/110
16+
fn main() {
17+
if let Err(e) = run() {
18+
eprintln!("{e}");
19+
process::exit(1);
20+
}
21+
}

0 commit comments

Comments
 (0)