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

feature: support defaults for related resource references #25

Open
1 task
embik opened this issue Feb 13, 2025 · 0 comments
Open
1 task

feature: support defaults for related resource references #25

embik opened this issue Feb 13, 2025 · 0 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@embik
Copy link
Member

embik commented Feb 13, 2025

Feature Description

Some tools (e.g. external-secrets-operator) might silently default related resource references. In those cases, the given path of a related resource is empty, but we still want to sync a generated object.

Because of that, we should support another "default" field in related resources. This field should support some common patterns (e.g. matching the parent object name) to construct the implied default object names and sync them.

Proposed Solution

The API should look something like this:

# configure where in the parent object we can find
# the name/namespace of the related resource (the child)
reference:
    name:
        path: spec.secretName
    default: "$resourceName"

If the given path cannot be found, syncagent should look for a related resource under the "default" name and consider that to be the referenced object.

Alternative Solutions

No response

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

@embik embik added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 13, 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