Skip to content
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

Installation via WinGet #968

Closed
Bjego opened this issue Oct 29, 2020 · 3 comments
Closed

Installation via WinGet #968

Bjego opened this issue Oct 29, 2020 · 3 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@Bjego
Copy link

Bjego commented Oct 29, 2020

What would you like to be added:
Hey guys, it would be great, if I could install kubectl via WinGet (instead of Scoop or chocolatey) as winget is going to be the official windows based package manager in the future.

Why is this needed:
Win-Get is going to be the official package manager for windows OS. From a corporate perspective it will be much easier to argue for the official packagemanager as for 3rd party software installation sources like choco or scoop.

Why is it better:
Winget is based on simple YAML files to install you software. You do not need to bundle the application in a nuget-package. This makes shipping much easier. It's just an YAML update.

https://docs.microsoft.com/en-us/windows/package-manager/package/repository

@Bjego Bjego added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 29, 2020
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Oct 29, 2020
@k8s-ci-robot
Copy link
Contributor

@Bjego: This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@eddiezane
Copy link
Member

Package managers are out of scope as the org just provides binaries and we rely on the community to handle distribution.

Personally - I took a look at adding it but it seems that WinGet doesn't yet support standalone executables. Tracking at microsoft/winget-cli#182.

Here's the manifest for when that lands.

# winget-pkgs/manifests/kubernetes/kubectl/1.19.3.yaml
Id: kubernetes.kubectl
Version: 1.19.3
Name: kubectl
Publisher: kubernetes
License: Apache-2.0
Tags: k8s, kubernetes, kubectl
Description: The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs.
Homepage: https://github.com/kubernetes/kubectl
Installers:
  - Arch: x64
    Url: https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/windows/amd64/kubectl.exe
    # https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/windows/amd64/kubectl.exe.sha256
    Sha256: a7711a95d3084ccc69bca17ad1360465c19a26c7bc1980538e7e9fe85875624a
    InstallerType: exe
  - Arch: x86
    Url: https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/windows/386/kubectl.exe
    # https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/windows/386/kubectl.exe.sha256
    Sha256: 6dee847e49d8420aa9b48054fd076f34b99a9f1c9d1cd6e9a6131591f36d820a
    InstallerType: exe

/close

@k8s-ci-robot
Copy link
Contributor

@eddiezane: Closing this issue.

In response to this:

Package managers are out of scope as the org just provides binaries and we rely on the community to handle distribution.

Personally - I took a look at adding it but it seems that WinGet doesn't yet support standalone executables. Tracking at microsoft/winget-cli#182.

Here's the manifest for when that lands.

# winget-pkgs/manifests/kubernetes/kubectl/1.19.3.yaml
Id: kubernetes.kubectl
Version: 1.19.3
Name: kubectl
Publisher: kubernetes
License: Apache-2.0
Tags: k8s, kubernetes, kubectl
Description: The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs.
Homepage: https://github.com/kubernetes/kubectl
Installers:
 - Arch: x64
   Url: https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/windows/amd64/kubectl.exe
   # https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/windows/amd64/kubectl.exe.sha256
   Sha256: a7711a95d3084ccc69bca17ad1360465c19a26c7bc1980538e7e9fe85875624a
   InstallerType: exe
 - Arch: x86
   Url: https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/windows/386/kubectl.exe
   # https://storage.googleapis.com/kubernetes-release/release/v1.19.3/bin/windows/386/kubectl.exe.sha256
   Sha256: 6dee847e49d8420aa9b48054fd076f34b99a9f1c9d1cd6e9a6131591f36d820a
   InstallerType: exe

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants