You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,5 +17,25 @@ LTS specific configuration and tooling for testing
17
17
-`AZURE_RG` (Existing Azure resource group to use for deployment, e.g. `aks-lts-prow`)
18
18
* Required secrets:
19
19
-`AZURE_CREDENTIALS` (output of `az ad sp create-for-rbac --role Contributor --sdk-auth --scope /subscriptions/$AZURE_SUBSCRIPTION/resourceGroups/$AZURE_RG`)
20
-
-`APP_PRIVATE_KEY` (private key for GitHub App- see [GitHub App](https://docs.prow.k8s.io/docs/getting-started-deploy/#github-app))
20
+
-`APP_PRIVATE_KEY` (private key for GitHub App- see [GitHub App](https://docs.prow.k8s.io/docs/getting-started-deploy/#github-app); make sure to use the private key and not the client secret)
21
21
-`HMAC_TOKEN` (generate randomly via `openssl rand -hex 20` and also set in GitHub App, see [Create the GitHub secrets](https://docs.prow.k8s.io/docs/getting-started-deploy/#create-the-github-secrets))
22
+
* Prow jobs for each K8S release need to be added manually:
23
+
- For an example, see https://github.com/aks-lts/test-infra/pull/9
24
+
- Create a new config file `config/prow/release-branch-jobs/<version>.yaml`
25
+
- Add a new line to the `Create job configs step` in `.github/workflows/deploy-lts-prow.yaml`
26
+
(follow the existing pattern, i.e. `envsubst < config/prow/release-branch-jobs/<version>.yaml >> cm.yaml`)
27
+
- Go to the [kubernetes/test-infra](https://github.com/kubernetes/test-infra) repo and find the config file they use
28
+
for that version under [config/jobs/kubernetes/sig-release/release-branch-jobs](https://github.com/kubernetes/test-infra/tree/master/config/jobs/kubernetes/sig-release/release-branch-jobs).
29
+
It might have been deleted already (when that version went out of support), so inspect the history of that folder and find the last version right before deletion.
30
+
- Copy only the `presubmits:` section of that file to the new config file you created (`config/prow/release-branch-jobs/<version>.yaml`)
31
+
- Remove all tests for a repo other than `kubernetes/kubernetes`, for example `kubernetes/perf-tests`
32
+
- Replace `kubernetes/kubernetes` with `$GITHUB_ORG/$GITHUB_REPO`
33
+
- Remove all the `cluster: ...` rows (`sed -i '' '/cluster: /d' <version>.yaml`)
34
+
- Remove all tests with `--provider=gce`
35
+
- In the `branches:` sections of the remaining jobs, make sure they contain the name of the LTS branch you want tests to run on (typically `release-<version>-lts`)
36
+
- Push these changes to a branch and run the [Deploy AKS LTS Prow](https://github.com/aks-lts/test-infra/actions/workflows/deploy-lts-prow.yaml) workflow
37
+
for that branch (click "Run workflow" and select your branch). Make sure it succeeds.
38
+
- Create a test PR on the [aks-lts/kubernetes](https://github.com/aks-lts/kubernetes) repo. Make sure it targets the desired branch (`release-<version>-lts`).
39
+
Check if the tests run and succeed.
40
+
- If tests don't run or fail, check https://aka.ms/aks/prow. Some of them might need additional tweaking, e.g. request less CPU/memory
41
+
- Once all is looking good, remember to merge the PR on this repo.
0 commit comments