mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-08-18 07:16:53 +00:00
feat(release): include plugin completion in release artifact
This commit is contained in:
parent
26fcbbc13c
commit
b246c5a2f2
@ -74,7 +74,7 @@ archives:
|
|||||||
format_overrides:
|
format_overrides:
|
||||||
- goos: windows
|
- goos: windows
|
||||||
format: zip
|
format: zip
|
||||||
files: ["LICENSE"]
|
files: ["LICENSE", "completion/plugins/kubectl_complete-ctx"]
|
||||||
- id: kubens-archive
|
- id: kubens-archive
|
||||||
name_template: |-
|
name_template: |-
|
||||||
kubens_{{ .Tag }}_{{ .Os }}_
|
kubens_{{ .Tag }}_{{ .Os }}_
|
||||||
@ -94,7 +94,7 @@ archives:
|
|||||||
format_overrides:
|
format_overrides:
|
||||||
- goos: windows
|
- goos: windows
|
||||||
format: zip
|
format: zip
|
||||||
files: ["LICENSE"]
|
files: ["LICENSE", "completion/plugins/kubectl_complete-ns"]
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "checksums.txt"
|
name_template: "checksums.txt"
|
||||||
algorithm: sha256
|
algorithm: sha256
|
||||||
|
@ -5,7 +5,7 @@ manually install kubectx and kubens from manifest file
|
|||||||
this add autocomplete plugin capabilities
|
this add autocomplete plugin capabilities
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ kubectl krew install --manifest=ns.yaml
|
$ kubectl krew install --manifest=krew/ctx.yaml
|
||||||
$ kubectl krew install --manifest=ctx.yaml
|
$ kubectl krew install --manifest=krew/ns.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -16,20 +16,58 @@ spec:
|
|||||||
See https://github.com/RouxAntoine/kubectx for customization and details.
|
See https://github.com/RouxAntoine/kubectx for customization and details.
|
||||||
platforms:
|
platforms:
|
||||||
- selector:
|
- selector:
|
||||||
matchExpressions:
|
matchLabels:
|
||||||
- key: os
|
os: linux
|
||||||
operator: In
|
arch: amd64
|
||||||
values:
|
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_linux_x86_64.tar.gz
|
||||||
- darwin
|
sha256:
|
||||||
- linux
|
|
||||||
uri: https://github.com/ahmetb/RouxAntoine/archive/v0.9.5-1.tar.gz
|
|
||||||
sha256: c94392fba8dfc5c8075161246749ef71c18f45da82759084664eb96027970004
|
|
||||||
bin: kubectx
|
bin: kubectx
|
||||||
files:
|
files:
|
||||||
- from: kubectx-*/kubectx
|
- from: kubectx
|
||||||
to: .
|
to: .
|
||||||
- from: kubectx-*/LICENSE
|
- from: LICENSE
|
||||||
to: .
|
to: .
|
||||||
- from: kubectx-*/completion/plugins/kubectl_complete-ctx
|
- from: completion/plugins/kubectl_complete-ctx
|
||||||
to: completion
|
to: completion
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_linux_arm64.tar.gz
|
||||||
|
sha256:
|
||||||
|
bin: kubectx
|
||||||
|
files:
|
||||||
|
- from: kubectx
|
||||||
|
to: .
|
||||||
|
- from: LICENSE
|
||||||
|
to: .
|
||||||
|
- from: completion/plugins/kubectl_complete-ctx
|
||||||
|
to: completion
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: darwin
|
||||||
|
arch: amd64
|
||||||
|
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_darwin_x86_64.tar.gz
|
||||||
|
sha256:
|
||||||
|
bin: kubectx
|
||||||
|
files:
|
||||||
|
- from: kubectx
|
||||||
|
to: .
|
||||||
|
- from: LICENSE
|
||||||
|
to: .
|
||||||
|
- from: completion/plugins/kubectl_complete-ctx
|
||||||
|
to: completion
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: darwin
|
||||||
|
arch: arm64
|
||||||
|
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_darwin_arm64.tar.gz
|
||||||
|
sha256:
|
||||||
|
bin: kubectx
|
||||||
|
files:
|
||||||
|
- from: kubectx
|
||||||
|
to: .
|
||||||
|
- from: LICENSE
|
||||||
|
to: .
|
||||||
|
- from: completion/plugins/kubectl_complete-ctx
|
||||||
|
to: completion
|
||||||
|
70
krew/ns.yaml
70
krew/ns.yaml
@ -15,20 +15,58 @@ spec:
|
|||||||
as you type.
|
as you type.
|
||||||
platforms:
|
platforms:
|
||||||
- selector:
|
- selector:
|
||||||
matchExpressions:
|
matchLabels:
|
||||||
- key: os
|
os: linux
|
||||||
operator: In
|
arch: amd64
|
||||||
values:
|
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_linux_x86_64.tar.gz
|
||||||
- darwin
|
sha256:
|
||||||
- linux
|
bin: kubectx
|
||||||
uri: https://github.com/RouxAntoine/kubectx/archive/v0.9.5-1.tar.gz
|
|
||||||
sha256: c94392fba8dfc5c8075161246749ef71c18f45da82759084664eb96027970004
|
|
||||||
bin: kubens
|
|
||||||
files:
|
files:
|
||||||
- from: kubectx-*/kubens
|
- from: kubens
|
||||||
to: .
|
to: .
|
||||||
- from: kubectx-*/LICENSE
|
- from: LICENSE
|
||||||
to: .
|
to: .
|
||||||
- from: kubectx-*/completion/plugins/kubectl_complete-ns
|
- from: completion/plugins/kubectl_complete-ns
|
||||||
to: completion
|
to: completion
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_linux_arm64.tar.gz
|
||||||
|
sha256:
|
||||||
|
bin: kubectx
|
||||||
|
files:
|
||||||
|
- from: kubens
|
||||||
|
to: .
|
||||||
|
- from: LICENSE
|
||||||
|
to: .
|
||||||
|
- from: completion/plugins/kubectl_complete-ns
|
||||||
|
to: completion
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: darwin
|
||||||
|
arch: amd64
|
||||||
|
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_darwin_x86_64.tar.gz
|
||||||
|
sha256:
|
||||||
|
bin: kubectx
|
||||||
|
files:
|
||||||
|
- from: kubens
|
||||||
|
to: .
|
||||||
|
- from: LICENSE
|
||||||
|
to: .
|
||||||
|
- from: completion/plugins/kubectl_complete-ns
|
||||||
|
to: completion
|
||||||
|
- selector:
|
||||||
|
matchLabels:
|
||||||
|
os: darwin
|
||||||
|
arch: arm64
|
||||||
|
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_darwin_arm64.tar.gz
|
||||||
|
sha256:
|
||||||
|
bin: kubectx
|
||||||
|
files:
|
||||||
|
- from: kubens
|
||||||
|
to: .
|
||||||
|
- from: LICENSE
|
||||||
|
to: .
|
||||||
|
- from: completion/plugins/kubectl_complete-ns
|
||||||
|
to: completion
|
||||||
|
Loading…
Reference in New Issue
Block a user