-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Fixes to kubekins test-image, add makefile #16287
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
all: push | ||
|
||
TAG = 0.1 | ||
|
||
container: | ||
docker build -t gcr.io/google_containers/kubekins-test . | ||
docker tag gcr.io/google_containers/kubekins-test gcr.io/google_containers/kubekins-test:$(TAG) | ||
|
||
push: container | ||
gcloud docker push gcr.io/google_containers/kubekins-test # Push image tagged as latest to repository | ||
gcloud docker push gcr.io/google_containers/kubekins-test:$(TAG) # Push version tagged image to repository (since this image is already pushed it will simply create or update version tag) | ||
|
||
clean: | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,11 +26,19 @@ source "${KUBE_ROOT}/hack/lib/init.sh" | |
kube::golang::setup_env | ||
|
||
API_REFERENCE_DOCS_ROOT="${KUBE_ROOT}/docs/api-reference" | ||
# Use REPO_DIR if provided so we can set it to the host-resolvable path | ||
# to the repo root if we are running this script from a container with | ||
# docker mounted in as a volume. | ||
# We pass the host output dir to update-api-reference-docs.sh, but use | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I just want to fully understand what's happening here - HOST_OUTPUT_DIR and TMP_OUTPUT_DIR end up mapping to the same files always, even if the paths are different, all due to docker wonkiness? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct. They point to the same files, you just need a different absolute path to resolve them on the host vs from inside the test container. |
||
# the regular one to compute diff (they will be the same if running this | ||
# test on the host, potentially different if running in a container). | ||
REPO_DIR=${REPO_DIR:-"${KUBE_ROOT}"} | ||
HOST_OUTPUT_DIR="${REPO_DIR}/_tmp/api-reference" | ||
TMP_OUTPUT_DIR="${KUBE_ROOT}/_tmp/api-reference" | ||
TMP_ROOT="${KUBE_ROOT}/_tmp" | ||
|
||
# Generate API reference docs in tmp. | ||
"./hack/update-api-reference-docs.sh" "${TMP_OUTPUT_DIR}" | ||
"./hack/update-api-reference-docs.sh" "${HOST_OUTPUT_DIR}" | ||
|
||
echo "diffing ${API_REFERENCE_DOCS_ROOT} against freshly generated docs" | ||
ret=0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No clean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No generated files, so nothing to clean. Empty target is the pattern used elsewhere.