You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried many different approaches to patching with Kustomize, but the only one I have been able to successfully implement is this:
- patch: |
- op: add
path: /spec/templates/0/dag/tasks/- # Add a new task to the workflow
value:
name: C
dependencies:
- A
- B
templateRef:
name: job-templates
template: redacted
which is ok, but I also ned to change dependencies for some task,
- op: replace
path: /spec/templates/0/dag/tasks/8/dependencies # Add a new dependency to the H task
value:
- E
target:
kind: WorkflowTemplate
name: workflow-curves-with-dependencies
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have the use-case where I want to add some tasks to test and run them a little while before I update prod with the same task.
![image](https://private-user-images.githubusercontent.com/14213127/407892934-11dd536f-29e6-470b-8d9b-e79c144f8861.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg3NzA5OTYsIm5iZiI6MTczODc3MDY5NiwicGF0aCI6Ii8xNDIxMzEyNy80MDc4OTI5MzQtMTFkZDUzNmYtMjllNi00NzBiLThkOWItZTc5YzE0NGY4ODYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA1VDE1NTEzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkyNTM4MDYxOTJiZjE4Y2FjOTUwODFmM2I5NGJkZDJiNTM4ZGFjNTcwY2Y1YzdjOWY4ZmI5M2ZlYTY5ZTUzNjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.l7LbzvnFu4GM2Hqt72mvQ1N30Py72-EmhDtc5KMUGuY)
In my kustomization.yaml I have:
workflow-template-1.yaml:
argo-workflows-patch.yaml:
When I run
kubectl kustomize manifests/overlay/dev/
it is only the content from argo-workflows-patch.yaml that shows up and not task A and B.From https://github.com/argoproj/argo-workflows/blob/main/api/openapi-spec/swagger.json#L11981 and other definitions in the same file, it looks like it should be able to merge, so that task A, B, C and D shows up in run-workflow-1.
Do anyone see what I'm doing wrong?
I have tried many different approaches to patching with Kustomize, but the only one I have been able to successfully implement is this:
which is ok, but I also ned to change dependencies for some task,
which can become quite confusing quickly...
Beta Was this translation helpful? Give feedback.
All reactions