From 6faa1948274a7faa52d850506123e0fbc0005a34 Mon Sep 17 00:00:00 2001 From: katarzynakulpa Date: Mon, 30 Sep 2024 13:45:29 +0200 Subject: [PATCH] [Issue-1227] remove and restore patched kube-scheduler manifest (#1229) --- pkg/scheduler/patcher/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/scheduler/patcher/main.py b/pkg/scheduler/patcher/main.py index aac4e49fd..96f14ed62 100644 --- a/pkg/scheduler/patcher/main.py +++ b/pkg/scheduler/patcher/main.py @@ -159,6 +159,8 @@ def run(): if manifest.changed: manifest.backup() + manifest.remove() + log.info('manifest file({}) was removed'.format(manifest.path)) manifest.flush() log.info('manifest file({}) was patched'.format(manifest.path)) first_try = False @@ -253,7 +255,7 @@ def load(self): def flush(self): with open(self.path, 'w') as f: yaml.dump(self.content, f) - log.debug('manifest {} dumped'.format(self.path)) + log.debug('manifest {} dumped'.format(self.path)) def patch_volumes(self): volumes = self.content['spec']['volumes']