Skip to content

[v15] Implement label templates for db objects (#38630)#39496

Merged
Tener merged 1 commit intobranch/v15from
tener/v15/backport-38630
Mar 20, 2024
Merged

[v15] Implement label templates for db objects (#38630)#39496
Tener merged 1 commit intobranch/v15from
tener/v15/backport-38630

Conversation

@Tener
Copy link
Copy Markdown
Contributor

@Tener Tener commented Mar 18, 2024

Backport #38630 to v15.

Manual backport due to missing RFD backport to v15.

changelog: Database object labels will now support templates.

* Implement label templates for db objects

- Expose template parsing utilities.
- Interpolate label templates using `typical` library.
- Validate label templates as part of import rule validation.
- Refactor code to fix cyclic imports.

* Use database_service_name and object_kind for label key in preset

* revert changes to `lib/utils/parse/parse.go`

* Reimplement splitExpression locally for import rules

* Update RFD with recent changes and mark it as implemented

* rename files, add test coverage, use empty spec for validation

* Log template errors directly with debug logs, log total error count as info.

* Update logs
@github-actions github-actions Bot added backport database-access Database access related issues and PRs rfd Request for Discussion size/lg tctl tctl - Teleport admin tool labels Mar 18, 2024
@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@Tener Tener changed the title Implement label templates for db objects (#38630) [v15] Implement label templates for db objects (#38630) Mar 18, 2024
@Tener
Copy link
Copy Markdown
Contributor Author

Tener commented Mar 19, 2024

@smallinsky PTAL

@Tener Tener added this pull request to the merge queue Mar 20, 2024
Merged via the queue into branch/v15 with commit c51eea2 Mar 20, 2024
@Tener Tener deleted the tener/v15/backport-38630 branch March 20, 2024 10:59
@tcsc tcsc mentioned this pull request Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport database-access Database access related issues and PRs rfd Request for Discussion size/lg tctl tctl - Teleport admin tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants