File tree Expand file tree Collapse file tree 1 file changed +6
-21
lines changed
Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Original file line number Diff line number Diff line change @@ -29,34 +29,19 @@ work/
2929
3030### Setup
3131
32- 1 . ** Clone dependencies:**
33-
34- ``` bash
35- cd ../
36- git clone https://github.com/mongodb-atlas-kubernetes/atlas2crd
37- git clone https://github.com/mongodb/mongodb-atlas-kubernetes
38- ```
39-
40- 2 . ** Replace the crd2go dependency**
41- Make sure the crd2go dependency is pointing to the local copy. In your ` go.mod ` file:
42-
43- ``` bash
44- replace github.com/josvazg/crd2go => ../crd2go
45- ```
46-
47- 3 . ** Generate CRD types**
48- Use ` crd2go ` tool to generate go types for CRDs:
32+ 1 . ** Generate CRD types**
33+ Use ` crd2go ` tool from the ` tools ` directory of the AKO repository to generate go types for CRDs:
4934
5035 ``` bash
51- cd ./crd2go/
36+ cd ./tools/ crd2go/
5237 go build -o ./crd2go ./cmd/crd2go/main.go
5338 ./crd2go -input=./pkg/crd2go/samples/crds.yaml -output=../atlas-controller-scaffolder/pkg/api/v1
5439 ```
5540
56- 4 . ** Build the scaffolder:**
41+ 2 . ** Build the scaffolder:**
5742 ` ` ` bash
58- cd ../atlas-controller- scaffolder
59- go build -o ./bin/ako-controller- scaffolder ./cmd/main.go
43+ cd ../scaffolder
44+ go build -o ./bin/scaffolder ./cmd/main.go
6045 ` ` `
6146
6247
You can’t perform that action at this time.
0 commit comments