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

Add helper functions for retrieving composed and composite resources #81

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jtucci
Copy link
Contributor

@jtucci jtucci commented Mar 29, 2024

Description of your changes

This PR:

  • Introduces a new helper function "getComposedResource" which returns the observed composed resource specified in the functions argument.
  • Introduces a new helper function "getCompositeResource" which returns the observed composite resource.

Fixes #25

I have:

@jtucci jtucci force-pushed the jtucci/add-helper-functions branch from 1afbb79 to 685653e Compare March 29, 2024 21:47
Signed-off-by: Jony Tucci <jony@Jonys-Mac-mini.local>
Signed-off-by: Jon Tucci <jonytucci01@gmail.com>
@jtucci jtucci force-pushed the jtucci/add-helper-functions branch from 685653e to dc62196 Compare March 29, 2024 21:57
name: my-provider-cfg
---
# Use getComposedResource to retrieve the observed resource named "flexServer"
{{ $flexServer := getComposedResource . "flexServer" }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the resource was named flexserver all lowercase instead of flexServer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed :)

Signed-off-by: Jon Tucci <jonytucci01@gmail.com>
Signed-off-by: Jon Tucci <jonytucci01@gmail.com>
Signed-off-by: Jon Tucci <jonytucci01@gmail.com>
Signed-off-by: Jon Tucci <jonytucci01@gmail.com>
@jtucci jtucci requested a review from jaylevin April 10, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add helper functions to access composed and composite resources
3 participants