Skip to content

feature: Go Templated expressions #46

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

Open
1 task
xrstf opened this issue Mar 27, 2025 · 0 comments
Open
1 task

feature: Go Templated expressions #46

xrstf opened this issue Mar 27, 2025 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@xrstf
Copy link
Contributor

xrstf commented Mar 27, 2025

Feature Description

The original agent implementation supports a special variable syntax, meant to be extremely lightweight and simple to use. Variables like $remoteName or $remoteClusterName.

Now with the advent of label selectors, we would need variable support in a few more places. Plus, we would need more variables (like remoteName, localName, name, remoteNamespace, localNamespace, namespace, ...).

Proposed Solution

At this point, it becomes annoying to use, because what it $namespace? Is it $name + space or $namespace?

Before we begin to re-invent the wheel, we should just use Go templates. They are harder to write than I would personally like, but it' simply the Go standard way of doing things, brings with it support for conditions and is well understood across the ecosystem (certainly more than any homegrown solution).

So we need to implement support for the new Go templated expressions. #44 already incorporates them into the API, but returns a "not implemented" error at the moment.

Alternative Solutions

No response

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

@xrstf xrstf added the kind/feature Categorizes issue or PR as related to a new feature. label Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant