Skip to content

Commit

Permalink
run hello world containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltachaos committed Aug 31, 2024
1 parent 8fe6c49 commit 9afc91d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def add_job(job):
job["serviceAccountName"] = get_serviceaccount_name()

configmap = v1.read_namespaced_config_map(name=configmap_name, namespace=namespace)
print(configmap)

data = configmap.data()
data["job-" + str(lastjob) + ".yaml"] = json.dumps({"spec": {"template": {"spec": job}}})
configmap.data(data)
if configmap.data == None:
configmap.data = {}

configmap.data["job-" + str(lastjob) + ".yaml"] = json.dumps({"spec": {"template": {"spec": job}}})
v1.patch_namespaced_config_map(name=configmap_name, namespace=namespace, body=configmap)
lastjob = lastjob + 1

Expand Down

0 comments on commit 9afc91d

Please sign in to comment.