Skip to content

Commit 9a73873

Browse files
authored
Merge pull request #41 from redhat-nfvpe/documentation-fixes
Update readme with new command
2 parents b2c6080 + 82a7e42 commit 9a73873

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

README.md

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,17 @@
44

55
## Overview
66
---
7-
This project is a small tool to produce Go Operators corresponding to Helm Charts in a reproducible and scalable way. Read more about the design in the [design doc](docs/Design.md).
7+
Helm2Go-Operator-SDK (H2Go) is a tool which creates the scaffold for Go Operators corresponding to Helm Charts in a reproducible and scalable way. Read more about the design in the [design doc](docs/Design.md).
88

99
[Helm](https://github.com/helm/helm) is a tool used for managing Kubernetes charts. Charts are packages of pre-configured Kubernetes resources. Helm allows for versioning and distribution of native Kubernetes applications.
1010

1111
Go Operators are native Kubernetes applications used to deploy, upgrade, and manage other Kubernetes applications.
1212

13-
14-
## Workflow
15-
---
16-
The tool provides the following workflow to develop operators in Go from corresponding Helm Charts:
17-
18-
1. Identify Helm Chart
19-
* Tool supports local charts
20-
* Tool supports external charts i.e. those hosted on external repositories
21-
2. Specify the neccessary resource, and the API is generated adding Custom Resource Definitions (CRDs)
22-
3. *Supported* Kubernetes Resources Controllers are automatically generated
23-
4. User must write the reconciling logic for the controller using the [Operator-SDK](https://github.com/operator-framework/operator-sdk) and [controller-runtime](https://godoc.org/sigs.k8s.io/controller-runtime) APIs.
24-
5. Use the [Operator-SDK](https://github.com/operator-framework/operator-sdk) CLI to build and generate the operator deployment manifests.
25-
26-
2713
## Prerequisites
2814
---
2915
* [git](https://git-scm.com/downloads)
3016
* [go](https://golang.org/dl/) version v1.12+
3117
* [operator-sdk](https://github.com/operator-framework/operator-sdk) version v0.8+
32-
* [dep](https://golang.github.io/dep/docs/installation.html) version v0.5.0+
3318

3419

3520
## Quick Start
@@ -39,14 +24,12 @@ In the following example, we will create an nginx-operator using the existing [B
3924
### Create, Build and Deploy an *nginx-operator* from Local Chart
4025
```
4126
# Create an nginx-operator that defines the Ngnix CR
42-
$ export GO111MODULE=on
4327
# Begin scaffolding process
44-
$ helm2go-operator-sdk convert nginx-operator --helm-chart=/path/to/nginx --api-version=web.example.com/v1alpha1 --kind=Ngnix
28+
$ helm2go-operator-sdk new nginx-operator --helm-chart=/path/to/nginx --api-version=web.example.com/v1alpha1 --kind=Ngnix
4529
# Enter operator directory
4630
$ cd nginx-operator
4731
4832
# Build the operator
49-
$ export GO111MODULE=off
5033
$ operator-sdk build quay.io/example/image
5134
$ docker push quay.io/example/image
5235
@@ -90,7 +73,4 @@ Deployment
9073
```
9174
If attempting to parse a Kubernetes resource other than the ones listed above the tool will prompt the user to either `continue` code generation without the unsupported resources or `stop` the code generation all together.
9275

93-
94-
## Common Problems
95-
---
96-
If you are experiencing build errors: `go: error loading module requirements`, execute the following command `export GO111MODULES=off` within the operator folder.
76+
*Note:* H2Go currently only supports non-deprecated resources. Thus, API Versions such as `apiVersion: extensions/v1beta1` should be updated to `apiVersion: apps/v1` or similar.

0 commit comments

Comments
 (0)