2021-05-03 22:16:03 +08:00
|
|
|
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
|
|
|
kind: Plugin
|
|
|
|
metadata:
|
|
|
|
name: krew
|
|
|
|
spec:
|
|
|
|
version: "{{ krew_version }}"
|
|
|
|
homepage: https://krew.sigs.k8s.io/
|
|
|
|
shortDescription: Package manager for kubectl plugins.
|
|
|
|
caveats: |
|
|
|
|
krew is now installed! To start using kubectl plugins, you need to add
|
|
|
|
krew's installation directory to your PATH:
|
|
|
|
|
|
|
|
* macOS/Linux:
|
|
|
|
- Add the following to your ~/.bashrc or ~/.zshrc:
|
|
|
|
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
|
|
|
|
- Restart your shell.
|
|
|
|
|
|
|
|
* Windows: Add %USERPROFILE%\.krew\bin to your PATH environment variable
|
|
|
|
|
|
|
|
To list krew commands and to get help, run:
|
|
|
|
$ kubectl krew
|
|
|
|
For a full list of available plugins, run:
|
|
|
|
$ kubectl krew search
|
|
|
|
|
|
|
|
You can find documentation at
|
|
|
|
https://krew.sigs.k8s.io/docs/user-guide/quickstart/.
|
|
|
|
|
|
|
|
platforms:
|
2021-11-08 18:54:59 +08:00
|
|
|
- uri: https://github.com/kubernetes-sigs/krew/releases/download/{{ krew_version }}/krew-{{ host_os }}_{{ image_arch }}.tar.gz
|
2021-05-03 22:16:03 +08:00
|
|
|
sha256: {{ krew_archive_checksum }}
|
|
|
|
bin: krew
|
|
|
|
files:
|
|
|
|
- from: ./krew-darwin_amd64
|
|
|
|
to: krew
|
|
|
|
- from: ./LICENSE
|
|
|
|
to: .
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
os: darwin
|
|
|
|
arch: amd64
|
2021-11-08 18:54:59 +08:00
|
|
|
- uri: https://github.com/kubernetes-sigs/krew/releases/download/{{ krew_version }}/krew-{{ host_os }}_{{ image_arch }}.tar.gz
|
2021-05-03 22:16:03 +08:00
|
|
|
sha256: {{ krew_archive_checksum }}
|
|
|
|
bin: krew
|
|
|
|
files:
|
|
|
|
- from: ./krew-darwin_arm64
|
|
|
|
to: krew
|
|
|
|
- from: ./LICENSE
|
|
|
|
to: .
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
os: darwin
|
|
|
|
arch: arm64
|
2021-11-08 18:54:59 +08:00
|
|
|
- uri: https://github.com/kubernetes-sigs/krew/releases/download/{{ krew_version }}/krew-{{ host_os }}_{{ image_arch }}.tar.gz
|
2021-05-03 22:16:03 +08:00
|
|
|
sha256: {{ krew_archive_checksum }}
|
|
|
|
bin: krew
|
|
|
|
files:
|
|
|
|
- from: ./krew-linux_amd64
|
|
|
|
to: krew
|
|
|
|
- from: ./LICENSE
|
|
|
|
to: .
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
2021-11-08 18:54:59 +08:00
|
|
|
- uri: https://github.com/kubernetes-sigs/krew/releases/download/{{ krew_version }}/krew-{{ host_os }}_{{ image_arch }}.tar.gz
|
2021-05-03 22:16:03 +08:00
|
|
|
sha256: {{ krew_archive_checksum }}
|
|
|
|
bin: krew
|
|
|
|
files:
|
|
|
|
- from: ./krew-linux_arm
|
|
|
|
to: krew
|
|
|
|
- from: ./LICENSE
|
|
|
|
to: .
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
os: linux
|
|
|
|
arch: arm
|
2021-11-08 18:54:59 +08:00
|
|
|
- uri: https://github.com/kubernetes-sigs/krew/releases/download/{{ krew_version }}/krew-{{ host_os }}_{{ image_arch }}.tar.gz
|
2021-05-03 22:16:03 +08:00
|
|
|
sha256: {{ krew_archive_checksum }}
|
|
|
|
bin: krew
|
|
|
|
files:
|
|
|
|
- from: ./krew-linux_arm64
|
|
|
|
to: krew
|
|
|
|
- from: ./LICENSE
|
|
|
|
to: .
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
2021-11-08 18:54:59 +08:00
|
|
|
- uri: https://github.com/kubernetes-sigs/krew/releases/download/{{ krew_version }}/krew-{{ host_os }}_{{ image_arch }}.tar.gz
|
2021-05-03 22:16:03 +08:00
|
|
|
sha256: {{ krew_archive_checksum }}
|
|
|
|
bin: krew.exe
|
|
|
|
files:
|
|
|
|
- from: ./krew-windows_amd64.exe
|
|
|
|
to: krew.exe
|
|
|
|
- from: ./LICENSE
|
|
|
|
to: .
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
os: windows
|
|
|
|
arch: amd64
|