feat(release): include plugin completion in release artifact

This commit is contained in:
RouxAntoine 2024-12-22 15:22:29 +01:00
parent 26fcbbc13c
commit b246c5a2f2
No known key found for this signature in database
GPG Key ID: 098FB66FC0475E70
4 changed files with 111 additions and 35 deletions

View File

@ -74,7 +74,7 @@ archives:
format_overrides:
- goos: windows
format: zip
files: ["LICENSE"]
files: ["LICENSE", "completion/plugins/kubectl_complete-ctx"]
- id: kubens-archive
name_template: |-
kubens_{{ .Tag }}_{{ .Os }}_
@ -94,7 +94,7 @@ archives:
format_overrides:
- goos: windows
format: zip
files: ["LICENSE"]
files: ["LICENSE", "completion/plugins/kubectl_complete-ns"]
checksum:
name_template: "checksums.txt"
algorithm: sha256

View File

@ -5,7 +5,7 @@ manually install kubectx and kubens from manifest file
this add autocomplete plugin capabilities
```shell
$ kubectl krew install --manifest=ns.yaml
$ kubectl krew install --manifest=ctx.yaml
$ kubectl krew install --manifest=krew/ctx.yaml
$ kubectl krew install --manifest=krew/ns.yaml
```

View File

@ -16,20 +16,58 @@ spec:
See https://github.com/RouxAntoine/kubectx for customization and details.
platforms:
- selector:
matchExpressions:
- key: os
operator: In
values:
- darwin
- linux
uri: https://github.com/ahmetb/RouxAntoine/archive/v0.9.5-1.tar.gz
sha256: c94392fba8dfc5c8075161246749ef71c18f45da82759084664eb96027970004
matchLabels:
os: linux
arch: amd64
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_linux_x86_64.tar.gz
sha256:
bin: kubectx
files:
- from: kubectx-*/kubectx
to: .
- from: kubectx-*/LICENSE
to: .
- from: kubectx-*/completion/plugins/kubectl_complete-ctx
to: completion
- from: kubectx
to: .
- from: LICENSE
to: .
- from: completion/plugins/kubectl_complete-ctx
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

View File

@ -15,20 +15,58 @@ spec:
as you type.
platforms:
- selector:
matchExpressions:
- key: os
operator: In
values:
- darwin
- linux
uri: https://github.com/RouxAntoine/kubectx/archive/v0.9.5-1.tar.gz
sha256: c94392fba8dfc5c8075161246749ef71c18f45da82759084664eb96027970004
bin: kubens
matchLabels:
os: linux
arch: amd64
uri: https://github.com/RouxAntoine/kubectx/releases/download/v0.9.5-1/kubectx_v0.9.5-1_linux_x86_64.tar.gz
sha256:
bin: kubectx
files:
- from: kubectx-*/kubens
to: .
- from: kubectx-*/LICENSE
to: .
- from: kubectx-*/completion/plugins/kubectl_complete-ns
to: completion
- from: kubens
to: .
- from: LICENSE
to: .
- from: completion/plugins/kubectl_complete-ns
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