verrazzano-coh-cluster-operator

module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: UPL-1.0

README

pipeline status coverage report

verrazzano-coh-cluster-operator

Kubernetes operator for managing coherence clusters in the Verrazzano environment

Prerequisites

operator-sdk version must be v0.18.1

How to Build

make build

How to build and run outside a Kubernetes cluster

export GO111MODULE=on

make go-mod
export OPERATOR_NAME=verrazzano-coh-cluster-operator
operator-sdk up local --namespace=""

How to build and deploy in a Kubernetes cluster

operator-sdk build verrazzano-coh-cluster-operator:v0.0.1
-- or --
operator-sdk build verrazzano-coh-cluster-operator:v0.0.1 --image-build-args="--build-arg PROXY=<ADD_PROXY-HERE>"

sed -i "" 's|REPLACE_IMAGE|verrazzano-coh-cluster-operator:v0.0.1|g' deploy/operator.yaml
# This step is using the default namespace for the deployment. Change to desired
# namespace if need be.
sed -i "" "s|REPLACE_NAMESPACE|default|g" deploy/role_binding.yaml

kubectl apply -f deploy/service_account.yaml
kubectl apply -f deploy/role.yaml
kubectl apply -f deploy/role_binding.yaml
kubectl apply -f deploy/operator.yaml

How to update the CRD

# Make edits to pkg/apis/verrazzano/v1beta1/cohcluster_types.go

make generate

Directories

Path Synopsis
cmd
pkg
apis/verrazzano/v1beta1
Package v1beta1 contains API Schema definitions for the verrazzano v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=verrazzano.io Package v1beta1 contains API Schema definitions for the verrazzano v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=verrazzano.io
Package v1beta1 contains API Schema definitions for the verrazzano v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=verrazzano.io Package v1beta1 contains API Schema definitions for the verrazzano v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=verrazzano.io
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/verrazzano/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/verrazzano/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
test

Jump to

Keyboard shortcuts

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