forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arguments-artifacts.yaml
29 lines (28 loc) · 906 Bytes
/
arguments-artifacts.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Like parameters, artifacts can be "passed" to a template as well.
# In this example, the 'kubectl-input-artifact' template requires
# that an an artifact named 'kubectl' is supplied as an input,
# which it will place in /usr/local/bin/kubectl. This keeps the
# template more composable/flexible, than if the location was
# hard-wired inside the template.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: arguments-artifacts-
spec:
entrypoint: kubectl-input-artifact
arguments:
artifacts:
- name: kubectl
http:
url: https://storage.googleapis.com/kubernetes-release/release/v1.8.0/bin/linux/amd64/kubectl
templates:
- name: kubectl-input-artifact
inputs:
artifacts:
- name: kubectl
path: /usr/local/bin/kubectl
mode: 0755
container:
image: debian:9.4
command: [sh, -c]
args: ["kubectl version"]