Skip to content

Commit

Permalink
Merge pull request #9591 from BenTheElder/kind-presubmit-e2e
Browse files Browse the repository at this point in the history
add a presubmit e2e to kind
  • Loading branch information
k8s-ci-robot committed Sep 27, 2018
2 parents da75dfa + a261f01 commit af78f23
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions config/jobs/kubernetes-sigs/kind/kind-presubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,67 @@ presubmits:
options:
- name: ndots
value: "1"
# conformance test against kubernetes master branch with `kind`, skipping
# serial tests so it runs in ~20m
- name: pull-kind-conformance-parallel
labels:
preset-service-account: "true"
preset-bazel-scratch-dir: "true"
preset-bazel-remote-cache-enabled: "true"
preset-dind-enabled: "true"
always_run: true
# TODO(bentheelder): optional until tested out a bit...
optional: true
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:v20180924-8e8468033-experimental
env:
# skip serial tests and run with --ginkgo-parallel
- name: "PARALLEL"
value: "true"
args:
- "--job=$(JOB_NAME)"
- "--root=/go/src"
- "--repo=sigs.k8s.io/kind=$(PULL_REFS)"
- "--repo=k8s.io/kubernetes=master"
- "--service-account=/etc/service-account/service-account.json"
- "--upload=gs://kubernetes-jenkins/logs"
- "--scenario=execute"
- "--"
# the script must run from kubernetes, but we're checking out kind
- "bash"
- "-c"
- "cd ./../../k8s.io.kubernetes && ./../../sigs.k8s.io/kind/hack/ci/e2e.sh"
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
# kind needs /lib/modules and cgroups from the host
volumeMounts:
- mountPath: /lib/modules
name: modules
readOnly: true
- mountPath: /sys/fs/cgroup
name: cgroup
resources:
requests:
# these are both a bit below peak usage during build
# this is mostly for building kubernetes
memory: "9000Mi"
# during the tests more like 3-20m is used
cpu: 2000m
volumes:
- name: modules
hostPath:
path: /lib/modules
type: Directory
- name: cgroup
hostPath:
path: /sys/fs/cgroup
type: Directory
# trialing this on kind jobs, we are using FQDN for in-cluster services, now
# so use ndots 1 to improve dns performance
# TODO(bentheelder): consider setting this at the cluster level instead
dnsConfig:
options:
- name: ndots
value: "1"

0 comments on commit af78f23

Please sign in to comment.