EUGENIO SOUZA CARVALHO 3 vuotta sitten
vanhempi
commit
0dc85834f7

argoworkflow/00-secret-github.yaml → argoworkflow/000-secret-github.yaml


+ 40 - 0
argoworkflow/001-workflow-acount.yaml

@@ -0,0 +1,40 @@
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+  name: workflow
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: workflow-role
+rules:
+  # pod get/watch is used to identify the container IDs of the current pod
+  # pod patch is used to annotate the step's outputs back to controller (e.g. artifact location)
+  - apiGroups:
+      - ""
+    resources:
+      - pods
+    verbs:
+      - get
+      - watch
+      - patch
+  # logs get/watch are used to get the pods logs for script outputs, and for log archival
+  - apiGroups:
+      - ""
+    resources:
+      - pods/log
+    verbs:
+      - get
+      - watch
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+  name: workflow-binding
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: Role
+  name: workflow-role
+subjects:
+  - kind: ServiceAccount
+    name: workflow

argoworkflow/01-gateway-github.yaml → argoworkflow/010-gateway-github.yaml


argoworkflow/02-event-source-github.yaml → argoworkflow/020-event-source-github.yaml


+ 1 - 0
argoworkflow/03-sensor-github.yaml

@@ -28,6 +28,7 @@ spec:
               metadata:
                 generateName: github-
               spec:
+                serviceAccountName: workflow
                 entrypoint: whalesay
                 arguments:
                   parameters:

argoworkflow/04-ingress.yaml → argoworkflow/040-ingress.yaml