forked from e2e-win/k8s-e2e-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request e2e-win#232 from ionutbalutoiu/manual-prowjob-trig…
…ger-doc Manual Prowjob trigger documentation
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |