Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Expand make vars for cluster name #106

Merged
merged 2 commits into from
Feb 6, 2018
Merged

Conversation

schoren
Copy link

@schoren schoren commented Feb 6, 2018

This PR is to propose a fix to #77

@bazel-io
Copy link
Member

bazel-io commented Feb 6, 2018

Can one of the admins verify this patch?

Copy link
Contributor

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! thanks for the PR.

@@ -136,12 +136,14 @@ def _common_impl(ctx):
files = [ctx.executable.resolver]

cluster_arg = ctx.attr.cluster
cluster_arg = ctx.expand_make_variables("cluster", cluster_arg, {})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the sake of completeness, can you add this for namespace and image_chroot as well? (any anything else I might be forgetting).

@mattmoor
Copy link
Contributor

mattmoor commented Feb 6, 2018

FYI the process for this (since Travis won't give secrets to PRs from other repos) is that once reviewed I'll merge this into a branch and open a second PR to make sure we don't break the integration tests.

This is awesome, thanks again.

@schoren
Copy link
Author

schoren commented Feb 6, 2018

Just added namespace and image_chroot. Let me know if I missed something. I'm new with bazel and rules_k8s, so I might miss stuff.

@mattmoor
Copy link
Contributor

mattmoor commented Feb 6, 2018

@bazel-io Test this please

@mattmoor mattmoor changed the base branch from master to make-vars February 6, 2018 22:17
@mattmoor mattmoor merged commit 56f0d93 into bazelbuild:make-vars Feb 6, 2018
mattmoor pushed a commit that referenced this pull request Feb 7, 2018
* implemented make vars expansion

* added make vars expansion for namespace and image_chroot

* Fix buildifier issues
mattmoor added a commit that referenced this pull request Feb 7, 2018
* implemented make vars expansion

* added make vars expansion for namespace and image_chroot

* Fix buildifier issues
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants