Skip to content

Commit 3847262

Browse files
Including undeploy feature on Makefile (#480)
* Including undeploy feature on Makefile * Update CONTRIBUTING.md Co-authored-by: Juraci Paixão Kröhling <[email protected]> Co-authored-by: Juraci Paixão Kröhling <[email protected]>
1 parent 56a86fb commit 3847262

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CONTRIBUTING.md

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ Once they are installed, the tests can be executed with `make prepare-e2e`, whic
8787

8888
The tests are located under `tests/e2e` and are written to be used with `kuttl`. Refer to their documentation to understand how tests are written.
8989

90+
### Undeploying the operator from the local cluster
91+
92+
```bash
93+
make undeploy
94+
```
95+
9096
## Project Structure
9197

9298
For a general overview of the directories from this operator and what to expect in each one of them, please check out the [official GoDoc](https://godoc.org/github.com/open-telemetry/opentelemetry-operator) or the [locally-hosted GoDoc](http://localhost:6060/pkg/github.com/open-telemetry/opentelemetry-operator/)

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,14 @@ uninstall: manifests kustomize
8080
set-image-controller: manifests kustomize
8181
cd config/manager && $(KUSTOMIZE) edit set image controller=${IMG}
8282

83-
# Deploy controller in the configured Kubernetes cluster in ~/.kube/config
83+
# Deploy controller in the current Kubernetes context, configured in ~/.kube/config
8484
deploy: set-image-controller
8585
$(KUSTOMIZE) build config/default | kubectl apply -f -
8686

87+
# Undeploy controller in the current Kubernetes context, configured in ~/.kube/config
88+
undeploy: set-image-controller
89+
$(KUSTOMIZE) build config/default | kubectl delete -f -
90+
8791
# Generates the released manifests
8892
release-artifacts: set-image-controller
8993
mkdir -p dist

0 commit comments

Comments
 (0)