Skip to content

Commit

Permalink
Add sr-bg-tasks to social-registry-p2
Browse files Browse the repository at this point in the history
  • Loading branch information
PSNAppz committed Dec 10, 2024
1 parent 607f34e commit 770bb78
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/openg2p-social-registry-p2/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ dependencies:
version: 1.4.1
repository: https://openg2p.github.io/openg2p-helm
condition: esignet.enabled
- name: openg2p-sr-bg-tasks
version: 1.0.0
repository: https://openg2p.github.io/openg2p-helm
condition: openg2p-sr-bg-tasks.enabled
icon: https://openg2p.github.io/openg2p-helm/openg2p-logo.png
annotations:
catalog.cattle.io/display-name: "OpenG2P Social Registry - Part 2"
Expand Down
36 changes: 36 additions & 0 deletions charts/openg2p-social-registry-p2/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,39 @@ questions:
label: Spring Config application properties.
group: Mock Identity System Settings
show_if: "esignet.enabled=true&&esignet.mock-identity-system.enabled=true&&esignet.mock-identity-system.springConfig.gitRepo.enabled=false"

- variable: sr-bg-tasks.openg2p-sr-bg-tasks-celery-workers.envVars.SR_CELERY_WORKERS_AUTH_CLIENT_ID
description: KeyCloak Client ID
type: string
label: KeyCloak Client ID
group: SR BG Tasks Settings

- variable: sr-bg-tasks.openg2p-sr-bg-tasks-celery-workers.envVars.SR_CELERY_WORKERS_AUTH_CLIENT_SECRET
description: KeyCloak Client Secret for SR Celery Worker
type: string
label: KeyCloak Client Secret
group: SR BG Tasks Settings

- variable: sr-bg-tasks.openg2p-sr-bg-tasks-celery-beat-producers.envVars.SR_CELERY_BEAT_MAX_ID_GENERATION_REQUEST_ATTEMPTS
description: Max Id Generation Request Attempts
type: string
label: Max Id Generation Request Attempts
group: SR BG Tasks Settings

- variable: sr-bg-tasks.openg2p-sr-bg-tasks-celery-beat-producers.envVars.SR_CELERY_BEAT_MAX_ID_GENERATION_UPDATE_ATTEMPTS
description: Max Id Update Request Attempts
type: string
label: Max Id Update Request Attempts
group: SR BG Tasks Settings

- variable: sr-bg-tasks.openg2p-sr-bg-tasks-celery-beat-producers.envVars.SR_CELERY_BEAT_RES_PARTNER_ID_GENERATION_FREQUENCY
description: Res Partner Id Generation Frequency
type: string
label: Res Partner Id Generation Frequency
group: SR BG Tasks Settings

- variable: sr-bg-tasks.openg2p-sr-bg-tasks-celery-beat-producers.envVars.SR_CELERY_BEAT_RES_PARTNER_ID_UPDATE_FREQUENCY
description: Res Partner Id Generation Update Frequency
type: string
label: Res Partner Id Generation Update Frequency
group: SR BG Tasks Settings
46 changes: 46 additions & 0 deletions charts/openg2p-social-registry-p2/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
global:
keycloakBaseUrl: https://keycloak.openg2p.sandbox.net
keycloakIssuerUrl: '{{ tpl .Values.global.keycloakBaseUrl $ }}/realms/master'
idgeneratorBaseUrl: https://idgenerator.openg2p.sandbox.net

nameOverride: openg2p-social-registry

Expand Down Expand Up @@ -182,3 +183,48 @@ esignet:
repoUrl: https://github.com/openg2p/mosip-config
branch: master
rawConfig: ""

openg2p-sr-bg-tasks:
enabled: true

openg2p-sr-bg-tasks-celery-beat-producers:
enabled: true
envVars:
SR_CELERY_BEAT_DB_DBNAME: socialregistrydb
SR_CELERY_BEAT_DB_PORT: 5432
SR_CELERY_BEAT_DB_USERNAME: sruser
SR_CELERY_BEAT_DB_HOSTNAME: 'localhost'
SR_CELERY_BEAT_CELERY_BROKER_URL: redis://{{ .Release.Name }}-redis-master:6379/0
SR_CELERY_BEAT_CELERY_BACKEND_URL: redis://{{ .Release.Name }}-redis-master:6379/0
SR_CELERY_BEAT_MAX_ID_GENERATION_REQUEST_ATTEMPTS: 3
SR_CELERY_BEAT_MAX_ID_GENERATION_UPDATE_ATTEMPTS: 3
SR_CELERY_BEAT_RES_PARTNER_ID_GENERATION_FREQUENCY: 60
SR_CELERY_BEAT_RES_PARTNER_ID_UPDATE_FREQUENCY: 60

envVarsFrom:
SR_CELERY_BEAT_DB_PASSWORD:
secretKeyRef:
name: '{{ .Release.Name }}'-postgresql
key: password

openg2p-sr-bg-tasks-celery-workers:
enabled: true
envVars:
SR_CELERY_WORKERS_DB_DBNAME: socialregistrydb
SR_CELERY_WORKERS_DB_USERNAME: sruser
SR_CELERY_WORKERS_DB_HOSTNAME: 'localhost'
SR_CELERY_WORKERS_DB_PORT: 5432
SR_CELERY_WORKERS_CELERY_BROKER_URL: redis://{{ .Release.Name }}-redis-master:6379/0
SR_CELERY_WORKERS_CELERY_BACKEND_URL: redis://{{ .Release.Name }}-redis-master:6379/0
SR_CELERY_WORKERS_AUTH_URL: '{{ tpl .Values.global.keycloakIssuerUrl $ }}/protocol/openid-connect/token'
SR_CELERY_WORKERS_AUTH_CLIENT_ID: 'openg2p-sr-bg-tasks-{{ .Release.Namespace }}'
SR_CELERY_WORKERS_AUTH_CLIENT_SECRET: ''
SR_CELERY_WORKERS_AUTH_GRANT_TYPE: client_credentials
SR_CELERY_WORKERS_MOSIP_GET_UIN_URL: '{{ tpl .Values.global.keycloakIssuerUrl $ }}'/v1/idgenerator/uin
SR_CELERY_WORKERS_MOSIP_UPDATE_UIN_URL: '{{ tpl .Values.global.keycloakIssuerUrl $ }}'/v1/idgenerator/uin

envVarsFrom:
SR_CELERY_WORKERS_DB_PASSWORD:
secretKeyRef:
name: '{{ .Release.Name }}'-postgresql
key: password

0 comments on commit 770bb78

Please sign in to comment.