Skip to content

Commit

Permalink
Merge pull request kubernetes#2842 from shashidharatd/federation
Browse files Browse the repository at this point in the history
Adding canary prow jobs for federation pre-submits
  • Loading branch information
madhusudancs authored May 24, 2017
2 parents 384b53c + 94185cf commit 4197625
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jenkins/bootstrap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,8 @@ def testAllProjectAreUnique(self):
'ci-kubernetes-e2e-gce-federation.env': 'ci-kubernetes-federation-*',
'pull-kubernetes-federation-e2e-gce.env': 'pull-kubernetes-federation-e2e-gce-*',
'ci-kubernetes-pull-gce-federation-deploy.env': 'pull-kubernetes-federation-e2e-gce-*',
'pull-kubernetes-federation-e2e-gce-canary.env': 'pull-kubernetes-federation-e2e-gce-*',
'ci-kubernetes-pull-gce-federation-deploy-canary.env': 'pull-kubernetes-federation-e2e-gce-*',
'pull-kubernetes-e2e-gce.env': 'pull-kubernetes-e2e-gce-*',
'pull-kubernetes-e2e-gce-canary.env': 'pull-kubernetes-e2e-gce-*',
}
Expand Down
2 changes: 2 additions & 0 deletions jobs/ci-kubernetes-pull-gce-federation-deploy-canary.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PROJECT=k8s-jkns-pr-cnry-e2e-gce-fdrtn
KUBE_REGISTRY=gcr.io/k8s-jkns-pr-cnry-e2e-gce-fdrtn
31 changes: 31 additions & 0 deletions jobs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3625,6 +3625,20 @@
"UNKNOWN"
]
},
"ci-kubernetes-pull-gce-federation-deploy-canary": {
"args": [
"--env-file=platforms/gce.env",
"--env-file=jobs/ci-kubernetes-pull-gce-federation-deploy.env",
"--env-file=jobs/ci-kubernetes-pull-gce-federation-deploy-canary.env",
"--test=false",
"--down=false",
"--mode=local"
],
"scenario": "kubernetes_e2e",
"sigOwners": [
"UNKNOWN"
]
},
"ci-kubernetes-soak-cos-docker-validation-deploy": {
"args": [
"--env-file=platforms/gce.env",
Expand Down Expand Up @@ -4251,6 +4265,23 @@
"UNKNOWN"
]
},
"pull-kubernetes-federation-e2e-gce-canary": {
"args": [
"--env-file=platforms/gce.env",
"--env-file=jobs/pull-kubernetes-e2e.env",
"--env-file=jobs/pull-kubernetes-federation-e2e-gce.env",
"--env-file=jobs/pull-kubernetes-federation-e2e-gce-canary.env",
"--build",
"--stage=gs://kubernetes-release-pull/ci/pull-kubernetes-federation-e2e-gce-canary",
"--cluster=",
"--multiple-federations",
"--mode=local"
],
"scenario": "kubernetes_e2e",
"sigOwners": [
"UNKNOWN"
]
},
"pull-kubernetes-kubemark-e2e-gce": {
"args": [
"--build",
Expand Down
11 changes: 11 additions & 0 deletions jobs/pull-kubernetes-federation-e2e-gce-canary.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PROJECT=k8s-jkns-pr-cnry-e2e-gce-fdrtn
KUBE_REGISTRY=gcr.io/k8s-jkns-pr-cnry-e2e-gce-fdrtn

# Federation control plane options.
FEDERATION_DNS_ZONE_NAME=presubmit-canary.test-f8n.k8s.io.

# Federated clusters are turned up and torn down by a separate CI
# job. `ci-kubernetes-pull-gce-federation-deploy-canary` is the name of
# job and it writes the required kubeconfig file to a GCS bucket
# with its name. We need to read the kubeconfig from that bucket.
JENKINS_FEDERATION_PREFIX=gs://kubernetes-jenkins/federation/ci-kubernetes-pull-gce-federation-deploy-canary
142 changes: 142 additions & 0 deletions prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,58 @@ presubmits:
rerun_command: "@k8s-bot pull-kubernetes-federation-e2e-gce test this"
trigger: "@k8s-bot (pull-kubernetes-federation-e2e-gce )?test this"

- name: pull-kubernetes-federation-e2e-gce-canary
skip_branches:
- release-1.4
- release-1.5
- release-1.6
always_run: false
skip_report: true
context: pull-kubernetes-federation-e2e-gce-canary
rerun_command: "@k8s-bot pull-kubernetes-federation-e2e-gce-canary test this"
trigger: "@k8s-bot (pull-kubernetes-federation-e2e-gce-canary )?test this"
spec:
containers:
- args:
- --pull=$(PULL_REFS)
- --root=/go/src
- --repo=k8s.io/kubernetes
- --upload=gs://kubernetes-jenkins/pr-logs
- --git-cache=/root/.cache/git
- --clean
- --json
- --timeout=90
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/service-account/service-account.json
- name: USER
value: prow
- name: JENKINS_GCE_SSH_PRIVATE_KEY_FILE
value: /etc/ssh-key-secret/ssh-private
- name: JENKINS_GCE_SSH_PUBLIC_KEY_FILE
value: /etc/ssh-key-secret/ssh-public
image: gcr.io/k8s-testimages/kubekins-e2e-prow:v20170515-c7116fb4
volumeMounts:
- mountPath: /etc/service-account
name: service
readOnly: true
- mountPath: /etc/ssh-key-secret
name: ssh
readOnly: true
- mountPath: /root/.cache
name: cache-ssd
volumes:
- name: service
secret:
secretName: service-account
- name: ssh
secret:
defaultMode: 256
secretName: ssh-key-secret
- hostPath:
path: /mnt/disks/ssd0
name: cache-ssd

- name: pull-kubernetes-kubemark-e2e-gce
always_run: true
context: pull-kubernetes-kubemark-e2e-gce
Expand Down Expand Up @@ -349,6 +401,58 @@ presubmits:
rerun_command: "@k8s-bot pull-security-kubernetes-federation-e2e-gce test this"
trigger: "@k8s-bot (pull-security-kubernetes-federation-e2e-gce )?test this"

- name: pull-security-kubernetes-federation-e2e-gce-canary
skip_branches:
- release-1.4
- release-1.5
- release-1.6
always_run: false
skip_report: true
context: pull-security-kubernetes-federation-e2e-gce-canary
rerun_command: "@k8s-bot pull-security-kubernetes-federation-e2e-gce-canary test this"
trigger: "@k8s-bot (pull-security-kubernetes-federation-e2e-gce-canary )?test this"
spec:
containers:
- args:
- --pull=$(PULL_REFS)
- --root=/go/src
- --repo=k8s.io/kubernetes
- --upload=gs://kubernetes-jenkins/pr-logs
- --git-cache=/root/.cache/git
- --clean
- --json
- --timeout=90
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/service-account/service-account.json
- name: USER
value: prow
- name: JENKINS_GCE_SSH_PRIVATE_KEY_FILE
value: /etc/ssh-key-secret/ssh-private
- name: JENKINS_GCE_SSH_PUBLIC_KEY_FILE
value: /etc/ssh-key-secret/ssh-public
image: gcr.io/k8s-testimages/kubekins-e2e-prow:v20170515-c7116fb4
volumeMounts:
- mountPath: /etc/service-account
name: service
readOnly: true
- mountPath: /etc/ssh-key-secret
name: ssh
readOnly: true
- mountPath: /root/.cache
name: cache-ssd
volumes:
- name: service
secret:
secretName: service-account
- name: ssh
secret:
defaultMode: 256
secretName: ssh-key-secret
- hostPath:
path: /mnt/disks/ssd0
name: cache-ssd

- name: pull-security-kubernetes-kubemark-e2e-gce
always_run: true
context: pull-security-kubernetes-kubemark-e2e-gce
Expand Down Expand Up @@ -2919,3 +3023,41 @@ periodics:
- hostPath:
path: /mnt/disks/ssd0
name: cache-ssd

- name: ci-kubernetes-pull-gce-federation-deploy-canary
interval: 24h
spec:
containers:
- args:
- --timeout=90
- --bare
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/service-account/service-account.json
- name: USER
value: prow
- name: JENKINS_GCE_SSH_PRIVATE_KEY_FILE
value: /etc/ssh-key-secret/ssh-private
- name: JENKINS_GCE_SSH_PUBLIC_KEY_FILE
value: /etc/ssh-key-secret/ssh-public
image: gcr.io/k8s-testimages/kubekins-e2e-prow:v20170515-c7116fb4
volumeMounts:
- mountPath: /etc/service-account
name: service
readOnly: true
- mountPath: /etc/ssh-key-secret
name: ssh
readOnly: true
- mountPath: /root/.cache
name: cache-ssd
volumes:
- name: service
secret:
secretName: service-account
- name: ssh
secret:
defaultMode: 256
secretName: ssh-key-secret
- hostPath:
path: /mnt/disks/ssd0
name: cache-ssd
4 changes: 4 additions & 0 deletions testgrid/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ test_groups:
gcs_prefix: kubernetes-jenkins/logs/ci-kubernetes-soak-gce-federation-test
- name: ci-kubernetes-pull-gce-federation-deploy
gcs_prefix: kubernetes-jenkins/logs/ci-kubernetes-pull-gce-federation-deploy
- name: ci-kubernetes-pull-gce-federation-deploy-canary
gcs_prefix: kubernetes-jenkins/logs/ci-kubernetes-pull-gce-federation-deploy-canary
- name: ci-kubernetes-federation-build
gcs_prefix: kubernetes-jenkins/logs/ci-kubernetes-federation-build
- name: ci-kubernetes-federation-build-1.6
Expand Down Expand Up @@ -1741,6 +1743,8 @@ dashboards:
test_group_name: ci-kubernetes-soak-gce-federation-test
- name: pull-gce-deploy
test_group_name: ci-kubernetes-pull-gce-federation-deploy
- name: pull-gce-deploy-canary
test_group_name: ci-kubernetes-pull-gce-federation-deploy-canary
- name: build
test_group_name: ci-kubernetes-federation-build
- name: build-1.6
Expand Down

0 comments on commit 4197625

Please sign in to comment.