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

feat: add configurationRef to GeneratedSecret #1691

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

zreigz
Copy link
Member

@zreigz zreigz commented Dec 17, 2024

Extend GeneratedSecret with configurationRef. The configurationRef points to another secret, allowing us to take the output of one GeneratedSecret and use it for templating another.

Test Plan

Checklist

  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a meaningful title and summary to convey the impact of this PR to a user.

@zreigz zreigz changed the title add configurationRef to GeneratedSecret feat: add configurationRef to GeneratedSecret Dec 17, 2024
@zreigz zreigz added enhancement New feature or request backend Changes related to the backend labels Dec 17, 2024
data[k] = value
}
}
data = lo.Assign(data, generatedSecret.Spec.Template)
Copy link
Member

@michaeljguarino michaeljguarino Dec 17, 2024

Choose a reason for hiding this comment

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

Oh wait no, the secret should be passed to the liquid template engine as a map like {"configuration": data} instead of just merging the secrets. That way we can write more advanced logic on top.

@zreigz
Copy link
Member Author

zreigz commented Dec 17, 2024

@michaeljguarino PTAL

@zreigz zreigz merged commit 75b87a4 into master Dec 17, 2024
14 checks passed
@zreigz zreigz deleted the configurationRef-generatedSecret branch December 17, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Changes related to the backend enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants