From 47c1e56199ea4a36aa02dd58b0d31c1d6170f8cc Mon Sep 17 00:00:00 2001 From: ynqa Date: Sun, 3 Jun 2018 14:34:40 +0900 Subject: [PATCH 1/2] Add CRD manifest for ScheduledWorkflow --- install/manifests/pipelines-crd.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 install/manifests/pipelines-crd.yaml diff --git a/install/manifests/pipelines-crd.yaml b/install/manifests/pipelines-crd.yaml new file mode 100644 index 00000000000..1b5df1ea0d1 --- /dev/null +++ b/install/manifests/pipelines-crd.yaml @@ -0,0 +1,11 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: scheduledworkflows.kubeflow.org +spec: + group: kubeflow.org + version: v1alpha1 + scope: Namespaced + names: + kind: ScheduledWorkflow + plural: scheduledworkflows From 16e94fedf3b44617f27adbc591830732c06a0752 Mon Sep 17 00:00:00 2001 From: ynqa Date: Sun, 3 Jun 2018 14:34:59 +0900 Subject: [PATCH 2/2] Add examples --- example/every-minute-cron.yaml | 27 +++++++++++++++++++++++++++ example/every-minute-periodic.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 example/every-minute-cron.yaml create mode 100644 example/every-minute-periodic.yaml diff --git a/example/every-minute-cron.yaml b/example/every-minute-cron.yaml new file mode 100644 index 00000000000..7f71fa28cb4 --- /dev/null +++ b/example/every-minute-cron.yaml @@ -0,0 +1,27 @@ +apiVersion: kubeflow.org/v1alpha1 +kind: ScheduledWorkflow +metadata: + name: every-minute-cron +spec: + description: "every-minute-cron" + enabled: true + maxHistory: 10 + trigger: + cronSchedule: + cron: 1 * * * * * + workflow: + spec: + entrypoint: whalesay + arguments: + parameters: + - name: message + value: hello world + templates: + - name: whalesay + inputs: + parameters: + - name: message + container: + image: docker/whalesay + command: [cowsay] + args: ["{{inputs.parameters.message}}"] diff --git a/example/every-minute-periodic.yaml b/example/every-minute-periodic.yaml new file mode 100644 index 00000000000..4f1cf9c95f6 --- /dev/null +++ b/example/every-minute-periodic.yaml @@ -0,0 +1,27 @@ +apiVersion: kubeflow.org/v1alpha1 +kind: ScheduledWorkflow +metadata: + name: every-minute-periodic +spec: + description: "every-minute-periodic" + enabled: true + maxHistory: 10 + trigger: + periodicSchedule: + intervalSecond: 60 + workflow: + spec: + entrypoint: whalesay + arguments: + parameters: + - name: message + value: hello world + templates: + - name: whalesay + inputs: + parameters: + - name: message + container: + image: docker/whalesay + command: [cowsay] + args: ["{{inputs.parameters.message}}"]