Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UPDATE] naijabx/update-formula-homebrew-action verion to 1.1 #39

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-homebrew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo ::set-output name=sha::"$(shasum -a 256 ./levis-${{ steps.latest_tag.outputs.tag }}-macos-x64.tar.gz | awk '{printf $1}')"

- name: Update levis homebrew formula
uses: naijabx/update-formula-homebrew-action@v1
uses: naijabx/update-formula-homebrew-action@v1.1
with:
repo: kubeopsskills/levis
tap: kubeopsskills/homebrew-levis
Expand Down
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
This is an project built with ❤️ by [KubeOps Skills](https://www.kubeops.guru). We encourage you to [try it out](#getting-started), [leave feedback](#help--feedback), and [jump in to help](#contributing)!

### Contents

- [Levis](#levis)
- [Kubernetes Manifest Generator](#kubernetes-manifest-generator)
- [Contents](#contents)
Expand All @@ -23,16 +24,21 @@ This is an project built with ❤️ by [KubeOps Skills](https://www.kubeops.gur
- [License](#license)

## Versioning
| Levis Release |cdk8s Version | construct Version | log4js Version | minimist Version | yaml Version |
|----------------|------------ |---------------------|----------------------|------------------|------------------|
| 1.4.0-beta| 0.30.0 | 3.0.14 | 6.3.0 | 1.2.5 | 2.0.0-6 |

| Levis Release | cdk8s Version | construct Version | log4js Version | minimist Version | yaml Version |
| ------------- | ------------- | ----------------- | -------------- | ---------------- | ------------ |
| 1.4.0-beta | 0.30.0 | 3.0.14 | 6.3.0 | 1.2.5 | 2.0.0-6 |

## Getting Started

### Installation

Levis is available on Linux, macOS and Windows platforms.

- Binaries for Linux, Windows and Mac are available as tarballs in the [release](https://github.com/kubeopsskills/levis/releases) page.

- macOS with homebrew

```bash
# Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Expand All @@ -44,24 +50,30 @@ Levis is available on Linux, macOS and Windows platforms.
```

### Develop

- must install [nodejs](https://nodejs.org/en/) and [yarn](https://classic.yarnpkg.com/lang/en/docs/install/)
- use `yarn` for installing dependencies
- use `yarn test` for run unit test with jest
- use `yarn test:re-snapshot` for update jest snapshot for unit test

### Usage

after install levis you can use

- `levis create -f <levis-config.yaml> -o <output.yaml>`
- **-f** levis config yaml see [Examples Directory](./examples)
- **-o** name of kubernetes config generated from levis
- **-v** log level
- 1 for info (default)
- 2 for debug
- 1 for info (default)
- 2 for debug

## Help & Feedback

Interacting with the community and the development team is a great way to
contribute to the project. Please consider the following venues (in order):

* Search [open issues](https://github.com/kubeopsskills/levis/issues)
* Slack: #project channel in [levis](https://levis-k8s.slack.com)
- Search [open issues](https://github.com/kubeopsskills/levis/issues)
- Slack: #project channel in [levis](https://levis-k8s.slack.com)

## Examples

Expand Down
27 changes: 26 additions & 1 deletion __snapshots__/main.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

exports[`MicroServiceChart should be can generate 1`] = `
Array [
Object {
"apiVersion": "v1",
"kind": "Service",
"metadata": Object {
"annotations": Object {
"app": "nginx",
},
"labels": Object {
"app": "nginx",
},
"name": "nginx",
"namespace": "kubeops",
},
"spec": Object {
"ports": Object {
"name": "nginx",
"nodePort": 30090,
"port": 80,
"targetPort": 80,
},
"selector": Object {
"app": "nginx",
},
"type": "ClusterIP",
},
},
Object {
"apiVersion": "apps/v1",
"kind": "Deployment",
Expand Down Expand Up @@ -40,7 +66,6 @@ Array [
},
},
"spec": Object {
"affinity": Object {},
"containers": Array [
Object {
"env": Array [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"watch": "tsc -w --outDir bin/dev",
"clean": "rm -rf bin manifests dist",
"test": "jest",
"test:re-snapshot": "jest --updateSnapshot",
"build-all": "yarn run clean && yarn run build",
"lint": "eslint . --ext .ts",
"start": "node bin/main.js"
Expand Down