Skip to content

Commit

Permalink
Update dev setup doc + fix GKE bootstrap script (elastic#1203)
Browse files Browse the repository at this point in the history
* Update dev setup doc + fix GKE bootstrap script

* Update wording of container registry authentication
  • Loading branch information
charith-elastic authored Jul 5, 2019
1 parent 8f3756d commit 444b500
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions operators/dev-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ Run `make check-requisites` to check that all dependencies are installed.

## Development

1. Get a working development Kubernetes cluster. You can either use:
1. Run `make dep-vendor-only` to download extra Go libraries needed to compile the project and store them in the vendor directory.

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

[Minikube](https://kubernetes.io/docs/tasks/tools/install-minikube/#install-minikube)

Expand All @@ -41,15 +43,16 @@ Run `make check-requisites` to check that all dependencies are installed.

or [GKE](https://cloud.google.com/kubernetes-engine/)

Make sure that container registry authentication is correctly configured as described [here](https://cloud.google.com/container-registry/docs/advanced-authentication).

```bash
export GCLOUD_PROJECT=my-project-id
make bootstrap-gke
# Sets up GKE cluster with required resources
```

2. Deploy the operator.
3. Deploy the operator.

* `make dep-vendor-only` to download extra Go libraries needed to compile the project and stores them in the vendor directory.
* `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.

Expand Down
2 changes: 1 addition & 1 deletion operators/hack/gke-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ create_cluster() {
exit 0
fi

local PSP_OPTION
local PSP_OPTION=""
if [ "$PSP" == "1" ]; then
PSP_OPTION="--enable-pod-security-policy"
fi
Expand Down

0 comments on commit 444b500

Please sign in to comment.