From a5efb24cc32b1a61e598aa4e019e27d96697f561 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 21 Nov 2023 10:31:37 -0800 Subject: [PATCH] Fix annotations on Pod created from Job Due to a typo, the annotations from the spec in a Job resource were not being copied to the created Pod in the Kubernetes mock. This bug was introduced in 5.0.0a4. --- src/safir/testing/kubernetes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/safir/testing/kubernetes.py b/src/safir/testing/kubernetes.py index 34d1bae5..3dc64f51 100644 --- a/src/safir/testing/kubernetes.py +++ b/src/safir/testing/kubernetes.py @@ -1357,7 +1357,7 @@ async def create_namespaced_job( if source.labels: metadata.labels = source.labels.copy() if source.annotations: - metadata.annnotations = source.annotations.copy() + metadata.annotations = source.annotations.copy() pod = V1Pod(metadata=metadata, spec=body.spec.template.spec) if not pod.metadata.name: if not pod.metadata.generate_name: