-
Notifications
You must be signed in to change notification settings - Fork 43
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
correct handling of deps runtimes #109
Conversation
+use dict {"name": ":image" } or [ ":image" ] for images parameter +more tests
fcae250
to
4f2ee03
Compare
if not native.existing_rule(rule_name + name_suffix): | ||
k8s_container_push( | ||
name = rule_name + name_suffix, | ||
image = image, | ||
image = image_label, # buildifier: disable=uninitialized |
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.
Does the warning goes away if we handle the result of the image = images[image_name]
statement?
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.
not really, somehow it reacts to the left side which is not actually a variable
skylib/push.bzl
Outdated
mnemonic = "CopyFile", | ||
progress_message = "Copying files", | ||
use_default_shell_env = True, | ||
execution_requirements = {"no-remote": "1", "no-cache": "1"}, |
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.
Why the no-cache
parameter required here?
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.
it is not really required but it is more efficient to locally copy file (which may come from the cache) rather than talk to remote cache.
* +use images or image pushes in k8s_deploy images parameter +use dict {"name": ":image" } or [ ":image" ] for images parameter +more tests * correct handling of dependency runtimes * test fixes * use template to generate expected file * cleanup * buildifier * buildifier nit * explain execution_requirements rationale * buildifier Co-authored-by: Konstantin Zadorozhny <[email protected]>
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: