Update
This commit is contained in:
		
							parent
							
								
									fcaec2b232
								
							
						
					
					
						commit
						0abff732d1
					
				
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										69
									
								
								yonote-chart/templates/cronjob.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								yonote-chart/templates/cronjob.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,69 @@
 | 
			
		||||
{{- if eq ($.Values.global.yonote_cron_calendar_events.cron_enabled  | toString) "true" }}
 | 
			
		||||
apiVersion: batch/v1
 | 
			
		||||
kind: CronJob
 | 
			
		||||
metadata:
 | 
			
		||||
  name: cron-calendar-events
 | 
			
		||||
spec:
 | 
			
		||||
  schedule: "*/1 * * * *"
 | 
			
		||||
  jobTemplate:
 | 
			
		||||
    spec:
 | 
			
		||||
      template:
 | 
			
		||||
        spec:
 | 
			
		||||
          containers:
 | 
			
		||||
          - name: cron-calendar-events
 | 
			
		||||
            image: curlimages/curl
 | 
			
		||||
            imagePullPolicy: IfNotPresent
 | 
			
		||||
            envFrom:
 | 
			
		||||
            - secretRef:
 | 
			
		||||
                name: yonote-secrets
 | 
			
		||||
            command:
 | 
			
		||||
              - /bin/sh
 | 
			
		||||
              - -c
 | 
			
		||||
              - >-
 | 
			
		||||
                date;
 | 
			
		||||
                curl
 | 
			
		||||
                -X POST
 | 
			
		||||
                {{ .Values.global.yonote_cron_calendar_events.url }}
 | 
			
		||||
                -H "Content-Type: application/json"
 | 
			
		||||
                -d '
 | 
			
		||||
                {
 | 
			
		||||
                "token": "$(UTILS_SECRET)"
 | 
			
		||||
                }
 | 
			
		||||
                '                
 | 
			
		||||
          restartPolicy: OnFailure
 | 
			
		||||
{{- end }}
 | 
			
		||||
---
 | 
			
		||||
{{- if eq ($.Values.global.yonote_cron_task_scheduler.cron_enabled  | toString) "true" }}
 | 
			
		||||
apiVersion: batch/v1
 | 
			
		||||
kind: CronJob
 | 
			
		||||
metadata:
 | 
			
		||||
  name: cron-task-scheduler
 | 
			
		||||
spec:
 | 
			
		||||
  schedule: "0 */1 * * *"
 | 
			
		||||
  jobTemplate:
 | 
			
		||||
    spec:
 | 
			
		||||
      template:
 | 
			
		||||
        spec:
 | 
			
		||||
          containers:
 | 
			
		||||
          - name: cron-task-scheduler
 | 
			
		||||
            image: curlimages/curl
 | 
			
		||||
            imagePullPolicy: IfNotPresent
 | 
			
		||||
            envFrom:
 | 
			
		||||
            - secretRef:
 | 
			
		||||
                name: yonote-secrets
 | 
			
		||||
            command:
 | 
			
		||||
              - /bin/sh
 | 
			
		||||
              - -c
 | 
			
		||||
              - >-
 | 
			
		||||
                date;
 | 
			
		||||
                curl
 | 
			
		||||
                -X POST
 | 
			
		||||
                {{ .Values.global.yonote_cron_task_scheduler.url }}
 | 
			
		||||
                -H "Content-Type: application/json"
 | 
			
		||||
                -d '
 | 
			
		||||
                {
 | 
			
		||||
                "token":"$(UTILS_SECRET)", "limit":"200"
 | 
			
		||||
                }
 | 
			
		||||
                '                
 | 
			
		||||
          restartPolicy: OnFailure
 | 
			
		||||
{{- end }}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user