-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add url to vendor the current agent chart
This will allow users to not have to manually vendor this in airgapped environments, dramatically simplifying e2e setup. Will need to follow-on with some terraform provider/cli changes as well.
- Loading branch information
1 parent
fb79b5f
commit 5879bbf
Showing
9 changed files
with
47 additions
and
4 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
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,21 @@ | ||
defmodule Mix.Tasks.Agent.Chart do | ||
use Mix.Task | ||
alias Console.Deployments.Settings | ||
|
||
@deps ~w(logger req)a | ||
|
||
def run(_) do | ||
Enum.each(@deps, &Application.ensure_all_started/1) | ||
Logger.configure(level: :error) | ||
|
||
file = Settings.agent_chart() | ||
|
||
Settings.agent_vsn() | ||
|> String.trim_leading("v") | ||
|> agent_chart_url() | ||
|> Req.get!(into: File.stream!(file)) | ||
end | ||
|
||
defp agent_chart_url(vsn), | ||
do: "https://github.com/pluralsh/deployment-operator/releases/download/agent-v#{vsn}/deployment-operator-#{vsn}.tgz" | ||
end |
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
Binary file not shown.
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