Skip to content

Commit

Permalink
bugfix for watch and also refresh not working anymore fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Wenzel committed Jan 27, 2020
1 parent 5158cee commit 065567c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public Watcher(EventHandler eventHandler, MixedOperation<Vault, VaultList, Donea
@Bean
CommandLineRunner watchForResource() {
return (args) -> {
customResource.watch(new io.fabric8.kubernetes.client.Watcher<Vault>() {
customResource.inAnyNamespace().watch(new io.fabric8.kubernetes.client.Watcher<Vault>() {
@Override
public void eventReceived(Action action, Vault resource) {
log.info("Received action: {} for {} in namespace {}", action.name(), resource.getMetadata().getName(), resource.getMetadata().getNamespace());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ScheduledRefresh(
public void refreshCertificates() {
log.info("Start refresh of secret...");

VaultList list = customResource.list();
VaultList list = customResource.inAnyNamespace().list();
for (Vault resource : list.getItems()) {
RequiresRefresh requiresRefresh = typeRefreshFactory.get(resource.getSpec().getType().toString());
try {
Expand Down

0 comments on commit 065567c

Please sign in to comment.