Skip to content

Instantly share code, notes, and snippets.

@hokiegeek2
Created May 3, 2024 07:47
Show Gist options
  • Save hokiegeek2/d598ada7884c43dedddea0b5f0b09e3e to your computer and use it in GitHub Desktop.
Save hokiegeek2/d598ada7884c43dedddea0b5f0b09e3e to your computer and use it in GitHub Desktop.
Argo Events file event source that filters temp files
apiVersion: argoproj.io/v1alpha1
kind: EventSource
metadata:
name: file-upload-directory-watcher
labels:
directory: file-upload
spec:
replicas: 1
template:
container:
volumeMounts:
- mountPath: /opt/uploads
name: file-upload
securityContext:
allowPrivilegeEscalation: false
runAsUser: 0
volumes:
- name: file-upload
persistentVolumeClaim:
claimName: file-upload
file:
mafi-file-upload:
watchPathConfig:
directory: /opt/uploads
pathRegexp: "(^[A-Za-z0-9])"
eventType: CREATE
polling: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment