Skip to content

Commit

Permalink
Updated README for trigger selector based examples
Browse files Browse the repository at this point in the history
  • Loading branch information
savitaashture authored and tekton-robot committed Nov 23, 2020
1 parent 5a08634 commit 2be4022
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions examples/selectors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,19 @@ Creates an EventListener that serve triggers in multiple namespaces.
```

2. Port forward:

```bash
kubectl config set-context --current --namespace=bar
kubectl apply -f examples/example-pipeline.yaml
kubectl port-forward \
-n foo $(kubectl get pod -n foo -o=name \
-l eventlistener=listener-sel) 8080
```

**Note**: Instead of port forwarding, you can set the
[`serviceType`](https://github.com/tektoncd/triggers/blob/master/docs/eventlisteners.md#serviceType)
to `LoadBalancer` to expose the EventListener with a public IP.

3. Create sample pipelinerun in namespace bar:
3. Create sample pipeline in namespace bar:
```bash
kubectl port-forward \
-n foo $(kubectl get pod -n foo -o=name \
-l eventlistener=listener-sel) 8080
kubectl apply -f examples/example-pipeline.yaml -n bar
```

3. Test by sending the sample payload.
Expand Down

0 comments on commit 2be4022

Please sign in to comment.