Created
May 3, 2024 07:47
-
-
Save hokiegeek2/d598ada7884c43dedddea0b5f0b09e3e to your computer and use it in GitHub Desktop.
Argo Events file event source that filters temp files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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