crdb-operator

module
v0.0.0-...-acac327 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: Apache-2.0

README

crdb-operator

k8s operator for CRDB

Development

Requirements
  • GNU Make
  • Docker
  • go1.13

The rest of dependencies are packed into Docker images which are executed from the

Running operator in local development environment

If you have kubectl configured to use a cluster, you can start the operator locally:

# Install CRD (you may need to add --validate=false for k8s version below 1.15
kubectl apply -f ./config/crd/bases/crdb.cockroachlabs.com_crdbclusters.yaml

# Start operator - run the operator in local development mode
WATCH_NAMESPACE=default
make run
Recipes:

The main provides a set of targets to automate development and deployment. Here are the most useful:

  • make run runs the operator which attempts to connect to the current cluster from kubectl config
  • make test runs tests for the project
  • make manifests generates manifests (e.g. CRD, RBAC) from Go types
  • make generate generates Go code from Go types

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the crdb v1alpha1 API group +k8s:deepcopy-gen=package +groupName=crdb.cockroachlabs.com
Package v1alpha1 contains API Schema definitions for the crdb v1alpha1 API group +k8s:deepcopy-gen=package +groupName=crdb.cockroachlabs.com
cmd
pkg
ptr
tls

Jump to

Keyboard shortcuts

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