1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

775 circle ci fixes

This commit is contained in:
shravan 2020-04-04 22:52:53 +05:30
parent ed45dc12c0
commit ad3fcb500f

View file

@ -135,7 +135,7 @@ func patchedResourceHasPodControllerAnnotation(resource unstructured.Unstructure
} }
resourceRaw, _ := json.Marshal(resource.Object) resourceRaw, _ := json.Marshal(resource.Object)
json.Unmarshal(resourceRaw, &podController) _ = json.Unmarshal(resourceRaw, &podController)
_, ok := podController.Spec.Template.Metadata.Annotations[PodTemplateAnnotation] _, ok := podController.Spec.Template.Metadata.Annotations[PodTemplateAnnotation]
return ok return ok