Skip to content

Commit

Permalink
chore(repo): add control-plane to its own repo
Browse files Browse the repository at this point in the history
Added the mayastor control-plane.
Refactored the nix shell and derivations.
  • Loading branch information
tiagolobocastro committed Mar 9, 2021
0 parents commit 39e2d16
Show file tree
Hide file tree
Showing 124 changed files with 20,093 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: new
assignees: tiagolobocastro

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

** OS info (please complete the following information):**
- Distro: [e.g. NixOS]
- Kernel version
- MayaStor revision or container image

**Additional context**
Add any other context about the problem here.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Doc Issue
about: Use this issue type to report documentation issues or errors, or to propose new topics or content.
title: '[Doc Source]: [Issue Summary]'
labels: documentation
assignees: GlennBullingham

---

**Are you reporting an issue with existing content?**
Please describe the error or omission, or your suggestion for improvement.
Please include a link the affected page(s)

**Are you proposing new content, or a change to the existing documentation layout or structure?**
Please describe your proposal.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
18 changes: 18 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Set to true to add reviewers to pull requests
addReviewers: true

# Set to true to add assignees to pull requests
addAssignees: false

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- paulyoong
- tiagolobocastro

# A list of keywords to be skipped the process that add reviewers if pull requests include it
skipKeywords:
- wip

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 1
24 changes: 24 additions & 0 deletions .github/workflows/pr-commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint Commit Messages
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install CommitLint and Dependencies
run: npm install @commitlint/config-conventional @commitlint/cli
- name: Lint Commits
run: |
first_commit=$(curl ${{ github.event.pull_request.commits_url }} 2>/dev/null | jq '.[0].sha' | sed 's/"//g')
last_commit=HEAD^2 # don't lint the merge commit
npx commitlint --from $first_commit~1 --to $last_commit -V
- name: Lint Pull Request
env:
TITLE: ${{ github.event.pull_request.title }}
BODY: ${{ github.event.pull_request.body }}
run: export NL=; printenv TITLE NL BODY | npx commitlint -V
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/target
**/rust-tags.*
/package-lock.json
/.idea
/result*
40 changes: 40 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
repos:
- repo: https://github.com/nix-community/nixpkgs-fmt
rev: master
hooks:
- id: nixpkgs-fmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: trailing-whitespace
- repo: local
hooks:
- id: rust-style
name: Rust style
description: Run cargo fmt on files included in the commit. rustfmt should be installed before-hand.
entry: cargo fmt --all -- --check
pass_filenames: true
types: [file, rust]
language: system
- id: rust-lint
name: Rust lint
description: Run cargo clippy on files included in the commit. clippy should be installed before-hand.
entry: cargo clippy --all --all-targets -- -D warnings
pass_filenames: false
types: [file, rust]
language: system
- id: commit-lint
name: Commit Lint
description: Runs commitlint against the commit message.
language: system
entry: bash -c "npm install @commitlint/config-conventional @commitlint/cli; cat $1 | npx commitlint"
args: [$1]
stages: [commit-msg]
- id: openapi-check
name: OpenApi Generator
description: Ensures OpenApi spec is up to date
entry: ./scripts/openapi-check.sh
args: ["--changes"]
pass_filenames: false
language: system

15 changes: 15 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# changed from 100 to 80
max_width = 80
# default is false
wrap_comments = true
comment_width = 80
# was true
struct_lit_single_line = false
#changed from Mixed
imports_layout = "HorizontalVertical"
# changed from Preserve (merge_imports = false)
imports_granularity="Crate"
#default false
spaces_around_ranges = true
# was 2015
edition = "2018"
59 changes: 59 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
## CNCF Community Code of Conduct v1.0

Other languages available:
- [Chinese/中文](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/zh.md)
- [Czech/Česky](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/cs.md)
- [German/Deutsch](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/de.md)
- [Spanish/Español](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/es.md)
- [French/Français](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/fr.md)
- [Italian/Italiano](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/it.md)
- [Japanese/日本語](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/jp.md)
- [Korean/한국어](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/ko.md)
- [Ukrainian/Українська](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/uk.md)
- [Russian/Русский](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/ru.md)
- [Portuguese/Português](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/pt.md)
- [Arabic/العربية](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/ar.md)
- [Polish/Polski](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/pl.md)
- [Indonesian/Bahasa Indonesia](https://raw.githubusercontent.com/cncf/foundation/master/code-of-conduct-languages/id.md)

### Contributor Code of Conduct

As contributors and maintainers of this project, and in the interest of fostering
an open and welcoming community, we pledge to respect all people who contribute
through reporting issues, posting feature requests, updating documentation,
submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free experience for
everyone, regardless of level of experience, gender, gender identity and expression,
sexual orientation, disability, personal appearance, body size, race, ethnicity, age,
religion, or nationality.

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery
* Personal attacks
* Trolling or insulting/derogatory comments
* Public or private harassment
* Publishing others' private information, such as physical or electronic addresses,
without explicit permission
* Other unethical or unprofessional conduct.

Project maintainers have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are not
aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers
commit themselves to fairly and consistently applying these principles to every aspect
of managing this project. Project maintainers who do not follow or enforce the Code of
Conduct may be permanently removed from the project team.

This code of conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community.

Instances of abusive, harassing, or otherwise unacceptable behavior in Kubernetes may be reported by contacting the [Kubernetes Code of Conduct Committee](https://git.k8s.io/community/committee-code-of-conduct) via <[email protected]>. For other projects, please contact a CNCF project maintainer or our mediator, Mishi Choudhary <[email protected]>.

This Code of Conduct is adapted from the Contributor Covenant
(http://contributor-covenant.org), version 1.2.0, available at
http://contributor-covenant.org/version/1/2/0/

### CNCF Events Code of Conduct

CNCF events are governed by the Linux Foundation [Code of Conduct](https://events.linuxfoundation.org/code-of-conduct/) available on the event page. This is designed to be compatible with the above policy and also includes more details on responding to incidents.
Loading

0 comments on commit 39e2d16

Please sign in to comment.