generated from argoproj-labs/argo-workflows-hello-executor-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
github-executor-plugin-configmap.yaml
50 lines (50 loc) · 2.16 KB
/
github-executor-plugin-configmap.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This is an auto-generated file. DO NOT EDIT
apiVersion: v1
data:
sidecar.automountServiceAccountToken: "false"
sidecar.container: |
env:
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
key: token
name: github-token
image: crenshawdotdev/github-executor-plugin:latest
name: github
ports:
- containerPort: 4356
resources:
limits:
cpu: 200m
memory: 64Mi
requests:
cpu: 100m
memory: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
kind: ConfigMap
metadata:
annotations:
workflows.argoproj.io/description: "[![codecov](https://codecov.io/gh/crenshaw-dev/github-executor-plugin/branch/main/graph/badge.svg?token=MD2ZVGZ5G9)](https://codecov.io/gh/crenshaw-dev/github-executor-plugin)\n\nThis
is an Argo Workflows executor plugin for interacting with GitHub.\n\n## Example\n\n```yaml\napiVersion:
argoproj.io/v1alpha1\nkind: Workflow\nmetadata:\n generateName: github-example-\nspec:\n
\ entrypoint: main\n templates:\n - name: main\n plugin:\n github:\n
\ # Use `issue` to create comments for PRs - the GitHub API considers
PRs to be issues.\n issue:\n comment:\n body:
\"Hello, world!\"\n number: \"1\" # PR number, from the \n owner:
crenshaw-dev\n repo: github-executor-plugin\n```\n\n## Prerequisites\n\n###
Set up a GitHub personal access token\n\nSee [GitHub's instructions](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)\nto
set up your token.\n\nThen create a secret using that token.\n\n```bash\n# First,
copy your token to the clipboard.\npbpaste > token\nkubectl create secret generic
github-token --from-file=token -n argo\nrm token\n```\n\n## How to install\n"
workflows.argoproj.io/version: '>= v3.3'
creationTimestamp: null
labels:
workflows.argoproj.io/configmap-type: ExecutorPlugin
name: github-executor-plugin