Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Latest commit

 

History

History
49 lines (37 loc) · 1.35 KB

development.adoc

File metadata and controls

49 lines (37 loc) · 1.35 KB

Development

Before start working on the AWS Service Operator please read the Contributing Guidelines.

Make sure you first have all the dependencies installed. The source checkout should be under your $GOPATH/src directory.

brew install dep
brew upgrade dep
dep ensure

If you want to make changes to the operators, they are all generated code, to modify them you will need to install the aws-operator-codegen project by running.

make install-aws-codegen

After you have this installed you can run the following from the root of the project.

make rebuild

This takes the model files that are in models/ and converts them into the operator code in pkg/operator following that it will run the Kubernetes code generation libraries to auto generate the pkg/client.

After have made sure the codegen is run you can then build the package and run it against a remote cluster by passing in the kubeconfig file.

./aws-operator server --kubeconfig ~/.kube/config --region us-west-2

Writing Additional Operators

Additional Custom Resource Definitions and Controllers can be created and deployed using the build in model file to controller logic. Because each resource is defined using Cloudformation we have a simple to use DSL for adding additional resources.