Add support for the kubectl plugin package manager krew (#454)
https://krew.sigs.k8s.io/
This commit is contained in:
@@ -67,6 +67,7 @@ pub enum Step {
|
|||||||
Gem,
|
Gem,
|
||||||
Node,
|
Node,
|
||||||
Composer,
|
Composer,
|
||||||
|
Krew,
|
||||||
Sdkman,
|
Sdkman,
|
||||||
Remotes,
|
Remotes,
|
||||||
Rustup,
|
Rustup,
|
||||||
|
|||||||
@@ -332,6 +332,10 @@ fn run() -> Result<()> {
|
|||||||
runner.execute("composer", || generic::run_composer_update(&ctx))?;
|
runner.execute("composer", || generic::run_composer_update(&ctx))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if config.should_run(Step::Krew) {
|
||||||
|
runner.execute("krew", || generic::run_krew_upgrade(run_type))?;
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(not(any(
|
#[cfg(not(any(
|
||||||
target_os = "freebsd",
|
target_os = "freebsd",
|
||||||
target_os = "openbsd",
|
target_os = "openbsd",
|
||||||
|
|||||||
@@ -79,6 +79,14 @@ pub fn run_rustup(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
|
|||||||
run_type.execute(&rustup).arg("update").check_run()
|
run_type.execute(&rustup).arg("update").check_run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn run_krew_upgrade(run_type: RunType) -> Result<()> {
|
||||||
|
let krew = utils::require("kubectl-krew")?;
|
||||||
|
|
||||||
|
print_separator("Krew");
|
||||||
|
|
||||||
|
run_type.execute(&krew).args(&["upgrade"]).check_run()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn run_jetpack(run_type: RunType) -> Result<()> {
|
pub fn run_jetpack(run_type: RunType) -> Result<()> {
|
||||||
let jetpack = utils::require("jetpack")?;
|
let jetpack = utils::require("jetpack")?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user