internal: update tenant certificates on outpost refresh

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-12-23 00:38:49 +01:00
parent 6f32eeea43
commit 87e99625e6
3 changed files with 15 additions and 1 deletions

View File

@ -44,6 +44,7 @@ func (w *Watcher) Start() {
}
func (w *Watcher) Check() {
w.log.Info("updating tenant certificates")
tenants, _, err := w.client.CoreApi.CoreTenantsListExecute(api.ApiCoreTenantsListRequest{})
if err != nil {
w.log.WithError(err).Warning("failed to get tenants")