generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from gyohuangxin/define_component
Add SMPModel in /templates/meshmodel
- Loading branch information
Showing
16 changed files
with
89 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Layer5 Community Code of Conduct | ||
# Meshery Community Code of Conduct | ||
|
||
The Layer5 community follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). | ||
The Meshery community follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting community@layer5.io. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,3 @@ | ||
# <a name="contributing">Contributing Overview</a> | ||
Please do! Thanks for your help improving the project! :balloon: | ||
# Contributing to Meshery | ||
|
||
All contributors are welcome. Please see the [newcomers welcome guide](https://docs.google.com/document/d/17OPtDE_rdnPQxmk2Kauhm3GwXF1R5dZ3Cj8qZLKdo5E/edit) for how, where and why to contribute. This project is community-built and welcomes collaboration. Contributors are expected to adhere to our [Code of Conduct](.CODE_OF_CONDUCT.md). | ||
|
||
Not sure where to start? First, see the [newcomers welcome guide](https://docs.google.com/document/d/17OPtDE_rdnPQxmk2Kauhm3GwXF1R5dZ3Cj8qZLKdo5E/edit). Grab an open issue with the [help-wanted label](../../labels/help%20wanted) and jump in. Join the [Slack account](http://slack.layer5.io) and engage in conversation. Create a [new issue](/../../issues/new/choose) if needed. All [pull requests](/../../pulls) should reference an open [issue](/../../issues). Include keywords in your pull request descriptions, as well as commit messages, to [automatically close issues in GitHub](https://help.github.com/en/github/managing-your-work-on-github/closing-issues-using-keywords). | ||
|
||
**Sections** | ||
- <a name="contributing">General Contribution Flow</a> | ||
- <a href="#commit-signing">Developer Certificate of Origin</a> | ||
|
||
Relevant coding style guidelines are the Go Code Review Comments and the Formatting and style section of Peter Bourgon's Go: Best Practices for Production Environments. | ||
|
||
# <a name="contributing">General Contribution Flow</a> | ||
|
||
In order to contribute to Meshery, please follow the fork-and-pull request workflow described [here](./CONTRIBUTING-gitflow.md). | ||
|
||
## <a name="commit-signing">Signing-off on Commits (Developer Certificate of Origin)</a> | ||
|
||
To contribute to this project, you must agree to the Developer Certificate of | ||
Origin (DCO) for each commit you make. The DCO is a simple statement that you, | ||
as a contributor, have the legal right to make the contribution. | ||
|
||
See the [DCO](https://developercertificate.org) file for the full text of what you must agree to | ||
and how it works [here](https://github.com/probot/dco#how-it-works). | ||
To signify that you agree to the DCO for contributions, you simply add a line to each of your | ||
git commit messages: | ||
|
||
``` | ||
Signed-off-by: Jane Smith <jane.smith@example.com> | ||
``` | ||
|
||
In most cases, you can add this signoff to your commit automatically with the | ||
`-s` or `--signoff` flag to `git commit`. You must use your real name and a reachable email | ||
address (sorry, no pseudonyms or anonymous contributions). An example of signing off on a commit: | ||
``` | ||
$ commit -s -m “my commit message w/signoff” | ||
``` | ||
|
||
To ensure all your commits are signed, you may choose to add this alias to your global ```.gitconfig```: | ||
|
||
*~/.gitconfig* | ||
``` | ||
[alias] | ||
amend = commit -s --amend | ||
cm = commit -s -m | ||
commit = commit -s | ||
``` | ||
Or you may configure your IDE, for example, Visual Studio Code to automatically sign-off commits for you: | ||
|
||
<a href="https://user-images.githubusercontent.com/7570704/64490167-98906400-d25a-11e9-8b8a-5f465b854d49.png" ><img src="https://user-images.githubusercontent.com/7570704/64490167-98906400-d25a-11e9-8b8a-5f465b854d49.png" width="50%"><a> | ||
|
||
## <a name="contributing-docs">Documentation Contribution Flow</a> | ||
Please contribute! Layer5 documentation uses Jekyll and GitHub Pages to host docs sites. Learn more about [Layer5's documentation framework](https://docs.google.com/document/d/17guuaxb0xsfutBCzyj2CT6OZiFnMu9w4PzoILXhRXSo/edit?usp=sharing). The process of contributing follows this flow: | ||
|
||
1. Create a fork, if you have not already, by following the steps described [here](./CONTRIBUTING-gitflow.md) | ||
1. In the local copy of your fork, navigate to the docs folder. | ||
`cd docs` | ||
1. Create and checkout a new branch to make changes within | ||
`git checkout -b <my-changes>` | ||
1. Edit/add documentation. | ||
`vi <specific page>.md` | ||
1. Run site locally to preview changes. | ||
`make site` | ||
1. Commit, [sign-off](#commit-signing), and push changes to your remote branch. | ||
`git push origin <my-changes>` | ||
1. Open a pull request (in your web browser) against the repo. | ||
|
||
|
||
#### Tests | ||
Users can now test their code on their local machine against the CI checks implemented using `make run-tests`. | ||
|
||
To test code changes on your local machine, run the following command: | ||
``` | ||
make run-tests | ||
``` | ||
|
||
#### Building Docker image | ||
To build a Docker image of the project, please ensure you have `Docker` installed to be able to build the image. Now, run the following command to build the Docker image: | ||
```sh | ||
make docker | ||
``` | ||
|
||
### UI Lint Rules | ||
|
||
Layer5 uses ES-Lint to maintain code quality & consistency in our UI Code. | ||
|
||
# <a name="maintaining"> Reviews</a> | ||
All contributors are invited to review pull requests. See this short video on [how to review a pull request](https://www.youtube.com/watch?v=isLfo7jfE6g&feature=youtu.be). | ||
|
||
# New to Git? | ||
Resources: https://lab.github.com and https://try.github.com/ | ||
|
||
### License | ||
|
||
This repository and site are available as open source under the terms of the [Apache 2.0 License](https://opensource.org/licenses/Apache-2.0). | ||
|
||
### About Layer5 | ||
|
||
**Community First** | ||
<p>The <a href="https://layer5.io">Layer5</a> community represents the largest collection of service mesh projects and their maintainers in the world.</p> | ||
|
||
**Open Source First** | ||
<p>Our projects establish industry standards and enable service developers, owners, and operators with repeatable patterns and best practices for managing all aspects of distributed services. Our shared commitment to the open source spirit push the Layer5 community and its projects forward.</p> | ||
You want to contribute to the project? Yay! We want you to! Visit our centralized instructions for [contributing](https://github.com/layer5io/meshery/blob/master/CONTRIBUTING.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG GOLANG_VERSION=1.21 | ||
ARG GOLANG_VERSION=1.22 | ||
FROM golang:${GOLANG_VERSION} as builder | ||
|
||
ARG VERSION | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# TODO: Define performance profile |
43 changes: 43 additions & 0 deletions
43
templates/meshmodel/components/v0.7.0/PerformanceTestConfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"kind": "PerformaceTestConfig", | ||
"apiVersion": "core.meshery.io/v1beta1", | ||
"displayName": "Performace Test Config", | ||
"format": "JSON", | ||
"metadata": { | ||
"capabilities": "", | ||
"defaultData": "", | ||
"genealogy": "", | ||
"isAnnotation": false, | ||
"isNamespaced": true, | ||
"logoURL": "", | ||
"primaryColor": "", | ||
"published": true, | ||
"secondaryColor": "", | ||
"shape": "rectangle", | ||
"shapePolygonPoints": "", | ||
"styleOverrides": "", | ||
"subCategory": "", | ||
"svgColor": "", | ||
"svgComplete": "", | ||
"svgWhite": "" | ||
}, | ||
"model": { | ||
"name": "meshery-perf", | ||
"version": "v1", | ||
"displayName": "Meshery Performance", | ||
"status": "", | ||
"category": { | ||
"name": "Orchestration \u0026 Management", | ||
"metadata": null | ||
}, | ||
"metadata": { | ||
"isAnnotation": false, | ||
"svgColor": "", | ||
"svgWhite": "" | ||
}, | ||
"components": null, | ||
"relationships": null | ||
}, | ||
"schema": "{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"format\":\"uuid\"},\"user_id\":{\"type\":\"string\",\"format\":\"uuid\"},\"name\":{\"type\":\"string\"},\"schedule\":{\"type\":\"string\"},\"loadGenerators\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"endpoints\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"serviceMesh\":{\"type\":\"string\"},\"concurrentRequest\":{\"type\":\"integer\"},\"qps\":{\"type\":\"integer\"},\"duration\":{\"type\":\"string\"},\"lastRun\":{\"type\":\"string\",\"format\":\"date-time\"},\"totalResults\":{\"type\":\"integer\"},\"headers\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"cookies\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"metadata\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"}},\"body\":{\"type\":\"string\"},\"contentType\":{\"type\":\"string\"},\"createdAt\":{\"type\":\"string\",\"format\":\"date-time\"},\"updatedAt\":{\"type\":\"string\",\"format\":\"date-time\"}},\"additionalProperties\":false,\"required\":[\"id\",\"user_id\",\"name\",\"loadGenerators\",\"endpoints\",\"serviceMesh\",\"concurrentRequest\",\"qps\",\"duration\",\"totalResults\",\"headers\",\"cookies\",\"metadata\",\"body\",\"contentType\",\"createdAt\",\"updatedAt\"]}" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"primaryColor": "", | ||
"secondaryColor": "", | ||
"shape": "", | ||
"logoURL": "", | ||
"svgColor": "", | ||
"svgWhite": "" | ||
} |