This repository was archived by the owner on Nov 7, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ = Development
2
+
3
+ Make sure you first have all the dependencies installed.
4
+
5
+ [source,shell]
6
+ ----
7
+ brew install dep
8
+ brew upgrade dep
9
+ dep ensure
10
+ ----
11
+
12
+ If you want to make changes to the operators, they are all generated code, to
13
+ modify them you will need to install the `aws-operator-codegen` project by
14
+ running.
15
+
16
+ [source,shell]
17
+ ----
18
+ go get -u github.com/christopherhein/aws-operator-codegen
19
+ ----
20
+
21
+ After you have this installed you can run the following from the root of the
22
+ project.
23
+
24
+ [source,shell]
25
+ ----
26
+ aws-operator-codegen process
27
+ ----
28
+
29
+ This takes the model files that are in `models/` and converts them into the
30
+ operator code in `pkg/operator`
31
+
32
+ Once you have run this you can then use the Kubernetes code generation libraries
33
+ to auto generate the `pkg/client` .
34
+
35
+ [source,shell]
36
+ ----
37
+ ./codegen.sh
38
+ ----
39
+
40
+ After have made sure the codegen is run you can then build the package and
41
+ run it against a remote cluster by passing in the `kubeconfig` file.
42
+
43
+ `` `bash
44
+ make build && ./aws-operator server -- kubeconfig ~/.kube/config -- region
45
+ us-west-2
46
+ ```
47
+
48
+ == Writing Additional Operators
49
+
50
+ Additional Custom Resource Definitions and Controllers can be created and
51
+ deployed using the build in model file to controller logic. Because each
52
+ resource is defined using Cloudformation we have a simple to use DSL for adding
53
+ additional resources.
You can’t perform that action at this time.
0 commit comments