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

Respect windows_desktop_labels for dynamic desktops #48941

Merged
merged 5 commits into from
Nov 15, 2024

Conversation

probakowski
Copy link
Contributor

Similar to other resources (like DB) we should respect labels when doing CRUD operations on dynamic windows desktops

@probakowski probakowski added the no-changelog Indicates that a PR does not require a changelog entry label Nov 13, 2024
@probakowski probakowski requested a review from zmb3 November 13, 2024 22:22
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-48941.d3pp5qlev8mo18.amplifyapp.com

@@ -349,6 +349,7 @@ func validateRoleExpressions(r types.Role) error {
{"db_labels", types.KindDatabase},
{"db_service_labels", types.KindDatabaseService},
{"windows_desktop_labels", types.KindWindowsDesktop},
{"windows_desktop_labels", types.KindDynamicWindowsDesktop},
Copy link
Contributor

Choose a reason for hiding this comment

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

since GetLabelMatchers returns the same expression I think there's no need for this, it's just validating the same expression twice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we leave it here for consistency sake?

lib/auth/dynamicwindows/dynamicwindowsv1/service_test.go Outdated Show resolved Hide resolved
@probakowski probakowski added this pull request to the merge queue Nov 15, 2024
Merged via the queue into master with commit 1ebf8a3 Nov 15, 2024
41 checks passed
@probakowski probakowski deleted the probakowski/dynamic-desktop-labels branch November 15, 2024 16:20
@public-teleport-github-review-bot

@probakowski See the table below for backport results.

Branch Result
branch/v17 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v17 no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants