-
Notifications
You must be signed in to change notification settings - Fork 505
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
images/kubecross: create a REGISTRY substitution to allow registry selection #1943
Conversation
/hold discussing here: https://kubernetes.slack.com/archives/CJH2GBF7Y/p1615465976127400 |
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.
@cpanato -- You'll need to add this to the substitutions
block, as well as variants.yaml
, so we respect a user's REGISTRY
choice if they decide to push the images to a project that is not the one they built the image in.
now we have a REGISTRY substitution and the default value is the same as we have in the makefile which points to The presubmit job will use the For other users using this they will need to set this in the variant or when calling the GCB perform the substitution flag |
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.
@cpanato -- Note the other substitutions in cloudbuild.yaml
.
They're purposely set to "bad" values, so a run will fail if substitutions don't happen properly.
Let's do the same for REGISTRY
.
@cpanato: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, justaugustus 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 |
/hold cancel |
What type of PR is this?
/kind feature
What this PR does / why we need it:
When building the image in another GCP project we need to push the image to the current project and not to the default one that is set in the makefile
this adds an env var to the GCB to set the REGISTRY env variable to be
gcr.io/$PROJECT_ID
A previous fix was made but was a mistake because the env var stays in the POD level and not goes to the GCB (xref: kubernetes/test-infra#21307)
/assign @justaugustus
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?