Skip to content

Commit

Permalink
feat(clearinghouse): add config for maintenance worker (#418)
Browse files Browse the repository at this point in the history
Refs: eclipse-tractusx/portal-backend#810
Reviewed-By: Evelyn Gurschler <[email protected]>
  • Loading branch information
Phil91 authored Sep 17, 2024
1 parent dcf86c0 commit c20b0b4
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
27 changes: 27 additions & 0 deletions charts/portal/templates/cronjob-backend-portal-maintenance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,33 @@ spec:
{{- end }}
- name: "PROCESSIDENTITY__PROCESSUSERID"
value: "{{ .Values.backend.portalmaintenance.processIdentity.processUserId }}"
- name: "BATCHDELETE_DELETEINTERVALINDAYS"
value: "{{ .Values.backend.portalmaintenance.batchDelete.days }}"
- name: "CLEARINGHOUSE__BASEADDRESS"
value: "{{ .Values.clearinghouseAddress }}"
- name: "CLEARINGHOUSE__CLIENTID"
value: "{{ .Values.backend.processesworker.clearinghouse.clientId }}"
- name: "CLEARINGHOUSE__CLIENTSECRET"
valueFrom:
secretKeyRef:
name: "{{ .Values.backend.interfaces.secret }}"
key: "clearinghouse-client-secret"
- name: "CLEARINGHOUSE__GRANTTYPE"
value: "{{ .Values.backend.processesworker.clearinghouse.grantType }}"
- name: "CLEARINGHOUSE__TOKENADDRESS"
value: "{{ .Values.clearinghouseTokenAddress }}"
- name: "CLEARINGHOUSE__PASSWORD"
value: "{{ .Values.backend.placeholder }}"
- name: "CLEARINGHOUSE__SCOPE"
value: "{{ .Values.backend.processesworker.clearinghouse.scope }}"
- name: "CLEARINGHOUSE__USERNAME"
value: "{{ .Values.backend.placeholder }}"
- name: "CLEARINGHOUSE__CALLBACKURL"
value: "{{ .Values.portalBackendAddress }}{{ .Values.backend.processesworker.clearinghouse.callbackPath }}"
- name: "CLEARINGHOUSE__USEDIMWALLET"
value: "{{ .Values.backend.useDimWallet }}"
- name: "CLEARINGHOUSE__RETRIGGERENDCLEARINGHOUSEINTERVALINDAYS"
value: "{{ .Values.backend.processesworker.clearinghouse.retriggerEndClearinghouseIntervalInDays }}"
- name: "SERILOG__MINIMUMLEVEL__Default"
value: "{{ .Values.backend.portalmaintenance.logging.default }}"
ports:
Expand Down
2 changes: 2 additions & 0 deletions charts/portal/templates/cronjob-backend-processes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ spec:
value: "{{ .Values.portalBackendAddress }}{{ .Values.backend.processesworker.clearinghouse.callbackPath }}"
- name: "APPLICATIONCHECKLIST__CLEARINGHOUSE__USEDIMWALLET"
value: "{{ .Values.backend.useDimWallet }}"
- name: "APPLICATIONCHECKLIST__CLEARINGHOUSE__RETRIGGERENDCLEARINGHOUSEINTERVALINDAYS"
value: "{{ .Values.backend.processesworker.clearinghouse.retriggerEndClearinghouseIntervalInDays }}"
- name: "APPLICATIONCHECKLIST__CUSTODIAN__BASEADDRESS"
value: "{{ .Values.custodianAddress }}"
- name: "APPLICATIONCHECKLIST__CUSTODIAN__MEMBERSHIPERRORMESSAGE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ spec:
value: "{{ .Values.portalBackendAddress }}{{ .Values.backend.processesworker.clearinghouse.callbackPath }}"
- name: "APPLICATIONCHECKLIST__CLEARINGHOUSE__USEDIMWALLET"
value: "{{ .Values.backend.useDimWallet }}"
- name: "APPLICATIONCHECKLIST__CLEARINGHOUSE__RETRIGGERENCLEARINGHOUSEINTERVALINDAYS"
value: "{{ .Values.backend.processesworker.clearinghouse.retriggerEndClearinghouseIntervalInDays }}"
- name: "APPLICATIONCHECKLIST__CUSTODIAN__MEMBERSHIPERRORMESSAGE"
value: "{{ .Values.backend.processesworker.custodian.membershipErrorMessage }}"
- name: "APPLICATIONCHECKLIST__CUSTODIAN__BASEADDRESS"
Expand Down
5 changes: 5 additions & 0 deletions charts/portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@ backend:
memory: 200M
processIdentity:
processUserId: d21d2e8a-fe35-483c-b2b8-4100ed7f0953
batchDelete:
# -- The maximum days a document can stay in state DELETED before it is removed from the database
days: 80
logging:
default: "Information"
notification:
Expand Down Expand Up @@ -841,6 +844,8 @@ backend:
# -- Client-secret for clearinghouse client-id. Secret-key 'clearinghouse-client-secret'.
clientSecret: ""
callbackPath: "/api/administration/registration/clearinghouse"
# -- Defines the days a END_CLEARINGHOUSE process can stay in state TODO before the process is retriggered
retriggerEndClearinghouseIntervalInDays: 30
processes:
lockExpirySeconds: "300"
offerSubscriptionProcess:
Expand Down

0 comments on commit c20b0b4

Please sign in to comment.