From 664fc455db606bd1df0361d010e64b4cac9e3e73 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Tue, 27 Dec 2022 11:56:40 +0100 Subject: [PATCH] remove unused folder --- patches/backups.patch | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 patches/backups.patch diff --git a/patches/backups.patch b/patches/backups.patch deleted file mode 100644 index 3ce5de06..00000000 --- a/patches/backups.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- /usr/lib/python3/dist-packages/middlewared/plugins/kubernetes_linux/backup.py 2022-12-13 05:32:23.000000000 -0700 -+++ backups.patch 2022-12-26 14:14:25.075037767 -0700 -@@ -61,7 +61,8 @@ - ['metadata.namespace', '=', chart_release['namespace']] - ] - ) -- for secret in sorted(secrets, key=lambda d: d['metadata']['name']): -+ # We ignore this keeping in line with helm behaviour where the secret malformed is ignored by helm -+ for secret in sorted(filter(lambda d: d.get('data'), secrets), key=lambda d: d['metadata']['name']): - with open(os.path.join(secrets_dir, secret['metadata']['name']), 'w') as f: - f.write(self.middleware.call_sync('k8s.secret.export_to_yaml_internal', secret)) \ No newline at end of file