Replies: 1 comment
-
In case you use a apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
[...]
resources:
- git@gitlab.company.com:path/to/project.git/path/to/resource?ref=master I use this mechanic in several workflow projects. I'm not 100% sure though, that this is what you wanted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My goal is to submit a workflow whose YAML manifest is in a remote Git repository.
Of course I could reinvent the wheel and use multiple steps with custom 'container' templates (one to clone the repo, another to submit the fetched workflow manifest), but to keep things lean instead I would like to leverage Argo Workflows built-in features as much as possible. Namely:
However I cannot find any example of how to use both features combined. Reading the CRDs specs this is the best I've come up with to submit https://github.com/argoproj/argo-workflows/blob/main/examples/hello-world.yaml in a single step:
Unfortunately, the above config fails with
read /src: is a directory
error message.So my question is, how can I make a 'resource' template to get its manifest from a hard-wired Git input artifact?
Beta Was this translation helpful? Give feedback.
All reactions