Skip to content

Commit

Permalink
Update snap pack
Browse files Browse the repository at this point in the history
Signed-off-by: Hollow Man <[email protected]>
  • Loading branch information
HollowMan6 committed Apr 17, 2023
1 parent 0bbdadc commit ad03809
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ yay -S kubescape
[Instructions for package managers](https://software.opensuse.org/download.html?project=home%3Akubescape&package=kubescape)

### [Snap](snap)
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/cli-kubescape)

> Note: If installed using snap, the executable is called `cli-kubescape` and not `kubescape`.
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/kubescape)

```bash
sudo snap install cli-kubescape --classic
sudo snap install kubescape --classic
```

### Manually
Expand Down
9 changes: 4 additions & 5 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: cli-kubescape
name: kubescape
base: core22
version: '2.2.6'
summary: "Kubernetes security platform for your IDE, CI/CD pipelines, and clusters."
description: |
**Usage**: `$ cli-kubescape scan --enable-host-scan --verbose`
**Usage**: `$ kubescape scan --enable-host-scan --verbose`
Learn more at: https://github.com/kubescape/kubescape/blob/master/docs/getting-started.md#run-your-first-scan
Expand Down Expand Up @@ -82,19 +82,18 @@ parts:
exit 1; \
fi
$EXEC completion bash > ${SNAPCRAFT_PART_INSTALL}/${SNAPCRAFT_PROJECT_NAME}.completer
sed -i s/kubescape/${SNAPCRAFT_PROJECT_NAME}/g ${SNAPCRAFT_PART_INSTALL}/${SNAPCRAFT_PROJECT_NAME}.completer
cd ${SNAPCRAFT_PART_BUILD}
rm -rf ${SNAPCRAFT_STAGE}/${SNAPCRAFT_PROJECT_NAME}
# # snap connect cli-kubescape:kubenetes-config
# # snap connect kubescape:kubenetes-config
# plugs:
# kubenetes-config:
# interface: personal-files
# read:
# - $HOME/.kube

apps:
cli-kubescape:
kubescape:
command: ${SNAPCRAFT_PROJECT_NAME}
completer: ${SNAPCRAFT_PROJECT_NAME}.completer
# plugs:
Expand Down

0 comments on commit ad03809

Please sign in to comment.