Skip to content
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

expose resolve_reference function in plan language #1365

Closed
adreyer opened this issue Oct 29, 2019 · 0 comments · Fixed by #1374
Closed

expose resolve_reference function in plan language #1365

adreyer opened this issue Oct 29, 2019 · 0 comments · Fixed by #1374
Assignees
Labels
Feature New features and improvements.

Comments

@adreyer
Copy link
Contributor

adreyer commented Oct 29, 2019

Use Case

I want to be able to look up values with the resolve_reference hook during plan execution. For example, when target systems change during plan execution (ie terraform_apply) I want to be able to use resolve_reference to look up new targets.

Describe the Solution You Would Like

expose resolve_reference as a plan function.

Additional Context

In the case where resolve_reference is used to generate target data it should be up to the plan author to use the Target API to create targets based on the data returned from resolve_reference. (ie no magic adding to inventory).

Solution

resolve_references function which accepts structured data and resolves all the references in that object. Returns the resolved data.

@adreyer adreyer added the Feature New features and improvements. label Oct 29, 2019
@donoghuc donoghuc added this to 📝To Do in DEPRECATED: old Bolt Kanban via automation Oct 31, 2019
@beechtom beechtom self-assigned this Oct 31, 2019
@beechtom beechtom moved this from 📝To Do to ⚡️Doing in DEPRECATED: old Bolt Kanban Oct 31, 2019
beechtom added a commit to beechtom/bolt that referenced this issue Nov 1, 2019
This adds support for a `resolve_references` plan function that accepts
a hash of target data, resolves all references in the hash, and returns
the resolved target data.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 1, 2019
This adds support for a `resolve_references` plan function that accepts
a hash of target data, resolves all references in the hash, and returns
the resolved target data.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 1, 2019
This adds support for a `resolve_references` plan function that accepts
a hash of target data, resolves all references in the hash, and returns
the resolved target data.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 1, 2019
This commit moves the resolve_references functions from
Bolt::Inventory::Group2 to Bolt::Plugin.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This commit moves the resolve_references functions from
Bolt::Inventory::Group2 to Bolt::Plugin.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This commit moves the resolve_references functions from
Bolt::Inventory::Group2 to Bolt::Plugin.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This commit moves the resolve_references functions from
Bolt::Inventory::Group2 to Bolt::Plugin.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This commit moves the resolve_references functions from
Bolt::Inventory::Group2 to Bolt::Plugin.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This commit moves the resolve_references functions from
Bolt::Inventory::Group2 to Bolt::Plugin.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This commit moves the resolve_references functions from
Bolt::Inventory::Group2 to Bolt::Plugin.
@beechtom beechtom moved this from ⚡️Doing to 🚧 Reviewing in DEPRECATED: old Bolt Kanban Nov 5, 2019
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This commit moves the resolve_references functions from
Bolt::Inventory::Group2 to Bolt::Plugin.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This commit moves the resolve_references functions from
Bolt::Inventory::Group2 to Bolt::Plugin.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This adds support for a `resolve_references` plan function that accepts
a hash of target data, resolves all references in the hash, and returns
the resolved target data.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
beechtom added a commit to beechtom/bolt that referenced this issue Nov 5, 2019
This adds support for a `resolve_references` plan function that accepts
a hash of target data, resolves all references in the hash, and returns
the resolved target data.
beechtom added a commit to beechtom/bolt that referenced this issue Nov 6, 2019
This adds support for a `resolve_references` plan function that accepts
a hash of target data, resolves all references in the hash, and returns
the resolved target data.
nicklewis added a commit that referenced this issue Nov 8, 2019
(GH-1365) Add resolve_references plan function
@lucywyman lucywyman removed this from 🚧 Reviewing in DEPRECATED: old Bolt Kanban Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New features and improvements.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants