26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
# skill_digest: f15347d6f22704568ffc3656768cb503c13f92a22a775a59d9b0fda007964bfb
|
|
I'll help you extract the cluster, namespace, and PipelineRun name from the Konflux URL you provided.
|
|
|
|
From the URL: `https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rhtap-integration-tenant/pipelinerun/yq-on-pull-request-69sq8`
|
|
|
|
I'll parse it using the script's recommended method:
|
|
|
|
```bash
|
|
url="https://konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com/ns/rhtap-integration-tenant/pipelinerun/yq-on-pull-request-69sq8"
|
|
cluster=$(echo "$url" | sed 's|https://\([^/]*\).*|\1|')
|
|
namespace=$(echo "$url" | sed 's|.*/ns/\([^/]*\).*|\1|')
|
|
pipelinerun=$(echo "$url" | sed 's|.*/pipelinerun/\([^/?]*\).*|\1|')
|
|
```
|
|
|
|
Here's the breakdown:
|
|
- **Cluster**: `konflux-ui.apps.stone-prd-rh01.pg1f.p1.openshiftapps.com`
|
|
- **Namespace**: `rhtap-integration-tenant`
|
|
- **PipelineRun**: `yq-on-pull-request-69sq8`
|
|
|
|
You can now use these values in kubectl commands like:
|
|
```bash
|
|
kubectl get pipelinerun yq-on-pull-request-69sq8 -n rhtap-integration-tenant
|
|
```
|
|
|
|
Would you like me to help you debug this PipelineRun or do you need anything else?
|