-
Notifications
You must be signed in to change notification settings - Fork 740
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(selector): select based on kork's RequestContext #1038
Changes from all commits
3fea9a7
ef358e6
b731de1
09a98fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,13 +44,13 @@ class CertificateService { | |
|
||
List<Map> getCertificates(String selectorKey) { | ||
listCommand("certificates") { | ||
clouddriverServiceSelector.select(selectorKey).getCertificates() | ||
clouddriverServiceSelector.select().getCertificates() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so in places where we used to pass the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the selector was the "user origin" app, which is in the auth context. You can get the same behavior as before with a config like this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and the
|
||
} execute() | ||
} | ||
|
||
List<Map> getCertificates(String cloudProvider, String selectorKey) { | ||
listCommand("certificates-$cloudProvider") { | ||
clouddriverServiceSelector.select(selectorKey).getCertificates(cloudProvider) | ||
clouddriverServiceSelector.select().getCertificates(cloudProvider) | ||
} execute() | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
selectorKey
is no longer used (prob could go in a separate PR to clean those up..) (same in a few below)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes this PR was already on the big side, might do an opportunistic cleanup later