Skip to content

Commit 71d3432

Browse files
authored
Chore/oss preparations (#23)
* added more info about the project On-behalf-of: SAP [email protected] * added badge and reuse On-behalf-of: SAP [email protected] * docs: extended description section and contributing instructions On-behalf-of: SAP [email protected] * chore: typo fix On-behalf-of: SAP [email protected]
1 parent 85c2543 commit 71d3432

File tree

5 files changed

+434
-115
lines changed

5 files changed

+434
-115
lines changed

CODE_OF_CONFUCT.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# SAP Open Source Code of Conduct
2+
3+
SAP adopts the [Contributor's Covenant 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/)
4+
across our open source projects to ensure a welcoming and open culture for everyone involved.
5+
6+
## Our Pledge
7+
8+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
9+
10+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to a positive environment for our community include:
15+
16+
* Demonstrating empathy and kindness toward other people
17+
* Being respectful of differing opinions, viewpoints, and experiences
18+
* Giving and gracefully accepting constructive feedback
19+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
20+
* Focusing on what is best not just for us as individuals, but for the overall community
21+
22+
Examples of unacceptable behavior include:
23+
24+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
25+
* Trolling, insulting or derogatory comments, and personal or political attacks
26+
* Public or private harassment
27+
* Publishing others' private information, such as a physical or email address, without their explicit permission
28+
* Other conduct which could reasonably be considered inappropriate in a professional setting
29+
30+
## Enforcement Responsibilities
31+
32+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33+
34+
Community leaders 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, and will communicate reasons for moderation decisions when appropriate.
35+
36+
## Scope
37+
38+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39+
40+
## Enforcement
41+
42+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]) (SAP Open Source Program Office). All complaints will be reviewed and investigated promptly and fairly.
43+
44+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45+
46+
## Enforcement Guidelines
47+
48+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49+
50+
### 1. Correction
51+
52+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53+
54+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55+
56+
### 2. Warning
57+
58+
**Community Impact**: A violation through a single incident or series of actions.
59+
60+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61+
62+
### 3. Temporary Ban
63+
64+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65+
66+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67+
68+
### 4. Permanent Ban
69+
70+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71+
72+
**Consequence**: A permanent ban from any sort of public interaction within the community.
73+
74+
## Attribution
75+
76+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
77+
78+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
79+
80+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
81+
82+
[homepage]: https://www.contributor-covenant.org
83+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
84+
[Mozilla CoC]: https://github.com/mozilla/diversity
85+
[FAQ]: https://www.contributor-covenant.org/faq
86+
[translations]: https://www.contributor-covenant.org/translations

CONTRIBUTING.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
## Overview
2+
3+
# Contributing to platform-mesh
4+
We want to make contributing to this project as easy and transparent as possible.
5+
6+
## Our development process
7+
We use GitHub to track issues and feature requests, as well as accept pull requests.
8+
9+
## Pull requests
10+
You are welcome to contribute with your pull requests. These steps explain the contribution process:
11+
12+
1. Fork the repository and create your branch from `main`.
13+
1. [Add tests](#testing) for your code.
14+
1. If you've changed APIs, update the documentation.
15+
1. Make sure the tests pass. Our github actions pipeline is running the unit and e2e tests for your PR and will indicate any issues.
16+
1. Sign the Developer Certificate of Origin (DCO).
17+
18+
## Testing
19+
20+
> **NOTE:** You should always add if you are adding code to our repository.
21+
22+
To let tests run locally, run `go test ./...` in the root directory of the repository.
23+
24+
## Getting Started
25+
26+
### Prerequisites
27+
- go version v1.24.0+
28+
- docker version 17.03+.
29+
- kubectl version v1.11.3+.
30+
- Access to a Kubernetes v1.11.3+ cluster.
31+
32+
### To Deploy in the local cluster
33+
**Run the platform-mesh locally in the cluster:**
34+
35+
To deploy the platform to kubernetes locally, please refer to the [helm-charts](https://github.com/platform-mesh/helm-charts) repository.
36+
37+
**Build and push your image to the local kind cluster where the platform-mesh system is deployed:**
38+
39+
For that you can or spot which version is currently being used in the cluster and execute next commands:
40+
41+
```bash
42+
docker build -t <image name which is used in the cluster with the tag> .
43+
44+
kind load docker-image <image name which is used in the cluster with the tag> --name=platform-mesh
45+
```
46+
After it you need to restart security operator's pods and they will fetch a local image automaticly
47+
48+
If you want to use another image name and tag use this approach
49+
50+
```bash
51+
docker build -t security-operator:latest . && \
52+
kind load docker-image security-operator:latest --name=platform-mesh && \
53+
kubectl patch deployment platform-mesh-security-operator -n platform-mesh-system --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/imagePullPolicy", "value": "IfNotPresent"}]' && \
54+
kubectl patch deployment platform-mesh-security-operator -n platform-mesh-system --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value": "security-operator:latest"}]' && \
55+
kubectl rollout restart deployment platform-mesh-security-operator -n platform-mesh-system && \
56+
kubectl rollout status deployment platform-mesh-security-operator -n platform-mesh-system
57+
```
58+
59+
**Install the CRDs into the cluster:**
60+
61+
```bash
62+
task install
63+
```
64+
65+
**Create instances of your solution**
66+
You can apply the samples (examples) from the config/sample:
67+
68+
```bash
69+
kubectl apply -k config/samples/
70+
```
71+
72+
>**NOTE**: Ensure that the samples has default values to test it out.
73+
74+
### To Uninstall
75+
**Delete the instances (CRs) from the cluster:**
76+
77+
```bash
78+
kubectl delete -k config/samples/
79+
```
80+
81+
**Delete the APIs(CRDs) from the cluster:**
82+
83+
```bash
84+
task uninstall
85+
```
86+
87+
## Useful commands:
88+
### Run linter
89+
```bash
90+
task lint
91+
```
92+
### Coverage check
93+
```bash
94+
task cover
95+
```
96+
### Run tests
97+
```bash
98+
task test
99+
```
100+
### Check tests and linter
101+
```bash
102+
task validate
103+
```
104+
105+
## Issues
106+
We use GitHub issues to track bugs. Please ensure your description is
107+
clear and includes sufficient instructions to reproduce the issue.
108+
109+
## License
110+
By contributing to platform-mesh, you agree that your contributions will be licensed
111+
under its [Apache-2.0 license](LICENSE).

0 commit comments

Comments
 (0)