Skip to content

Commit

Permalink
Fix branch names for master pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciprian Hacman committed Jul 10, 2020
1 parent 7995986 commit 9394a2a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions config/jobs/kubernetes/kops/build-pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def expand(s):
return s.format(**subs)

if branch == 'master':
extract = "release/latest"
e2e_image = "gcr.io/k8s-testimages/kubekins-e2e:v20200623-2424179-master"
extract = "release/latest-1.19"
e2e_image = "gcr.io/k8s-testimages/kubekins-e2e:v20200623-2424179-1.19"
else:
extract = expand("release/stable-{k8s_version}")
# Hack to stop the autobumper getting confused
Expand Down Expand Up @@ -122,7 +122,7 @@ def generate():
print("# Test scenarios generated by build-pipeline.py (do not manually edit)")
print("periodics:")
for branch in branches:
k8s_version = "latest" if branch == "master" else branch
k8s_version = "1.19" if branch == "master" else branch
ssh_user = "admin" if branch in ("1.16", "1.17") else "ubuntu"
build_tests(branch=branch, k8s_version=k8s_version, ssh_user=ssh_user)

Expand Down
8 changes: 4 additions & 4 deletions config/jobs/kubernetes/kops/kops-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Test scenarios generated by build-pipeline.py (do not manually edit)
periodics:

# {"branch": "master", "k8s_version": "latest"}
# {"branch": "master", "k8s_version": "1.19"}
# Verify the latest-ci version from the master branch of kops
# Runs a small subset of the e2e tests.
# Publishes the version to latest-ci-updown-green on success.
Expand All @@ -16,7 +16,7 @@ periodics:
preset-aws-credential: "true"
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:v20200623-2424179-master
- image: gcr.io/k8s-testimages/kubekins-e2e:v20200623-2424179-1.19
command:
- runner.sh
- kubetest
Expand All @@ -34,7 +34,7 @@ periodics:
- --cluster=e2e-kops-pipeline-updown-kopsmaster.test-cncf-aws.k8s.io
- --kops-ssh-user=ubuntu
- --kops-nodes=4
- --extract=release/latest
- --extract=release/latest-1.19
- --kops-state=s3://k8s-kops-prow/
- --kops-ssh-key=$(AWS_SSH_PRIVATE_KEY_FILE)
- --kops-ssh-public-key=$(AWS_SSH_PUBLIC_KEY_FILE)
Expand All @@ -46,7 +46,7 @@ periodics:
- --test_args=--ginkgo.focus=\[k8s.io\]\sNetworking.*\[Conformance\] --ginkgo.skip=\[Slow\]|\[Serial\]
- --ginkgo-parallel
annotations:
testgrid-dashboards: sig-cluster-lifecycle-kops, google-aws, kops-misc, kops-k8s-latest
testgrid-dashboards: sig-cluster-lifecycle-kops, google-aws, kops-misc, kops-k8s-1.19
testgrid-tab-name: kops-pipeline-updown-master

# {"branch": "1.16", "k8s_version": "1.16"}
Expand Down
2 changes: 2 additions & 0 deletions config/testgrids/kubernetes/kops/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dashboard_groups:
- kops-k8s-1.16
- kops-k8s-1.17
- kops-k8s-1.18
- kops-k8s-1.19
- kops-k8s-latest

dashboards:
Expand All @@ -44,4 +45,5 @@ dashboards:
- name: kops-k8s-1.16
- name: kops-k8s-1.17
- name: kops-k8s-1.18
- name: kops-k8s-1.19
- name: kops-k8s-latest

0 comments on commit 9394a2a

Please sign in to comment.