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

service-catalog cross build test with dind #8734

Merged
merged 1 commit into from
Jul 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,37 @@ presubmits:
env:
- name: NO_DOCKER
value: "1"
- name: pull-service-catalog-xbuild
agent: kubernetes
context: pull-service-catalog-xbuild
always_run: true
skip_report: false
rerun_command: "/test pull-service-catalog-xbuild"
trigger: "(?m)^/test (all|pull-service-catalog-xbuild)\\s*"
labels:
preset-service-account: "true"
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:v20180716-9145034c9-1.10
args:
- "--repo=sigs.k8s.io/$(REPO_NAME)=$(PULL_REFS)"
Copy link
Member

Choose a reason for hiding this comment

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

this should be github.com/kubernetes-incubator instead of sigs.k8s.io

Copy link
Contributor Author

Choose a reason for hiding this comment

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

of course it should 🙃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

followup fix in #8763

- "--root=/go/src/github.com/kubernetes-incubator/$(REPO_NAME)"
- "--timeout=60"
- "--scenario=execute"
- "--"
- "make"
- "images-all"
- "svcat-all"
env:
- name: DOCKER_IN_DOCKER_ENABLED
Copy link
Member

Choose a reason for hiding this comment

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

I'm going to turn this into a preset soon. Initially we didn't because we wanted to discourage depending on it (I only initially built the support to help us get the rest of our existing jobs onto Prow), but so far it works just fine.

This must be paired with an emptyDir volume for the the graph storage (which is remapped /var/lib/docker for :reasons:, we should probably unset the option that changes that). Unless things have improved this is necessary to avoid issues with overlays on overlays. Existing docker-in-docker jobs should have this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What is a preset?

I was basing off of, which has preset-service-account
https://github.com/kubernetes/test-infra/blob/68c68683a066e7b9986113c73a6dcb0f48775ef9/config/jobs/kubernetes-sigs/cluster-api-provider-openstack/cluster-api-provider-openstack-presubmits.yaml

It does not have a emptydir, so maybe it's a bad example, oops.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

value: "true"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
# docker-in-docker needs a place to store the images
volumeMounts:
- name: docker-graph
mountPath: /docker-graph
volumes:
- name: docker-graph
emptyDir: {}