-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Linkerd CLI Chocolatey Package #3921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
| <metadata> | ||
| <id>linkerd2-cli</id> | ||
| <version>2.6.1</version> | ||
|
|
||
| <title>linkerd2-cli (Install)</title> | ||
| <authors>__REPLACE_AUTHORS_OF_SOFTWARE_COMMA_SEPARATED__</authors> | ||
| <tags>linkerd2-cli SPACE_SEPARATED</tags> | ||
| <summary>__REPLACE__</summary> | ||
| <description>__REPLACE__MarkDown_Okay </description> | ||
| <dependencies> | ||
| <dependency id="chocolatey-core.extension" version="1.1.0" /> | ||
| </dependencies> | ||
| </metadata> | ||
|
|
||
| <files> | ||
| <file src="tools\**" target="tools" /> | ||
| </files> | ||
| </package> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| | ||
| Note: Include this file if including binaries you have the right to distribute. | ||
| Otherwise delete. this file. | ||
|
|
||
| ===DELETE ABOVE THIS LINE AND THIS LINE=== | ||
|
|
||
| From: <insert applicable license url here> | ||
|
|
||
| LICENSE | ||
|
|
||
| <Insert License Here> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| | ||
| Note: Include this file if including binaries you have the right to distribute. | ||
| Otherwise delete. this file. If you are the software author, you can change this | ||
| mention you are the author of the software. | ||
|
|
||
| ===DELETE ABOVE THIS LINE AND THIS LINE=== | ||
|
|
||
| VERIFICATION | ||
| Verification is intended to assist the Chocolatey moderators and community | ||
| in verifying that this package's contents are trustworthy. | ||
|
|
||
| <Include details of how to verify checksum contents> | ||
| <If software vendor, explain that here - checksum verification instructions are optional> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| $ErrorActionPreference = 'Stop'; | ||
| $toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
|
|
||
| $packageArgs = @{ | ||
|
|
||
| packageName = 'linkerd' | ||
| fileFullPath = "$toolsPath\linkerd.exe" | ||
| url = 'https://github.com/linkerd/linkerd2/releases/download/stable-2.6.1/linkerd2-cli-stable-2.6.1-windows.exe' | ||
|
ihcsim marked this conversation as resolved.
|
||
| checksum = '4ed915b10c2a76070d40bf3223f09e742777105914acaeadfc83d99ef6cf1798' | ||
| checksumType = 'sha256' | ||
| } | ||
|
|
||
| Get-ChocolateyWebFile @packageArgs | ||
| Install-ChocolateyPath $packageArgs.fileFullPath 'Machine' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIUC, this adds the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah! that's a good catch. Thanks for pointing that out :) Will look into and modify the script to allow for use without admin privileges. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe if you use the That zip is a file with an
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah! That's a interesting way to do it. Although currently Linkerd doesn't make a zip folder for the windows package. Will look into this to find analogous ways for how it currently is (if any). Thank you for suggesting this :) |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to set this value from an env var so that user can decide where to download the
.exeto?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, if required the script can also accept command line arguments for the path. Should I accommodate for that as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better! Thanks!