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 a test-case for config.GetExternalNameFromTemplated where the external-name template variable is not available #149

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

ulucinar
Copy link
Collaborator

Description of your changes

This PR adds a new test-case for config.GetExternalNameFromTemplated, where the template expression passed as a parameter to the function, does not contain the {{ .external_name }} variable. The expected behavior in this case is that the ID string is returned intact, i.e., the ID is the external-name.

I have:

  • Read and followed Crossplane's [contribution process].
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

make reviewable
[contribution process]: https://git.io/fj2m9

…ernal-name template variable is not available

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@ulucinar ulucinar merged commit 531a995 into crossplane:main Jan 23, 2023
@ulucinar ulucinar deleted the no-ext-name-in-template branch January 23, 2023 08:26
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.

2 participants