apim-operator/

directory
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2019 License: Apache-2.0

README

Developer Guide

Building the image

The apim-operator was built using the operator-sdk CLI tool. you can follow the user guide of operator-sdk CLI tool for more information.

you should build the image when changes are added to the project. The steps to build the image are listed below.

  1. After modifying the *_types.go files run the following command to update the generated code for that resource type
    operator-sdk generate k8s
    
  2. Build the apim-operator image
    operator-sdk build wso2am/apim-operator:v0.6
    
  3. Replace the image name in deploy/controller-artifacts/operator.yaml:
    sed -i 's|REPLACE_IMAGE|wso2am/apim-operator:v0.6|g' deploy/controller-artifacts/operator.yaml
    
  4. Push it to a registry:
    docker push wso2am/apim-operator:v0.6
    

Additional Commands

  1. Adding new custom resource definition
    operator-sdk add api --api-version=wso2.com/v1alpha1 --kind=<kind name>
    
  2. Add a new Controller to the project
    operator-sdk add controller --api-version=wso2.com/v1alpha1 --kind=<kind name>
    

Directories

Path Synopsis
cmd
pkg
apis/wso2/v1alpha1
Package v1alpha1 contains API Schema definitions for the wso2 v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=wso2.com Package v1alpha1 contains API Schema definitions for the wso2 v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=wso2.com
Package v1alpha1 contains API Schema definitions for the wso2 v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=wso2.com Package v1alpha1 contains API Schema definitions for the wso2 v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=wso2.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL