Skip to content

Commit

Permalink
Merge pull request e2e-win#232 from ionutbalutoiu/manual-prowjob-trig…
Browse files Browse the repository at this point in the history
…ger-doc

Manual Prowjob trigger documentation
  • Loading branch information
Ionut BALUTOIU authored Nov 28, 2023
2 parents 3da0a89 + 98ec7c7 commit aa79437
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions prow/docs/ManualProwjobTrigger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Manual Prowjob Trigger

In order to manually trigger a Prowjob, we need:

* [golang](https://go.dev/doc/install) tool installed.
* [kubectl](https://kubernetes.io/docs/tasks/tools) tool installed.
* `KUBECONFIG` environment variable set, for the Kubernetes cluster where the Prow system is running.

After golang is installed make sure that `$GOPATH/bin` is in your `$PATH` environment variable (more info about `$GOPATH`
[here](https://pkg.go.dev/cmd/go#hdr-GOPATH_environment_variable)).

Once golang is configured, we need to install the following tools:

```bash
go install k8s.io/test-infra/prow/cmd/mkpj@latest
go install github.com/mikefarah/yq/[email protected]
```

With the required tools installed, change directory to the [k8s-e2e-runner](../../) local cloned repo, and run the following to trigger a particular Prowjob:

```bash
JOB_NAME="aks-e2e-ltsc2022-azurecni-1.27"

mkpj --job=${JOB_NAME} \
--job-config-path=./prow/jobs/sig-windows-networking.yaml \
--config-path=./prow/config.yaml | \
yq '.metadata.namespace = "prow"' | kubectl apply -f -
```

NOTE: The above code snippet assumes that Prow system watches `Prowjob` resources from the `prow` Kubernetes namespace.

In order to check the available Prowjobs, check the [sig-windows-networking.yaml](../../prow/jobs/sig-windows-networking.yaml) file.

0 comments on commit aa79437

Please sign in to comment.