Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README for trigger selector based examples #839

Merged
merged 1 commit into from
Nov 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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