parent
c1a943a639
commit
c31a48fbee
|
|
@ -1,5 +1,5 @@
|
||||||
name: k9s
|
name: k9s
|
||||||
base: core20
|
base: core22
|
||||||
version: 'v0.32.3'
|
version: 'v0.32.3'
|
||||||
summary: K9s is a CLI to view and manage your Kubernetes clusters.
|
summary: K9s is a CLI to view and manage your Kubernetes clusters.
|
||||||
description: |
|
description: |
|
||||||
|
|
@ -14,33 +14,21 @@ architectures:
|
||||||
- armhf
|
- armhf
|
||||||
- i386
|
- i386
|
||||||
|
|
||||||
plugs:
|
|
||||||
kube-config:
|
|
||||||
interface: personal-files
|
|
||||||
read:
|
|
||||||
- $HOME/.kube/config
|
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
k9s:
|
k9s:
|
||||||
command: bin/k9s
|
command: bin/k9s
|
||||||
plugs:
|
|
||||||
- network
|
|
||||||
- network-bind
|
|
||||||
- home
|
|
||||||
- kube-config
|
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
build:
|
build:
|
||||||
plugins: go
|
plugin: go
|
||||||
source: https://github.com/derailed/k9s.git
|
source: https://github.com/derailed/k9s
|
||||||
|
source-type: git
|
||||||
source-tag: $SNAPCRAFT_PROJECT_VERSION
|
source-tag: $SNAPCRAFT_PROJECT_VERSION
|
||||||
override-build: |
|
override-build: |
|
||||||
make test
|
make test
|
||||||
make build
|
make build
|
||||||
install $SNAPCRAFT_PART_BUILD/execs/k9s -D $SNAPCRAFT_PART_INSTALL/bin/k9s
|
install $SNAPCRAFT_PART_BUILD/execs/k9s -D $SNAPCRAFT_PART_INSTALL/bin/k9s
|
||||||
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
|
|
||||||
if [ ! -e $SNAPCRAFT_PART_INSTALL/bin/k9s ]; then
|
|
||||||
ln -s $SNAPCRAFT_PART_INSTALL/bin/k9s $SNAPCRAFT_PART_INSTALL/bin/k9s
|
|
||||||
fi
|
|
||||||
build-packages:
|
build-packages:
|
||||||
- build-essential
|
- build-essential
|
||||||
|
build-snaps:
|
||||||
|
- go
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue