Skip to content

Commit

Permalink
Fix missing push and readme on new tests rules (bitnami-labs#937)
Browse files Browse the repository at this point in the history
The push was missing and some instructions also regarding the push rule were inaccurate, missing the K8S_CONTEXT env var.
  • Loading branch information
josvaz authored Aug 30, 2022
1 parent 99e104c commit aa60095
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ check-k8s:

push-controller: clean check-k8s controller.image.$(OS)-$(ARCH)
docker tag $(CONTROLLER_IMAGE)-$(OS)-$(ARCH) $(CONTROLLER_IMAGE)
docker push $(CONTROLLER_IMAGE)

apply-controller-manifests: clean check-k8s controller.yaml
kubectl apply -f controller.yaml
Expand Down
4 changes: 2 additions & 2 deletions docs/developer/controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ make test
#### Push the controller image

```bash
make OS=linux ARCH=amd64 push-controller
make K8S_CONTEXT=kind-mykind OS=linux ARCH=amd64 push-controller
```

This builds the controller container image and pushes it.

Remember that the `REGISTRY` env var is only needed when using a custom registry:

```bash
make REGISTRY=localhost:5000 OS=linux ARCH=amd64 push-controller
make K8S_CONTEXT=kind-mykind REGISTRY=localhost:5000 OS=linux ARCH=amd64 push-controller
```

#### Building & applying the controller manifests
Expand Down

0 comments on commit aa60095

Please sign in to comment.