Skip to content

Commit

Permalink
Add public getter
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Nov 2, 2024
1 parent d3efe1b commit 481011b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main/groovy/io/seqera/wave/auth/RegistryConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ class RegistryConfig {
* io: [ ... ]
* ]
*/
Map<String,Object> registries
private Map<String,Object> registries

Map<String, Object> getRegistries() {
return registries
}

RegistryKeys getRegistryKeys(String registryName) {
final String defaultRegistry = registries.get('default')?.toString() ?: 'docker.io'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ import jakarta.annotation.PostConstruct
@ConfigurationProperties('wave')
class AccountServiceImpl implements AccountService {

Map<String,String> accounts = Map.of()
private Map<String,String> accounts = Map.of()

Map<String,String> getAccounts() {
return accounts
}

@PostConstruct
private dumpAccounts() {
Expand Down

0 comments on commit 481011b

Please sign in to comment.