Skip to content

Commit

Permalink
Update test instructions (#144)
Browse files Browse the repository at this point in the history
* Update test instructions

- Cert manager no longer relevant step. Removed from Makefile in PR#117
- Key changed from tag -> version

* Fix all instances of controllerManager.manager.image.tag

---------

Co-authored-by: Tim Pansino <[email protected]>
  • Loading branch information
hannahramadan and TimPansino authored Jan 23, 2025
1 parent 20b9d43 commit 8979acf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
helm upgrade --install k8s-agents-operator k8s-agents-operator/k8s-agents-operator \
--namespace=default \
--set=licenseKey=${{ secrets.NEW_RELIC_LICENSE_KEY }} \
--set=controllerManager.manager.image.tag=${{ inputs.K8S_OPERATOR_IMAGE_TAG }}
--set=controllerManager.manager.image.version=${{ inputs.K8S_OPERATOR_IMAGE_TAG }}
sleep 5
kubectl wait --for=condition=Ready -n default --all pods
Expand Down
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,19 @@ export NEW_RELIC_LICENSE_KEY=***
```bash
make -f tests/Makefile minikube
```
3. Install [cert-manager](https://cert-manager.io/).
```bash
make -f tests/Makefile cert-manager
```
4. Install the New Relic [Kubernetes Agents Operator](https://github.com/newrelic/k8s-agents-operator/)
3. Install the New Relic [Kubernetes Agents Operator](https://github.com/newrelic/k8s-agents-operator/)
```bash
make -f tests/Makefile operator
```
5. Build a local copy of the init container in minikube.
4. Build a local copy of the init container in minikube.
```bash
make -f tests/Makefile build-initcontainer
```
6. Build a local copy of the test app in minikube.
5. Build a local copy of the test app in minikube.
```bash
make -f tests/Makefile build-testapp
```
7. Deploy the test app instrumented with the init container. A browser window will open if the deployment succeeds.
6. Deploy the test app instrumented with the init container. A browser window will open if the deployment succeeds.
```bash
make -f tests/Makefile test
```
Expand Down
4 changes: 2 additions & 2 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ operator:
helm repo add k8s-agents-operator https://newrelic.github.io/k8s-agents-operator
helm upgrade --install k8s-agents-operator k8s-agents-operator/k8s-agents-operator \
--set=licenseKey=${NEW_RELIC_LICENSE_KEY} \
--set=controllerManager.manager.image.tag=edge
--set=controllerManager.manager.image.version=edge
sleep 5
kubectl wait --for=condition=Ready pods $$(kubectl get pods | grep k8s-agents-operator | cut -d" " -f1)

Expand All @@ -45,7 +45,7 @@ operator-local:
--set=newRelicHost=${NEW_RELIC_HOST} \
--set=controllerManager.manager.image.pullPolicy=Never \
--set=controllerManager.manager.image.repository=e2e/k8s-agents-operator \
--set=controllerManager.manager.image.tag=e2e
--set=controllerManager.manager.image.version=e2e
sleep 5
kubectl wait --for=condition=Ready pods $$(kubectl get pods | grep k8s-agents-operator | cut -d" " -f1)

Expand Down

0 comments on commit 8979acf

Please sign in to comment.