From c2051fa067e5de295a1cb7fbf1ae839e28f6fef8 Mon Sep 17 00:00:00 2001 From: Arnaud Tincelin Date: Wed, 9 Jun 2021 12:12:52 +0200 Subject: [PATCH] Hack to prevent the program from exiting --- cmd/aks-periscope/aks-periscope.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/aks-periscope/aks-periscope.go b/cmd/aks-periscope/aks-periscope.go index ca1fea98..ee9af9ef 100644 --- a/cmd/aks-periscope/aks-periscope.go +++ b/cmd/aks-periscope/aks-periscope.go @@ -150,5 +150,11 @@ func zipAndExport(exporter interfaces.Exporter) error { return err } + // TODO: Hack: for now AKS-Periscope is running as a deamonset so it shall not stop (or the pod will be restarted) + // Revert from https://github.com/Azure/aks-periscope/blob/b98d66a238e942158ef2628a9315b58937ff9c8f/cmd/aks-periscope/aks-periscope.go#L70 + select {} + + // TODO: remove this //nolint comment once the select{} has been removed + //nolint:govet return nil }