-
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
Fix kubemark image-registry name assignment #62539
Fix kubemark image-registry name assignment #62539
Conversation
@@ -17,5 +17,5 @@ | |||
CLOUD_PROVIDER="${CLOUD_PROVIDER:-gce}" | |||
CONTAINER_REGISTRY="${CONTAINER_REGISTRY:-gcr.io}" | |||
PROJECT="${PROJECT:-}" | |||
FULL_REGISTRY="${CONTAINER_REGISTRY}/${PROJECT}" | |||
FULL_REGISTRY="${FULL_REGISTRY:-}" |
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.
Could you maybe rename this variable to KUBEMARK_IMAGE_REGISTRY
to be more explicit?
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.
done
test/kubemark/start-kubemark.sh
Outdated
@@ -207,6 +207,9 @@ function create-and-upload-hollow-node-image { | |||
CURR_DIR=`pwd` | |||
cd "${MAKE_DIR}" | |||
RETRIES=3 | |||
if [[ -z "${FULL_REGISTRY-}" ]]; then |
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.
I guess you can replace this whole if statement with sth like FULL_REGISTRY="${FULL_REGISTRY:-$CONTAINER_REGISTRY/..}"
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.
done
/ok-to-test |
Also I would suggest having more descriptive PR title. For e.g "Fix kubemark image-registry name assignment" |
4e5b455
to
b8b0ee2
Compare
b8b0ee2
to
afc3bef
Compare
/retest |
1 similar comment
/retest |
/lgtm Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: krzysied, shyamjvs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Automatic merge from submit-queue (batch tested with PRs 62407, 62602, 62539, 62639, 62647). If you want to cherry-pick this change to another branch, please follow the instructions here. |
Allows to create kubemark instance without explicitly specifying the project name.
start-kubemark.sh used to not run properly when using project name acquired from the cloud provider.