Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 2.38 KB

dev-setup.md

File metadata and controls

73 lines (49 loc) · 2.38 KB

Setting up Your Development Environment

This page explains you how to set up your development environment.

Requirements

Before you start, install the following tools and packages:

Get sources

git clone https://github.com/elastic/cloud-on-k8s.git
cd cloud-on-k8s

Check prerequisites

Run make check-requisites to check that all dependencies are installed.

Development

  1. Run make dependencies to download the Go libraries needed to compile the project.

  2. Get a working development Kubernetes cluster. You can use:

    Minikube

    make bootstrap-minikube
    # Sets up a Minikube cluster with required resources

    GKE

    Make sure that container registry authentication is correctly configured as described here.

    export GCLOUD_PROJECT=my-project-id
    make bootstrap-cloud
    # Sets up GKE cluster (by default) with required resources

    Kind

    make bootstrap-kind
    # Sets up a kind cluster with required resources
  3. Deploy the operator.

    • make run to run the operator locally, or make deploy to deploy the operators into the configured k8s cluster.
    • make samples to apply a sample stack resource.

Running E2E tests

E2E tests will run in the e2e-mercury and e2e-venus namespaces. Run make run to start the operator and then run make e2e-local in a separate shell to run the tests.

Recommended reading