Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a presubmit e2e to kind #9591

Merged
merged 1 commit into from Sep 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
64 changes: 64 additions & 0 deletions config/jobs/kubernetes-sigs/kind/kind-presubmit.yaml
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"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gah, execute parses this as invalid flag >.>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed #9592

- "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"