Skip to content

Commit 544ed71

Browse files
Update README.md
1 parent a93b275 commit 544ed71

File tree

1 file changed

+91
-20
lines changed

1 file changed

+91
-20
lines changed

README.md

Lines changed: 91 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,117 @@
11
<!--
2-
# SPDX-FileCopyrightText: Copyright 2024 SAP SE or an SAP affiliate company and cobaltcore-dev contributors
3-
#
2+
# SPDX-FileCopyrightText: Copyright 2025 SAP SE or an SAP affiliate company and ironcore-dev contributors
43
# SPDX-License-Identifier: Apache-2.0
54
-->
65

7-
# SAP Repository Template
6+
# network-operator
7+
[![REUSE status](https://api.reuse.software/badge/github.com/ironcore-dev/network-operator)](https://api.reuse.software/info/github.com/ironcore-dev/network-operator)
8+
[![Go Report Card](https://goreportcard.com/badge/github.com/ironcore-dev/network-operator)](https://goreportcard.com/report/github.com/ironcore-dev/network-operator)
9+
[![GitHub License](https://img.shields.io/static/v1?label=License&message=Apache-2.0&color=blue)](LICENSE)
10+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com)
811

9-
Default templates for SAP open source repositories, including LICENSE, .reuse/dep5, Code of Conduct, etc... All repositories on github.com/SAP will be created based on this template.
12+
`network-operator` is a Kubernetes operator for automating network device provisioning.
1013

11-
## To-Do
14+
## Description
1215

13-
In case you are the maintainer of a new SAP open source project, these are the steps to do with the template files:
16+
Network-operator is a project built using Kubebuilder and controller-runtime to facilitate the provisioning of network devices. It provides a robust and scalable solution for managing networking infrastructure, ensuring seamless integration and automation within Kubernetes environments.
1417

15-
- Check if the default license (Apache 2.0) also applies to your project. A license change should only be required in exceptional cases. If this is the case, please change the [license file](LICENSE).
16-
- Enter the correct metadata for the REUSE tool. See our [wiki page](https://wiki.one.int.sap/wiki/display/ospodocs/Using+the+Reuse+Tool+of+FSFE+for+Copyright+and+License+Information) for details how to do it. You can find an initial REUSE.toml file to build on. Please replace the parts inside the single angle quotation marks < > by the specific information for your repository and be sure to run the REUSE tool to validate that the metadata is correct.
17-
- Adjust the contribution guidelines (e.g. add coding style guidelines, pull request checklists, different license if needed etc.)
18-
- Add information about your project to this README (name, description, requirements etc). Especially take care for the <your-project> placeholders - those ones need to be replaced with your project name. See the sections below the horizontal line and [our guidelines on our wiki page](https://wiki.one.int.sap/wiki/pages/viewpage.action?pageId=3564976048#GuidelinesforGitHubHealthfiles(Readme,Contributing,CodeofConduct)-Readme.md) what is required and recommended.
19-
- Remove all content in this README above and including the horizontal line ;)
18+
## Getting Started
2019

21-
***
20+
### Prerequisites
21+
- go version v1.24.0+
22+
- docker version 28+.
23+
- kubectl version v1.33.1+.
24+
- Access to a Kubernetes v1.33.0+ cluster.
2225

23-
# Our new open source project
26+
### To Deploy on the cluster
27+
**Build and push your image to the location specified by `IMG`:**
2428

25-
## About this project
29+
```sh
30+
make docker-build docker-push IMG=<some-registry>/network-operator:tag
31+
```
2632

27-
*Insert a short description of your project here...*
33+
**NOTE:** This image ought to be published in the personal registry you specified. And it is required to have access to pull the image from the working environment. Make sure you have the proper permission to the registry if the above commands don’t work.
2834

29-
## Requirements and Setup
35+
**Install the CRDs into the cluster:**
3036

31-
*Insert a short description what is required to get your project running...*
37+
```sh
38+
make install
39+
```
40+
41+
**Deploy the Manager to the cluster with the image specified by `IMG`:**
42+
43+
```sh
44+
make deploy IMG=<some-registry>/network-operator:tag
45+
```
46+
47+
> **NOTE**: If you encounter RBAC errors, you may need to grant yourself cluster-admin privileges or be logged in as admin.
48+
49+
**Create instances of your solution**
50+
You can apply the samples (examples) from the config/sample:
51+
52+
```sh
53+
kubectl apply -k config/samples/
54+
```
55+
56+
>**NOTE**: Ensure that the samples have default values to test it out.
57+
58+
### To Uninstall
59+
**Delete the instances (CRs) from the cluster:**
60+
61+
```sh
62+
kubectl delete -k config/samples/
63+
```
64+
65+
**Delete the APIs(CRDs) from the cluster:**
66+
67+
```sh
68+
make uninstall
69+
```
70+
71+
**UnDeploy the controller from the cluster:**
72+
73+
```sh
74+
make undeploy
75+
```
76+
77+
## Project Distribution
78+
79+
Following are the steps to build the installer and distribute this project to users.
80+
81+
1. Build the installer for the image built and published in the registry:
82+
83+
```sh
84+
make build-installer IMG=<some-registry>/network-operator:tag
85+
```
86+
87+
NOTE: The makefile target mentioned above generates an 'install.yaml' file in the dist directory. This file contains all the resources built with Kustomize, which are necessary to install this project without its dependencies.
88+
89+
2. Using the installer
90+
91+
Users can just run kubectl apply -f <URL for YAML BUNDLE> to install the project, i.e.:
92+
93+
```sh
94+
kubectl apply -f https://raw.githubusercontent.com/<org>/network-operator/<tag or branch>/dist/install.yaml
95+
```
96+
97+
## Contributing
98+
99+
**NOTE:** Run `make help` for more information on all potential `make` targets
100+
101+
More information can be found via the [Kubebuilder Documentation](https://book.kubebuilder.io/introduction.html)
32102

33103
## Support, Feedback, Contributing
34104

35-
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/<your-project>/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).
105+
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/ironcore-dev/network-operator/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).
36106

37107
## Security / Disclosure
38-
If you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/SAP/<your-project>/security/policy) on how to report it. Please do not create GitHub issues for security-related doubts or problems.
108+
109+
If you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/ironcore-dev/network-operator/security/policy) on how to report it. Please do not create GitHub issues for security-related doubts or problems.
39110

40111
## Code of Conduct
41112

42113
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its [Code of Conduct](https://github.com/SAP/.github/blob/main/CODE_OF_CONDUCT.md) at all times.
43114

44115
## Licensing
45116

46-
Copyright (20xx-)20xx SAP SE or an SAP affiliate company and <your-project> contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/<your-project>).
117+
Copyright 2025 SAP SE or an SAP affiliate company and ironcore-dev contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/ironcore-dev/network-operator).

0 commit comments

Comments
 (0)