From 4eaf3bd3be8903000a3d07b018785a1854c030f3 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Mon, 26 Dec 2022 19:37:10 +0100 Subject: [PATCH] Delete HP2.patch --- hotpatch/2212/HP2.patch | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 hotpatch/2212/HP2.patch diff --git a/hotpatch/2212/HP2.patch b/hotpatch/2212/HP2.patch deleted file mode 100644 index 744d26fc..00000000 --- a/hotpatch/2212/HP2.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git plugins/kubernetes_linux/backup.py plugins/kubernetes_linux/backup.py -index d8a48d45f89..365cd1718b4 100644 ---- plugins/kubernetes_linux/backup.py -+++ plugins/kubernetes_linux/backup.py -@@ -61,7 +61,8 @@ def backup_chart_releases(self, job, backup_name): - ['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(secrets, key=lambda d: d['metadata']['name'] and d.get('data')): - 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))