Skip to content

Commit 6c44dbe

Browse files
authored
Merge pull request #9 from aks-lts/maxhorstmann/release-tests-1-25
Add release-branch-jobs 1.25
2 parents ec14c78 + 4ecddf8 commit 6c44dbe

File tree

3 files changed

+498
-1
lines changed

3 files changed

+498
-1
lines changed

.github/workflows/deploy-lts-prow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
run: |
7474
envsubst < config/prow/release-branch-jobs/base.yaml > cm.yaml
7575
envsubst < config/prow/release-branch-jobs/1.24.yaml >> cm.yaml
76+
envsubst < config/prow/release-branch-jobs/1.25.yaml >> cm.yaml
7677
kubectl create configmap config -n prow --from-file=config.yaml=cm.yaml -o yaml --dry-run=client | kubectl apply -f -
7778
rm cm.yaml
7879

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,25 @@ LTS specific configuration and tooling for testing
1717
- `AZURE_RG` (Existing Azure resource group to use for deployment, e.g. `aks-lts-prow`)
1818
* Required secrets:
1919
- `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)
2121
- `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

Comments
 (0)