EUGENIO SOUZA CARVALHO 3 years ago
parent
commit
98017029fb

+ 1 - 0
README.md

@@ -0,0 +1 @@
+kubectl -n argo-events logs $(kubectl -n argo-events get pod -l "gateway-name=github" -o name) gateway-client -f 

+ 1 - 1
argoworkflow/workflow/000-secret-github.yaml

@@ -2,7 +2,7 @@ apiVersion: v1
 kind: Secret
 metadata:
   name: github-access
-  namespace: argo-events
+  namespace: "argo-events"
 type: Opaque
 data:
   token: ZGY2MDNlZmI0Mjc3ZTdhNzhjNjdhMTM5YWViNmM4ZjdlZThkMWNjZA==

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

@@ -2,13 +2,11 @@ apiVersion: v1
 kind: ServiceAccount
 metadata:
   name: workflow
-  namespace: argo-events
 ---
 apiVersion: rbac.authorization.k8s.io/v1
 kind: Role
 metadata:
   name: workflow-role
-  namespace: argo-events
 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)
@@ -33,7 +31,6 @@ apiVersion: rbac.authorization.k8s.io/v1
 kind: RoleBinding
 metadata:
   name: workflow-binding
-  namespace: argo-events
 roleRef:
   apiGroup: rbac.authorization.k8s.io
   kind: Role

+ 0 - 1
argoworkflow/workflow/010-gateway-github.yaml

@@ -2,7 +2,6 @@ apiVersion: argoproj.io/v1alpha1
 kind: Gateway
 metadata:
   name: github
-  namespace: argo-events
 spec:
   type: github
   eventSourceRef:

+ 0 - 1
argoworkflow/workflow/020-ingress.yaml

@@ -2,7 +2,6 @@ apiVersion: traefik.containo.us/v1alpha1
 kind: IngressRoute
 metadata:
   name: app-server-ingress
-  namespace: argo-events
   annotations:
     traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
 spec:

+ 1 - 2
argoworkflow/workflow/030-event-source-github.yaml

@@ -3,7 +3,6 @@ apiVersion: argoproj.io/v1alpha1
 kind: EventSource
 metadata:
   name: github-event-source
-  namespace: argo-events
 spec:
   type: github
   github:
@@ -32,7 +31,7 @@ spec:
 
       #      # Namespace where the api token and webhook secret live.
       #      # +Optional. Default to gateway's namespace.
-      #      namespace: "argo-events"
+      namespace: "argo-events"
 
       # apiToken refers to K8s secret that stores the github api token
       apiToken: