From 92d145b64f8792a485680549c1367528cd0486c7 Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Thu, 3 Nov 2022 15:30:38 -0400 Subject: [PATCH] Implement --from flag for installer (#116) This is a good bit more robust than the alternative, as it reduces the risk of getting tripped on a flaky unrelated app Co-authored-by: test --- Dockerfile | 2 +- lib/console/commands/plural.ex | 2 +- lib/console/deployer.ex | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 921b8e19f1..c616855328 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,7 +70,7 @@ ENV HELM_VERSION=v3.9.4 ENV TERRAFORM_VERSION=v1.2.8 # renovate: datasource=github-releases depName=pluralsh/plural-cli -ENV CLI_VERSION=v0.5.9 +ENV CLI_VERSION=v0.5.21 # renovate: datasource=github-tags depName=kubernetes/kubernetes ENV KUBECTL_VERSION=v1.24.3 diff --git a/lib/console/commands/plural.ex b/lib/console/commands/plural.ex index d1ce4a0c0d..a341fec6c7 100644 --- a/lib/console/commands/plural.ex +++ b/lib/console/commands/plural.ex @@ -13,7 +13,7 @@ defmodule Console.Commands.Plural do def deploy(_repo \\ :ignore), do: plural("deploy", ["--silence"]) - def install(), do: plural("deploy", ["--silence", "--ignore-console"]) + def install(repo), do: plural("deploy", ["--silence", "--ignore-console", "--from", repo]) def diff(_repo \\ :ignore), do: plural("diff", []) diff --git a/lib/console/deployer.ex b/lib/console/deployer.ex index a5802ff905..b97447446c 100644 --- a/lib/console/deployer.ex +++ b/lib/console/deployer.ex @@ -138,7 +138,7 @@ defmodule Console.Deployer do {storage, :init, []}, {Context, :merge, [conf, %Context.Bundle{repository: b["repository"], name: b["name"]}]}, {Plural, :build, []}, - {Plural, :install, []}, + {Plural, :install, [b["repository"]]}, {storage, :revise, [commit_message(message, b["repository"])]}, {storage, :push, []} ], storage)