Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed May 24, 2024
1 parent 351426a commit b8d387f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
21 changes: 12 additions & 9 deletions charts/publiccode-crawler/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,24 @@ spec:
- ln -sf /secrets-store/k8s-secrets-publiccode-crawler-domains-yml domains.yml && ./start.sh

volumeMounts:
- name: data
mountPath: /var/publiccode-crawler/data
readOnly: false
- mountPath: /secrets-store
name: secrets-store


resources:
{{- toYaml .Values.publiccode-crawler.resources. | indent 14 }}
env:
- name: ELASTIC_URL
value: "{{ .Values.publiccode-crawler.env.elastic_url }}"
- name: ELASTIC_USER
value: "{{ .Values.publiccode-crawler.env.elastic_user }}"
- name: ELASTIC_PWD
- name: API_BASEURL
value: "{{ .Values.publiccode-crawler.env.API_BASEURL}}"
- name: MAIN_PUBLISHER_ID
value: "{{ .Values.publiccode-crawler.env.MAIN_PUBLISHER_ID }}"
- name: SKIP_VITALITY
value: "{{ .Values.publiccode-crawler.env.SKIP_VITALITY }}"
- name: API_BEARER_TOKEN
valueFrom:
secretKeyRef:
name: {{ template "publiccode-crawler.fullname" . }}-azure-kv
key: elastic-pass
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: {{ template "publiccode-crawler.fullname" . }}-azure-kv
Expand Down
12 changes: 9 additions & 3 deletions charts/publiccode-crawler/values.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
---

image:
repository: docker.io/italia/developers-italia-backend
repository: docker.io/italia/publiccode-crawler
tag: latest
pullPolicy: Always

env:
elastic_url: "http://developersitalia-master.elasticsearch:9200"
elastic_user: "elastic"
# fe. "https://api.developers.italia.it/v1"
API_BASEURL:

# fe. "456123fe-e5ad-41fa-b894-8a021a8ed972"
# (https://api.developers.italia.it/v1/publishers/456123fe-e5ad-41fa-b894-8a021a8ed972)
MAIN_PUBLISHER_ID:

SKIP_VITALITY: true

cronjob_schedule: "0 0 * * *"

Expand Down

0 comments on commit b8d387f

Please sign in to comment.