Skip to content

Commit

Permalink
chore(deps): bump lens from v5.2.0 to v5.3.0 (#69)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
  • Loading branch information
danielpacak authored Feb 23, 2022
1 parent 9382df7 commit f183ac3
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 35 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ on:
- main
pull_request:

env:
NODE_VERSION: '12.x'

jobs:
build:
name: Build
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
matrix:
node: [ "12", "14" ]
steps:
- name: Checkout coce
uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
node-version: ${{ matrix.node }}
cache: "npm"
- name: Install npm dependencies and build extension
run: |
npm ci
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ on:
- "v*"

env:
NODE_VERSION: '12.x'
NODE_VERSION: "14"

jobs:
release:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://npm.pkg.github.com/aquasecurity'
scope: '@aquasecurity'
- name: Install dependencies and build extension
Expand All @@ -29,6 +29,7 @@ jobs:
- name: Create traball from package
run: npm pack
- name: Create GitHub release
# FIXME The https://github.com/actions/create-release action is unmaintained.
uses: actions/create-release@v1
id: create_release
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules/
dist/

.idea/

aquasecurity-starboard-lens-extension-*.tgz
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
starboard-lens-extension
Copyright 2019-2020 Aqua Security Software Ltd.
Copyright 2019-2022 Aqua Security Software Ltd.

This product includes software developed by Aqua Security (https://aquasec.com).
37 changes: 23 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ This guide shows how to install the extension either from pre-built binary relea
### Prerequisites

* Lens >= [4.0][min-lens] should first be [installed][lens-installation].
* Follow Starboard [Getting Started][starboard-getting-started] guide to understand how Starboard is
initialized and how it generates security reports, which are then stored as custom resources.
* Follow Starboard [Getting Started] guide to understand how Starboard is initialized and how it generates security
reports, which are then stored as custom resources.

### Compatibility Matrix

The following matrix indicates versions of this extension and compatible Lens releases.

| Lens | Extension |
|------|-----------|
| Lens | Extension |
|------|---------------------------------------------------------------------------------------|
| 5.2 | [0.2.0](https://github.com/aquasecurity/starboard-lens-extension/releases/tag/v0.2.0) |
| 5.0 | [0.1.0](https://github.com/aquasecurity/starboard-lens-extension/releases/tag/v0.1.0) |
| 4.0 | [0.0.2](https://github.com/aquasecurity/starboard-lens-extension/releases/tag/v0.0.2) |
Expand Down Expand Up @@ -54,19 +54,27 @@ downloaded and installed. Alternatively, you can copy the download URL of the re
Building from source is slightly more involved, but it's the best way to go if you want to test the latest (pre-release)
version of the extension.

You must have a working Node.js environment.
You must have a working [Node.js] environment.

1. Clone the source code to the `~/.k8slens/extensions/starboard-lens-extensions` directory and build the extension's package:
1. Clone the source code:
```
$ mkdir -p ~/.k8slens/extensions
$ git clone https://github.com/aquasecurity/starboard-lens-extension.git ~/.k8slens/extensions/starboard-lens-extension
$ cd ~/.k8slens/extensions/starboard-lens-extensions
$ npm install && npm run build
git clone https://github.com/aquasecurity/starboard-lens-extension.git
cd starboard-lens-extensions
```
2. Open Lens application and select **Lens** menu, and then click **Extensions** item, or press
2. Build the extension's package:
```
npm install && npm run build
```
3. Create a tarball from a package:
```
npm pack
```
This will create the `aquasecurity-starboard-lens-extension-$VERSION.tgz` tarball in the root directory.
4. Open Lens application and select **Lens** menu, and then click **Extensions** item, or press
<kbd>Shift</kbd> + <kbd>Command</kbd> + <kbd>E</kbd> to open the **Manage Lens Extensions** page.
3. If everything goes fine, you'll see the `@aquasecurity/starboard-lens-extension` extension listed under
**Installed Extensions**. Click **Enable** to enable it.
5. Specify the path the `aquasecurity-starboard-lens-extension-$VERSION.tgz` extension package and click **Install**.
6. If everything goes fine, you'll see the `@aquasecurity/starboard-lens-extension` extension listed under
**Installed Extensions**.
![](docs/images/extensions-ui-enable.png)

## Getting Started
Expand All @@ -85,7 +93,7 @@ You must have a working Node.js environment.
[lens]: https://github.com/lensapp/lens
[starboard]: https://github.com/aquasecurity/starboard
[starboard-crds]: https://aquasecurity.github.io/starboard/latest/crds/
[starboard-getting-started]: https://github.com/aquasecurity/starboard#getting-started
[Getting Started]: https://aquasecurity.github.io/starboard/latest/operator/getting-started/

[lens-installation]: https://github.com/lensapp/lens#installation
[lens-releases]: https://github.com/lensapp/lens/releases
Expand All @@ -99,3 +107,4 @@ You must have a working Node.js environment.
[license-img]: https://img.shields.io/github/license/aquasecurity/starboard-lens-extension

[min-lens]: https://github.com/lensapp/lens/releases/tag/v4.0.0
[Node.js]: https://nodejs.org/en/download/
Binary file modified docs/images/extensions-ui-enable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/extensions-ui-install.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aquasecurity/starboard-lens-extension",
"publisher": "aquasecurity.github.io",
"version": "0.4.0",
"version": "0.5.0",
"description": "Lens extension for viewing Starboard security information",
"homepage": "https://github.com/aquasecurity/starboard-lens-extension",
"repository": {
Expand All @@ -26,7 +26,7 @@
"@emotion/css": "^11.0.0",
"@emotion/react": "^11.1.0",
"@emotion/styled": "^11.0.0",
"@k8slens/extensions": "^5.2.0",
"@k8slens/extensions": "^5.3.0",
"@types/node": "^14.17.0",
"@types/react": "^17.0.0",
"@types/webpack": "^4.41.0",
Expand Down

0 comments on commit f183ac3

Please sign in to comment.