-
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
Merged AccountService into CredentialsService #242
Conversation
@@ -0,0 +1,7 @@ | |||
#!/bin/bash |
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.
Accidentally included this file.
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.
Reverted.
LOTM. Not sure if someone else wants to have a look too. |
7d8f345
to
825c0f6
Compare
@Autowired | ||
CredentialsService credentialsService | ||
|
||
List<String> anonymousAllowedAccounts = [] |
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.
concurrent collection this
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.
It will get pulled in once this PR has been rebased on the other one.
LGTM after merge with upstream. |
.disable() | ||
} | ||
|
||
@Scheduled(initialDelay = 30000L, fixedDelay = 60000L) |
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.
Anything bad happen to the scheduler if an exception is raised? Might want to wrap in a try/catch.
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.
Done. Also removed initial delay - it isn't necessary if clouddriver is already up.
Edit: Made the change in the other PR, where this block was introduced.
825c0f6
to
12707d4
Compare
getAccounts
will now return all anonymous accounts. A new, overloaded method is introduced to get all anonymous accounts + all accounts the user has access to if the method is provided with the user's roles.Based on #241 to be merged first. Review second commit only. Tests won't pass until spinnaker/kork#40 is merged and released.
@ajordens @cfieber @jtk54 @duftler PTAL