-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest2.txt
166 lines (163 loc) · 4.58 KB
/
test2.txt
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
Release "connector-job" has been upgraded. Happy Helming!
NAME: connector-job
LAST DEPLOYED: Wed Jul 7 14:54:22 2021
NAMESPACE: prod
STATUS: pending-upgrade
REVISION: 2
TEST SUITE: None
USER-SUPPLIED VALUES:
{}
COMPUTED VALUES:
connector-ecocommons:
config:
allowedOrganisationName: testorg
id: ecocommons
ignoreHarvestSources:
- '*'
name: Eco Commons Australia
pageSize: 100
sourceUrl: https://ckan.dev.ecocommons.org.au/
createConfigMap: true
createFunction: false
defaultImage:
imagePullSecret: false
pullPolicy: IfNotPresent
repository: docker.io/data61
defaultSettings:
includeCronJobs: true
includeInitialJobs: false
defaultTenantId: 0
global:
connectors:
image: {}
includeInitialJobs: true
image: {}
openfaas: {}
image:
name: magda-ckan-connector
resources:
limits:
cpu: 100m
requests:
cpu: 50m
memory: 30Mi
global:
connectors:
image: {}
includeInitialJobs: true
HOOKS:
MANIFEST:
---
# Source: connector-job/charts/connector-ecocommons/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: connector-ecocommons-ecocommons
data:
# When the config map is mounted as a volume, these will be created as files.
config.json: ' {"allowedOrganisationName":"testorg","id":"ecocommons","ignoreHarvestSources":["*"],"name":"Eco Commons Australia","pageSize":100,"sourceUrl":"https://ckan.dev.ecocommons.org.au/"}'
---
# Source: connector-job/charts/connector-ecocommons/templates/jobs.yaml
apiVersion: batch/v1
kind: Job
metadata:
name: connector-ecocommons
spec:
template:
metadata:
name: connector-ecocommons
spec:
containers:
- name: connector-ecocommons
image: "docker.io/data61/magda-ckan-connector:1.0.1-alpha.2"
imagePullPolicy: IfNotPresent
command:
- "node"
- "/usr/src/app/component/dist/index.js"
- "--tenantId"
- "0"
- "--config"
- "/etc/config/config.json"
- "--registryUrl"
- "http://registry-api/v0"
resources:
limits:
cpu: 100m
requests:
cpu: 50m
memory: 30Mi
volumeMounts:
- mountPath: /etc/config
name: config
env:
- name: USER_ID
value: 00000000-0000-4000-8000-000000000000
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: auth-secrets
key: jwt-secret
restartPolicy: "OnFailure"
volumes:
- name: config
configMap:
name: connector-ecocommons-ecocommons
items:
- key: config.json
path: config.json
---
# Source: connector-job/charts/connector-ecocommons/templates/cronjobs.yaml
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: connector-ecocommons
spec:
schedule: 0 14 * * 6 # default = 12am Sydney time on Sunday"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
metadata:
name: connector-ecocommons
spec:
containers:
- name: connector-ecocommons
image: "docker.io/data61/magda-ckan-connector:1.0.1-alpha.2"
imagePullPolicy: IfNotPresent
command:
- "node"
- "/usr/src/app/component/dist/index.js"
- "--tenantId"
- "0"
- "--config"
- "/etc/config/config.json"
- "--registryUrl"
- "http://registry-api/v0"
resources:
limits:
cpu: 100m
requests:
cpu: 50m
memory: 30Mi
volumeMounts:
- mountPath: /etc/config
name: config
env:
- name: USER_ID
value: 00000000-0000-4000-8000-000000000000
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: auth-secrets
key: jwt-secret
restartPolicy: "OnFailure"
volumes:
- name: config
configMap:
name: connector-ecocommons-ecocommons
items:
- key: config.json
path: config.json
---
# Source: connector-job/charts/connector-ecocommons/templates/functionDataUrlProcessor.yaml
# More exmaples of openfaas function here: https://github.com/openfaas/openfaas-operator