From d071b135e7913a1f074f711b4a32f77e5c66f968 Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 12 Nov 2024 11:08:05 +0000 Subject: [PATCH] use Infrequent_access instead --- django_code/kubernetes_connection/apps.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django_code/kubernetes_connection/apps.py b/django_code/kubernetes_connection/apps.py index acb378c..3b80b57 100644 --- a/django_code/kubernetes_connection/apps.py +++ b/django_code/kubernetes_connection/apps.py @@ -115,10 +115,10 @@ def backup_job_yaml(request): config.load_kube_config(config_file='/code/kubeconfig') v1 = client.BatchV1Api() - with urllib.request.urlopen("https://gitea.tryton.geeraert.eu/pi-ux-ce/Backup_kube/raw/branch/main/Django/pod.yaml") as fo: + with urllib.request.urlopen(https://gitea.tryton.geeraert.eu/pi-ux-ce/Backup_kube/raw/branch/main/Infrequent_access/pod.yaml") as manifest_url: -# with open('/code/pod.yaml') as fo: - job = yaml.safe_load(fo) +# with open('/code/pod.yaml') as : + job = yaml.safe_load(manifest_url) v1.create_namespaced_job( job['metadata']['namespace'], job, pretty=True )