|
@@ -1,110 +1,3 @@
|
|
---- # ---
|
|
|
|
-# apiVersion: argoproj.io/v1alpha1
|
|
|
|
-# kind: WorkflowTemplate
|
|
|
|
-# metadata:
|
|
|
|
-# name: ci-workflow
|
|
|
|
-# spec:
|
|
|
|
-# inputs:
|
|
|
|
-# parameters:
|
|
|
|
-# - name: revision
|
|
|
|
-# steps:
|
|
|
|
-# - - name: build
|
|
|
|
-# template: build-golang-example
|
|
|
|
-# arguments:
|
|
|
|
-# parameters:
|
|
|
|
-# - name: revision
|
|
|
|
-# value: "{{inputs.parameters.revision}}"
|
|
|
|
-# # the test step expands into three parallel steps running
|
|
|
|
-# # different operating system images. each mounts the workdir
|
|
|
|
-# # and runs the compiled binary from the build step.
|
|
|
|
-# - - name: test
|
|
|
|
-# template: run-hello
|
|
|
|
-# arguments:
|
|
|
|
-# parameters:
|
|
|
|
-# - name: os-image
|
|
|
|
-# value: "{{item.image}}:{{item.tag}}"
|
|
|
|
-# withItems:
|
|
|
|
-# - { image: "debian", tag: "9.1" }
|
|
|
|
-# - { image: "alpine", tag: "3.6" }
|
|
|
|
-# - { image: "ubuntu", tag: "17.10" }
|
|
|
|
-# ---
|
|
|
|
-# apiVersion: argoproj.io/v1alpha1
|
|
|
|
-# kind: WorkflowTemplate
|
|
|
|
-# metadata:
|
|
|
|
-# name: build-golang-example
|
|
|
|
-# spec:
|
|
|
|
-# inputs:
|
|
|
|
-# parameters:
|
|
|
|
-# - name: revision
|
|
|
|
-# artifacts:
|
|
|
|
-# - name: code
|
|
|
|
-# path: /go/src/github.com/golang/example
|
|
|
|
-# git:
|
|
|
|
-# repo: https://github.com/golang/example.git
|
|
|
|
-# revision: "{{inputs.parameters.revision}}"
|
|
|
|
-# container:
|
|
|
|
-# image: golang:1.8
|
|
|
|
-# command: [sh, -c]
|
|
|
|
-# args: [
|
|
|
|
-# "
|
|
|
|
-# cd /go/src/github.com/golang/example/hello &&
|
|
|
|
-# git status &&
|
|
|
|
-# go build -v .
|
|
|
|
-# ",
|
|
|
|
-# ]
|
|
|
|
-# volumeMounts:
|
|
|
|
-# - name: workdir
|
|
|
|
-# mountPath: /go
|
|
|
|
-
|
|
|
|
-# ---
|
|
|
|
-# apiVersion: argoproj.io/v1alpha1
|
|
|
|
-# kind: WorkflowTemplate
|
|
|
|
-# metadata:
|
|
|
|
-# name: run-hello
|
|
|
|
-# spec:
|
|
|
|
-# inputs:
|
|
|
|
-# parameters:
|
|
|
|
-# - name: os-image
|
|
|
|
-# container:
|
|
|
|
-# image: "{{inputs.parameters.os-image}}"
|
|
|
|
-# command: [sh, -c]
|
|
|
|
-# args: [
|
|
|
|
-# "
|
|
|
|
-# uname -a ;
|
|
|
|
-# cat /etc/os-release ;
|
|
|
|
-# /go/src/github.com/golang/example/hello/hello
|
|
|
|
-# ",
|
|
|
|
-# ]
|
|
|
|
-# volumeMounts:
|
|
|
|
-# - name: workdir
|
|
|
|
-# mountPath: /go
|
|
|
|
----
|
|
|
|
-apiVersion: v1
|
|
|
|
-kind: PersistentVolume
|
|
|
|
-metadata:
|
|
|
|
- name: argo-pv-workflow
|
|
|
|
- labels:
|
|
|
|
- type: local
|
|
|
|
- argowf: argo-pv-workflow
|
|
|
|
-spec:
|
|
|
|
- storageClassName: standard
|
|
|
|
- capacity:
|
|
|
|
- storage: 10Gi
|
|
|
|
- accessModes:
|
|
|
|
- - ReadWriteOnce
|
|
|
|
- hostPath:
|
|
|
|
- path: "/kbctl"
|
|
|
|
- persistentVolumeReclaimPolicy: Delete
|
|
|
|
- # volumeMode: Filesystem
|
|
|
|
- nodeAffinity:
|
|
|
|
- required:
|
|
|
|
- nodeSelectorTerms:
|
|
|
|
- - matchExpressions:
|
|
|
|
- - key: kubernetes.io/hostname
|
|
|
|
- operator: In
|
|
|
|
- values:
|
|
|
|
- - k8s
|
|
|
|
----
|
|
|
|
apiVersion: argoproj.io/v1alpha1
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Sensor
|
|
kind: Sensor
|
|
metadata:
|
|
metadata:
|
|
@@ -146,9 +39,9 @@ spec:
|
|
storageClassName: standard
|
|
storageClassName: standard
|
|
accessModes:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
- ReadWriteOnce
|
|
- selector:
|
|
|
|
- matchLabels:
|
|
|
|
- argowf: argo-pv-workflow
|
|
|
|
|
|
+ # selector:
|
|
|
|
+ # matchLabels:
|
|
|
|
+ # argowf: argo-pv-workflow
|
|
resources:
|
|
resources:
|
|
requests:
|
|
requests:
|
|
storage: 1Gi
|
|
storage: 1Gi
|