fromhera.workflowsimportResource,WorkflowwithWorkflow(api_version="argoproj.io/v1alpha1",kind="Workflow",annotations={"workflows.argoproj.io/description":"This example shows a standard patch with the default mergeStrategy (strategic)\n"},generate_name="k8s-patch-pod-",labels={"workflows.argoproj.io/test":"true"},entrypoint="main",)asw:Resource(name="main",action="patch",manifest="apiVersion: v1\nkind: Pod\nmetadata:\n name: {{pod.name}}\n annotations:\n foo: bar\n",)
apiVersion:argoproj.io/v1alpha1kind:Workflowmetadata:generateName:k8s-patch-pod-annotations:workflows.argoproj.io/description:|This example shows a standard patch with the default mergeStrategy (strategic)labels:workflows.argoproj.io/test:'true'spec:entrypoint:maintemplates:-name:mainresource:action:patchmanifest:|apiVersion: v1kind: Podmetadata:name: {{pod.name}}annotations:foo: bar