Skip to content

Commit

Permalink
[Issue-1227] remove and restore patched kube-scheduler manifest (#1229)
Browse files Browse the repository at this point in the history
  • Loading branch information
katarzynakulpa authored Sep 30, 2024
1 parent e765db6 commit 6faa194
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/scheduler/patcher/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit 6faa194

Please sign in to comment.