EUGENIO SOUZA CARVALHO 4 anos atrás
pai
commit
258086586e

+ 25 - 0
argoworkflow/001-pv.yaml

@@ -0,0 +1,25 @@
+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

argoworkflow/workflow/001-workflow-acount.yaml → argoworkflow/001-workflow-acount.yaml


+ 3 - 110
argoworkflow/workflow/040-sensor-github.yaml

@@ -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
 kind: Sensor
 metadata:
@@ -146,9 +39,9 @@ spec:
                       storageClassName: standard
                       accessModes:
                         - ReadWriteOnce
-                      selector:
-                        matchLabels:
-                          argowf: argo-pv-workflow
+                      # selector:
+                      #   matchLabels:
+                      #     argowf: argo-pv-workflow
                       resources:
                         requests:
                           storage: 1Gi