-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3828 from jmt-lab/jmt/ootb/pluto
Jmt/ootb/pluto
- Loading branch information
Showing
17 changed files
with
415 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Unit] | ||
Description=Generate additional settings for Kubernetes | ||
After=network-online.target apiserver.service sundog.service | ||
Requires=sundog.service | ||
# We don't want to restart the unit if the network goes offline or apiserver restarts | ||
Wants=network-online.target apiserver.service | ||
# Block manual interactions with this service, since it could leave the system in additional | ||
# unexpected state | ||
RefuseManualStart=true | ||
RefuseManualStop=true | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStartPre=/usr/bin/settings-committer | ||
ExecStart=/usr/bin/pluto | ||
RemainAfterExit=true | ||
StandardError=journal+console | ||
|
||
[Install] | ||
RequiredBy=preconfigured.target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
sources/api/migration/migrations/v1.21.0/pluto-remove-generators-v0-1-0/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[package] | ||
name = "pluto-remove-generators-v0-1-0" | ||
version = "0.1.0" | ||
authors = ["Jarrett Tierney <jmt@amazon.com>"] | ||
license = "Apache-2.0 OR MIT" | ||
edition = "2021" | ||
publish = false | ||
exclude = ["README.md"] | ||
|
||
[dependencies] | ||
migration-helpers = { path = "../../../migration-helpers", version = "0.1.0" } |
33 changes: 33 additions & 0 deletions
33
sources/api/migration/migrations/v1.21.0/pluto-remove-generators-v0-1-0/src/main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
use migration_helpers::common_migrations::{RemoveMetadataMigration, SettingMetadata}; | ||
use migration_helpers::{migrate, Result}; | ||
use std::process; | ||
fn run() -> Result<()> { | ||
migrate(RemoveMetadataMigration(&[ | ||
SettingMetadata { | ||
setting: "settings.kubernetes.max-pods", | ||
metadata: &["setting-generator"], | ||
}, | ||
SettingMetadata { | ||
setting: "settings.kubernetes.cluster-dns-ip", | ||
metadata: &["setting-generator"], | ||
}, | ||
SettingMetadata { | ||
setting: "settings.kubernetes.node-ip", | ||
metadata: &["setting-generator"], | ||
}, | ||
SettingMetadata { | ||
setting: "settings.kubernetes.provider-id", | ||
metadata: &["setting-generator"], | ||
}, | ||
SettingMetadata { | ||
setting: "settings.kubernetes.hostname-override", | ||
metadata: &["setting-generator"], | ||
}, | ||
])) | ||
} | ||
fn main() { | ||
if let Err(e) = run() { | ||
eprintln!("{}", e); | ||
process::exit(1); | ||
} | ||
} |
Oops, something went wrong.