Skip to content

Commit

Permalink
Merge pull request #456 from kubernetes-sigs/bugfix/manifest-image-perms
Browse files Browse the repository at this point in the history
Fix issue generating manifests due to Docker perms
  • Loading branch information
k8s-ci-robot authored Jul 24, 2019
2 parents 9753c7b + 56a5822 commit b1712ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ With the above environment variable file it is now possible to generate the mani

```shell
$ docker run --rm \
--user "$(id -u):$(id -g)" \
-v "$(pwd)/management-cluster":/out \
-v "$(pwd)/envvars.txt":/out/envvars.txt:ro \
gcr.io/cluster-api-provider-vsphere/release/manifests:latest \
Expand Down Expand Up @@ -142,6 +143,7 @@ Using the same Docker command as above, generate resources for a new cluster, th

```shell
docker run --rm \
--user "$(id -u):$(id -g)" \
-v "$(pwd)/workload-cluster-1":/out \
-v "$(pwd)/envvars.txt":/out/envvars.txt:ro \
gcr.io/cluster-api-provider-vsphere/release/manifests:latest \
Expand Down
3 changes: 3 additions & 0 deletions hack/tools/generate-yaml/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ COPY ./vendor/sigs.k8s.io/cluster-api/config ./vendor/sigs.k8s.io/cluster-api/co
# Copy in the examples directory.
COPY ./cmd/clusterctl/examples/vsphere/*.template ./cmd/clusterctl/examples/vsphere/

# Ensure all the directories in the /build directory are writeable.
RUN find . -type d -exec chmod 0777 \{\} \;

# This build arg specifies the value of the -m flag for generate-yaml.sh, the
# CAPV manager image inserted into the generated provider components.
ARG CAPV_MANAGER_IMAGE=gcr.io/cluster-api-provider-vsphere/ci/manager:latest
Expand Down

0 comments on commit b1712ab

Please sign in to comment.