-
Notifications
You must be signed in to change notification settings - Fork 136
Propagate implicitly added attributes/arguments to instantiated rules #137
Conversation
6bc67c1
to
d0c6f6c
Compare
ping @mattmoor |
can you add visibility too, as we just discussed on slack? |
k8s/object.bzl
Outdated
@@ -399,24 +399,26 @@ def k8s_object(name, **kwargs): | |||
kwargs["image_targets"] = _deduplicate(kwargs.get("images", {}).values()) | |||
kwargs["image_target_strings"] = _deduplicate(kwargs.get("images", {}).values()) | |||
|
|||
tags = kwargs.get("tags", None) |
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.
From https://docs.bazel.build/versions/master/skylark/lib/globals.html#rule,
Attributes
visibility
,deprecation
,tags
,testonly
, andfeatures
are implicitly added and cannot be overridden.
Maybe we should have an implicit_attrs
dict listing all of these attrs, and pass that as kwargs to the instantiated rules?
I've made the requested changes but I don't know how to test it and I also don't have much time for it, sorry. |
The build is stuck |
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.
thanks!
cc @erain this PR would be good low-risk practice for how we test PRs in this repo (b/c secrets are hard). This is going to be easiest if I walk you through it end-to-end over GVC. |
What's blocking the merge? |
Sorry @mattmoor I missed this PR and the conversation. I will take the next chance to learn from the PR tests. |
Fixes #123.