-
Notifications
You must be signed in to change notification settings - Fork 0
/
explorer-update.yaml
52 lines (52 loc) · 1.3 KB
/
explorer-update.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
51
52
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: explorer-update
namespace: processing
spec:
entrypoint: exploere-update
podGC:
strategy: OnPodSuccess
ttlStrategy:
secondsAfterCompletion: 300
workflowMetadata:
labels:
app: update-explorer-workflowmetadatalabel
arguments:
parameters:
- name: products
value: --all
templates:
- name: explorer-update
metadata:
labels:
app: argo-explorer-update
inputs:
parameters:
- name: products
value: "{{workflow.parameters.products}}"
container:
command:
- bash
args:
- '-c'
- >-
cubedash-gen --no-init-database --refresh-stats
{{inputs.parameters.products}}
env:
- name: DB_USERNAME
valueFrom:
secretKeyRef:
key: postgres-username
name: explorer-writer
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
key: postgres-password
name: explorer-writer
- name: DB_DATABASE
value: odc
- name: DB_HOSTNAME
value: db-writer
image: opendatacube/explorer:latest
name: indexing-container