Skip to content

Commit

Permalink
feat(clearinghouse): add config for maintenance worker
Browse files Browse the repository at this point in the history
enable maintenance worker to retrigger the clearinghouse process

Refs: eclipse-tractusx/portal-backend#810
  • Loading branch information
Phil91 committed Aug 28, 2024
1 parent fa7e4dc commit d643e8f
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__RETRIGGERENCLEARINGHOUSEINTERVALINDAYS"
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 @@ -164,6 +164,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__BASEADDRESS"
value: "{{ .Values.custodianAddress }}"
- name: "APPLICATIONCHECKLIST__CUSTODIAN__MEMBERSHIPERRORMESSAGE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,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 @@ -837,6 +840,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 d643e8f

Please sign in to comment.