diff --git a/charts/g2p-cash-transfer-bridge/README.md b/charts/g2p-cash-transfer-bridge/README.md index d955014..041c97c 100644 --- a/charts/g2p-cash-transfer-bridge/README.md +++ b/charts/g2p-cash-transfer-bridge/README.md @@ -1,3 +1,3 @@ # G2P Cash Transfer Bridge Helm Chart -Refer to [Deployment on Kubernetes](https://docs.openg2p.org/guides/deployment-guide/deployment-on-kubernetes). +Refer to [GCTB Deployment](https://docs.openg2p.org/deployment/openg2p-modules-deployment/gctb-deployment) diff --git a/charts/odk-central/Chart.lock b/charts/odk-central/Chart.lock new file mode 100644 index 0000000..0f81bd9 --- /dev/null +++ b/charts/odk-central/Chart.lock @@ -0,0 +1,18 @@ +dependencies: +- name: odk-central-mail + repository: "" + version: 1.2.0 +- name: odk-central-pyxform + repository: "" + version: 1.2.0 +- name: odk-central-enketo + repository: "" + version: 1.2.0 +- name: odk-central-backend + repository: "" + version: 1.2.0 +- name: odk-central-frontend + repository: "" + version: 1.2.0 +digest: sha256:16c0eedfa54001c4fdb86869d87f0bd97b2876021bc6808aec7d00ec54b8211c +generated: "2024-02-09T18:06:14.498165357+05:30" diff --git a/charts/odk-central/Chart.yaml b/charts/odk-central/Chart.yaml index 8da9ce1..6f5999a 100644 --- a/charts/odk-central/Chart.yaml +++ b/charts/odk-central/Chart.yaml @@ -2,28 +2,23 @@ apiVersion: v2 name: odk-central description: A Helm chart for odk-central. type: application -version: 1.1.0 +version: 1.2.0 appVersion: "v2023.1.0" dependencies: - name: odk-central-mail - version: 1.1.0 - repository: file://charts/odk-mail + version: 1.2.0 condition: odk-central-mail.enabled - name: odk-central-pyxform - version: 1.1.0 - repository: file://charts/odk-pyxform + version: 1.2.0 condition: odk-central-pyxform.enabled - name: odk-central-enketo - version: 1.1.0 - repository: file://charts/odk-enketo + version: 1.2.0 condition: odk-central-enketo.enabled - name: odk-central-backend - version: 1.1.0 - repository: file://charts/odk-backend + version: 1.2.0 condition: odk-central-backend.enabled - name: odk-central-frontend - version: 1.1.0 - repository: file://charts/odk-frontend + version: 1.2.0 condition: odk-central-frontend.enabled keywords: - odk diff --git a/charts/odk-central/README.md b/charts/odk-central/README.md index 021f4dc..ae28dbd 100644 --- a/charts/odk-central/README.md +++ b/charts/odk-central/README.md @@ -1,3 +1,3 @@ # ODK Central Helm Chart -Refer to [Deployment on Kubernetes](https://docs.openg2p.org/guides/deployment-guide/deployment-on-kubernetes). +Refer to [ODK Central deployment instructions](https://docs.openg2p.org/deployment/external-components-setup/odk-central-deployment) diff --git a/charts/odk-central/charts/odk-backend/Chart.lock b/charts/odk-central/charts/odk-central-backend/Chart.lock similarity index 100% rename from charts/odk-central/charts/odk-backend/Chart.lock rename to charts/odk-central/charts/odk-central-backend/Chart.lock diff --git a/charts/odk-central/charts/odk-backend/Chart.yaml b/charts/odk-central/charts/odk-central-backend/Chart.yaml similarity index 96% rename from charts/odk-central/charts/odk-backend/Chart.yaml rename to charts/odk-central/charts/odk-central-backend/Chart.yaml index cb35f49..760d486 100644 --- a/charts/odk-central/charts/odk-backend/Chart.yaml +++ b/charts/odk-central/charts/odk-central-backend/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: odk-central-backend description: A Helm chart for odk-central-backend. type: application -version: 0.1.0 +version: 1.2.0 appVersion: "" dependencies: - name: common diff --git a/charts/odk-central/charts/odk-backend/charts/common-1.17.1.tgz b/charts/odk-central/charts/odk-central-backend/charts/common-1.17.1.tgz similarity index 100% rename from charts/odk-central/charts/odk-backend/charts/common-1.17.1.tgz rename to charts/odk-central/charts/odk-central-backend/charts/common-1.17.1.tgz diff --git a/charts/odk-central/charts/odk-backend/charts/postgresql-11.9.13.tgz b/charts/odk-central/charts/odk-central-backend/charts/postgresql-11.9.13.tgz similarity index 100% rename from charts/odk-central/charts/odk-backend/charts/postgresql-11.9.13.tgz rename to charts/odk-central/charts/odk-central-backend/charts/postgresql-11.9.13.tgz diff --git a/charts/odk-central/charts/odk-backend/config.json.template b/charts/odk-central/charts/odk-central-backend/config.json.template similarity index 100% rename from charts/odk-central/charts/odk-backend/config.json.template rename to charts/odk-central/charts/odk-central-backend/config.json.template diff --git a/charts/odk-central/charts/odk-backend/start-odk.sh b/charts/odk-central/charts/odk-central-backend/start-odk.sh similarity index 100% rename from charts/odk-central/charts/odk-backend/start-odk.sh rename to charts/odk-central/charts/odk-central-backend/start-odk.sh diff --git a/charts/odk-central/charts/odk-backend/templates/configmap.yaml b/charts/odk-central/charts/odk-central-backend/templates/configmap.yaml similarity index 100% rename from charts/odk-central/charts/odk-backend/templates/configmap.yaml rename to charts/odk-central/charts/odk-central-backend/templates/configmap.yaml diff --git a/charts/odk-central/charts/odk-backend/templates/deployment.yaml b/charts/odk-central/charts/odk-central-backend/templates/deployment.yaml similarity index 100% rename from charts/odk-central/charts/odk-backend/templates/deployment.yaml rename to charts/odk-central/charts/odk-central-backend/templates/deployment.yaml diff --git a/charts/odk-central/charts/odk-backend/templates/svc.yaml b/charts/odk-central/charts/odk-central-backend/templates/svc.yaml similarity index 100% rename from charts/odk-central/charts/odk-backend/templates/svc.yaml rename to charts/odk-central/charts/odk-central-backend/templates/svc.yaml diff --git a/charts/odk-central/charts/odk-backend/values.yaml b/charts/odk-central/charts/odk-central-backend/values.yaml similarity index 100% rename from charts/odk-central/charts/odk-backend/values.yaml rename to charts/odk-central/charts/odk-central-backend/values.yaml diff --git a/charts/odk-central/charts/odk-enketo/Chart.lock b/charts/odk-central/charts/odk-central-enketo/Chart.lock similarity index 100% rename from charts/odk-central/charts/odk-enketo/Chart.lock rename to charts/odk-central/charts/odk-central-enketo/Chart.lock diff --git a/charts/odk-central/charts/odk-enketo/Chart.yaml b/charts/odk-central/charts/odk-central-enketo/Chart.yaml similarity index 95% rename from charts/odk-central/charts/odk-enketo/Chart.yaml rename to charts/odk-central/charts/odk-central-enketo/Chart.yaml index 2ead396..27012d1 100644 --- a/charts/odk-central/charts/odk-enketo/Chart.yaml +++ b/charts/odk-central/charts/odk-central-enketo/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: odk-central-enketo description: A Helm chart for odk-central-enketo. type: application -version: 0.1.0 +version: 1.2.0 appVersion: "" dependencies: - name: common diff --git a/charts/odk-central/charts/odk-enketo/charts/common-1.17.1.tgz b/charts/odk-central/charts/odk-central-enketo/charts/common-1.17.1.tgz similarity index 100% rename from charts/odk-central/charts/odk-enketo/charts/common-1.17.1.tgz rename to charts/odk-central/charts/odk-central-enketo/charts/common-1.17.1.tgz diff --git a/charts/odk-central/charts/odk-enketo/config.json.template b/charts/odk-central/charts/odk-central-enketo/config.json.template similarity index 100% rename from charts/odk-central/charts/odk-enketo/config.json.template rename to charts/odk-central/charts/odk-central-enketo/config.json.template diff --git a/charts/odk-central/charts/odk-enketo/redis-enketo-cache.conf b/charts/odk-central/charts/odk-central-enketo/redis-enketo-cache.conf similarity index 100% rename from charts/odk-central/charts/odk-enketo/redis-enketo-cache.conf rename to charts/odk-central/charts/odk-central-enketo/redis-enketo-cache.conf diff --git a/charts/odk-central/charts/odk-enketo/redis-enketo-main.conf b/charts/odk-central/charts/odk-central-enketo/redis-enketo-main.conf similarity index 100% rename from charts/odk-central/charts/odk-enketo/redis-enketo-main.conf rename to charts/odk-central/charts/odk-central-enketo/redis-enketo-main.conf diff --git a/charts/odk-central/charts/odk-enketo/templates/configmap.yaml b/charts/odk-central/charts/odk-central-enketo/templates/configmap.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/templates/configmap.yaml rename to charts/odk-central/charts/odk-central-enketo/templates/configmap.yaml diff --git a/charts/odk-central/charts/odk-enketo/templates/deployment.yaml b/charts/odk-central/charts/odk-central-enketo/templates/deployment.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/templates/deployment.yaml rename to charts/odk-central/charts/odk-central-enketo/templates/deployment.yaml diff --git a/charts/odk-central/charts/odk-enketo/templates/redis-cache-deployment.yaml b/charts/odk-central/charts/odk-central-enketo/templates/redis-cache-deployment.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/templates/redis-cache-deployment.yaml rename to charts/odk-central/charts/odk-central-enketo/templates/redis-cache-deployment.yaml diff --git a/charts/odk-central/charts/odk-enketo/templates/redis-cache-svc.yaml b/charts/odk-central/charts/odk-central-enketo/templates/redis-cache-svc.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/templates/redis-cache-svc.yaml rename to charts/odk-central/charts/odk-central-enketo/templates/redis-cache-svc.yaml diff --git a/charts/odk-central/charts/odk-enketo/templates/redis-conf.yaml b/charts/odk-central/charts/odk-central-enketo/templates/redis-conf.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/templates/redis-conf.yaml rename to charts/odk-central/charts/odk-central-enketo/templates/redis-conf.yaml diff --git a/charts/odk-central/charts/odk-enketo/templates/redis-main-deployment.yaml b/charts/odk-central/charts/odk-central-enketo/templates/redis-main-deployment.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/templates/redis-main-deployment.yaml rename to charts/odk-central/charts/odk-central-enketo/templates/redis-main-deployment.yaml diff --git a/charts/odk-central/charts/odk-enketo/templates/redis-main-svc.yaml b/charts/odk-central/charts/odk-central-enketo/templates/redis-main-svc.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/templates/redis-main-svc.yaml rename to charts/odk-central/charts/odk-central-enketo/templates/redis-main-svc.yaml diff --git a/charts/odk-central/charts/odk-enketo/templates/secret.yaml b/charts/odk-central/charts/odk-central-enketo/templates/secret.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/templates/secret.yaml rename to charts/odk-central/charts/odk-central-enketo/templates/secret.yaml diff --git a/charts/odk-central/charts/odk-enketo/templates/svc.yaml b/charts/odk-central/charts/odk-central-enketo/templates/svc.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/templates/svc.yaml rename to charts/odk-central/charts/odk-central-enketo/templates/svc.yaml diff --git a/charts/odk-central/charts/odk-enketo/values.yaml b/charts/odk-central/charts/odk-central-enketo/values.yaml similarity index 100% rename from charts/odk-central/charts/odk-enketo/values.yaml rename to charts/odk-central/charts/odk-central-enketo/values.yaml diff --git a/charts/odk-central/charts/odk-frontend/Chart.lock b/charts/odk-central/charts/odk-central-frontend/Chart.lock similarity index 100% rename from charts/odk-central/charts/odk-frontend/Chart.lock rename to charts/odk-central/charts/odk-central-frontend/Chart.lock diff --git a/charts/odk-central/charts/odk-frontend/Chart.yaml b/charts/odk-central/charts/odk-central-frontend/Chart.yaml similarity index 95% rename from charts/odk-central/charts/odk-frontend/Chart.yaml rename to charts/odk-central/charts/odk-central-frontend/Chart.yaml index 4fe39aa..7bac9b4 100644 --- a/charts/odk-central/charts/odk-frontend/Chart.yaml +++ b/charts/odk-central/charts/odk-central-frontend/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: odk-central-frontend description: A Helm chart for odk-central-frontend. type: application -version: 0.1.0 +version: 1.2.0 appVersion: "" dependencies: - name: common diff --git a/charts/odk-central/charts/odk-frontend/charts/common-1.17.1.tgz b/charts/odk-central/charts/odk-central-frontend/charts/common-1.17.1.tgz similarity index 100% rename from charts/odk-central/charts/odk-frontend/charts/common-1.17.1.tgz rename to charts/odk-central/charts/odk-central-frontend/charts/common-1.17.1.tgz diff --git a/charts/odk-central/charts/odk-frontend/templates/deployment.yaml b/charts/odk-central/charts/odk-central-frontend/templates/deployment.yaml similarity index 100% rename from charts/odk-central/charts/odk-frontend/templates/deployment.yaml rename to charts/odk-central/charts/odk-central-frontend/templates/deployment.yaml diff --git a/charts/odk-central/charts/odk-frontend/templates/svc.yaml b/charts/odk-central/charts/odk-central-frontend/templates/svc.yaml similarity index 100% rename from charts/odk-central/charts/odk-frontend/templates/svc.yaml rename to charts/odk-central/charts/odk-central-frontend/templates/svc.yaml diff --git a/charts/odk-central/charts/odk-frontend/values.yaml b/charts/odk-central/charts/odk-central-frontend/values.yaml similarity index 100% rename from charts/odk-central/charts/odk-frontend/values.yaml rename to charts/odk-central/charts/odk-central-frontend/values.yaml diff --git a/charts/odk-central/charts/odk-mail/Chart.lock b/charts/odk-central/charts/odk-central-mail/Chart.lock similarity index 100% rename from charts/odk-central/charts/odk-mail/Chart.lock rename to charts/odk-central/charts/odk-central-mail/Chart.lock diff --git a/charts/odk-central/charts/odk-mail/Chart.yaml b/charts/odk-central/charts/odk-central-mail/Chart.yaml similarity index 95% rename from charts/odk-central/charts/odk-mail/Chart.yaml rename to charts/odk-central/charts/odk-central-mail/Chart.yaml index ffd3568..ea0a835 100644 --- a/charts/odk-central/charts/odk-mail/Chart.yaml +++ b/charts/odk-central/charts/odk-central-mail/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: odk-central-mail description: A Helm chart for odk-central-mail. type: application -version: 1.1.0 +version: 1.2.0 appVersion: "" dependencies: - name: common diff --git a/charts/odk-central/charts/odk-mail/charts/common-1.17.1.tgz b/charts/odk-central/charts/odk-central-mail/charts/common-1.17.1.tgz similarity index 100% rename from charts/odk-central/charts/odk-mail/charts/common-1.17.1.tgz rename to charts/odk-central/charts/odk-central-mail/charts/common-1.17.1.tgz diff --git a/charts/odk-central/charts/odk-mail/templates/deployment.yaml b/charts/odk-central/charts/odk-central-mail/templates/deployment.yaml similarity index 100% rename from charts/odk-central/charts/odk-mail/templates/deployment.yaml rename to charts/odk-central/charts/odk-central-mail/templates/deployment.yaml diff --git a/charts/odk-central/charts/odk-mail/templates/svc.yaml b/charts/odk-central/charts/odk-central-mail/templates/svc.yaml similarity index 100% rename from charts/odk-central/charts/odk-mail/templates/svc.yaml rename to charts/odk-central/charts/odk-central-mail/templates/svc.yaml diff --git a/charts/odk-central/charts/odk-mail/values.yaml b/charts/odk-central/charts/odk-central-mail/values.yaml similarity index 100% rename from charts/odk-central/charts/odk-mail/values.yaml rename to charts/odk-central/charts/odk-central-mail/values.yaml diff --git a/charts/odk-central/charts/odk-pyxform/Chart.lock b/charts/odk-central/charts/odk-central-pyxform/Chart.lock similarity index 100% rename from charts/odk-central/charts/odk-pyxform/Chart.lock rename to charts/odk-central/charts/odk-central-pyxform/Chart.lock diff --git a/charts/odk-central/charts/odk-pyxform/Chart.yaml b/charts/odk-central/charts/odk-central-pyxform/Chart.yaml similarity index 95% rename from charts/odk-central/charts/odk-pyxform/Chart.yaml rename to charts/odk-central/charts/odk-central-pyxform/Chart.yaml index eb56699..e66ac69 100644 --- a/charts/odk-central/charts/odk-pyxform/Chart.yaml +++ b/charts/odk-central/charts/odk-central-pyxform/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: odk-central-pyxform description: A Helm chart for odk-central-pyxform. type: application -version: 0.1.0 +version: 1.2.0 appVersion: "" dependencies: - name: common diff --git a/charts/odk-central/charts/odk-pyxform/charts/common-1.17.1.tgz b/charts/odk-central/charts/odk-central-pyxform/charts/common-1.17.1.tgz similarity index 100% rename from charts/odk-central/charts/odk-pyxform/charts/common-1.17.1.tgz rename to charts/odk-central/charts/odk-central-pyxform/charts/common-1.17.1.tgz diff --git a/charts/odk-central/charts/odk-pyxform/templates/deployment.yaml b/charts/odk-central/charts/odk-central-pyxform/templates/deployment.yaml similarity index 100% rename from charts/odk-central/charts/odk-pyxform/templates/deployment.yaml rename to charts/odk-central/charts/odk-central-pyxform/templates/deployment.yaml diff --git a/charts/odk-central/charts/odk-pyxform/templates/svc.yaml b/charts/odk-central/charts/odk-central-pyxform/templates/svc.yaml similarity index 100% rename from charts/odk-central/charts/odk-pyxform/templates/svc.yaml rename to charts/odk-central/charts/odk-central-pyxform/templates/svc.yaml diff --git a/charts/odk-central/charts/odk-pyxform/values.yaml b/charts/odk-central/charts/odk-central-pyxform/values.yaml similarity index 100% rename from charts/odk-central/charts/odk-pyxform/values.yaml rename to charts/odk-central/charts/odk-central-pyxform/values.yaml diff --git a/charts/openg2p-social-registry/.helmignore b/charts/openg2p-social-registry/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/openg2p-social-registry/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/openg2p-social-registry/Chart.lock b/charts/openg2p-social-registry/Chart.lock new file mode 100644 index 0000000..c3637f2 --- /dev/null +++ b/charts/openg2p-social-registry/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: odoo + repository: https://charts.bitnami.com/bitnami + version: 21.6.5 +digest: sha256:ffd96ae199e3b539f9645efdbc70adb9ee537624df83957074aa40315ae3688a +generated: "2024-02-10T00:02:47.30473352+05:30" diff --git a/charts/openg2p-social-registry/Chart.yaml b/charts/openg2p-social-registry/Chart.yaml new file mode 100644 index 0000000..9b3ea86 --- /dev/null +++ b/charts/openg2p-social-registry/Chart.yaml @@ -0,0 +1,11 @@ +apiVersion: v2 +name: openg2p-social-registry +description: A Helm chart for OpenG2P Social Registry Module +type: application +version: 1.2.0 +appVersion: "1.2.0" +dependencies: +- name: odoo + repository: https://charts.bitnami.com/bitnami + version: 21.6.5 + condition: odoo.enabled diff --git a/charts/openg2p-social-registry/README.md b/charts/openg2p-social-registry/README.md new file mode 100644 index 0000000..e5208c7 --- /dev/null +++ b/charts/openg2p-social-registry/README.md @@ -0,0 +1,3 @@ +# OpenG2P Helm Chart + +Refer to [Social Registry Deployment](https://docs.openg2p.org/deployment/openg2p-modules-deployment/social-registry-deployment). diff --git a/charts/openg2p-social-registry/charts/odoo-21.6.5.tgz b/charts/openg2p-social-registry/charts/odoo-21.6.5.tgz new file mode 100644 index 0000000..6f32505 Binary files /dev/null and b/charts/openg2p-social-registry/charts/odoo-21.6.5.tgz differ diff --git a/charts/openg2p-social-registry/templates/_helpers.tpl b/charts/openg2p-social-registry/templates/_helpers.tpl new file mode 100644 index 0000000..b7697fd --- /dev/null +++ b/charts/openg2p-social-registry/templates/_helpers.tpl @@ -0,0 +1,51 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "socialRegistry.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "socialRegistry.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "socialRegistry.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "socialRegistry.labels" -}} +helm.sh/chart: {{ include "socialRegistry.chart" . }} +{{ include "socialRegistry.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "socialRegistry.selectorLabels" -}} +app.kubernetes.io/name: {{ include "socialRegistry.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} diff --git a/charts/openg2p-social-registry/templates/gateway.yaml b/charts/openg2p-social-registry/templates/gateway.yaml new file mode 100644 index 0000000..7fa3b21 --- /dev/null +++ b/charts/openg2p-social-registry/templates/gateway.yaml @@ -0,0 +1,42 @@ +{{- if .Values.istio.enabled }} +{{- if .Values.istio.gateway.enabled }} +apiVersion: networking.istio.io/v1beta1 +kind: Gateway +metadata: + name: {{ include "socialRegistry.fullname" . }} + labels: + {{- include "socialRegistry.labels" . | nindent 4 }} +spec: + selector: + {{ toYaml .Values.istio.gateway.ingressController | nindent 4 }} + servers: + - port: + number: 80 + name: http + protocol: HTTP + hosts: + {{- if .Values.istio.gateway.host }} + - {{ .Values.istio.gateway.host }} + {{- else }} + - {{ .Values.global.hostname }} + {{- end }} + {{- if .Values.istio.gateway.httpTlsRedirect }} + tls: + httpsRedirect: true + {{- end }} + - port: + number: 443 + name: https + protocol: HTTPS + hosts: + {{- if .Values.istio.gateway.host }} + - {{ .Values.istio.gateway.host }} + {{- else }} + - {{ .Values.global.hostname }} + {{- end }} + {{- if .Values.istio.gateway.tls.enabled }} + tls: + {{ toYaml (omit .Values.istio.gateway.tls "enabled") | nindent 6 }} + {{- end }} +{{- end }} +{{- end }} diff --git a/charts/openg2p-social-registry/templates/virtualservice.yaml b/charts/openg2p-social-registry/templates/virtualservice.yaml new file mode 100644 index 0000000..4b3263c --- /dev/null +++ b/charts/openg2p-social-registry/templates/virtualservice.yaml @@ -0,0 +1,34 @@ +{{- if .Values.istio.enabled }} +{{- if .Values.istio.virtualservice.enabled }} +apiVersion: networking.istio.io/v1alpha3 +kind: VirtualService +metadata: + name: {{ include "socialRegistry.fullname" . }} + labels: + {{- include "socialRegistry.labels" . | nindent 4 }} +spec: + hosts: + {{- if .Values.istio.virtualservice.host }} + - {{ .Values.istio.virtualservice.host }} + {{- else }} + - {{ .Values.global.hostname }} + {{- end }} + gateways: + {{- if not .Values.istio.virtualservice.gateway }} + - {{ include "socialRegistry.fullname" . }} + {{- else }} + - {{ .Values.istio.virtualservice.gateway }} + {{- end }} + http: + - match: + - uri: + exact: / + redirect: + uri: /web + - route: + - destination: + host: {{ include "socialRegistry.fullname" . }}-odoo + port: + number: {{ .Values.odoo.service.port }} +{{- end }} +{{- end }} \ No newline at end of file diff --git a/charts/openg2p-social-registry/values.yaml b/charts/openg2p-social-registry/values.yaml new file mode 100644 index 0000000..53d4d82 --- /dev/null +++ b/charts/openg2p-social-registry/values.yaml @@ -0,0 +1,72 @@ +global: + hostname: "openg2p.sandbox.net" + +odoo: + image: + repository: openg2p/openg2p-social-registry-odoo-package + tag: "17.0-develop" + pullPolicy: Always + + service: + type: ClusterIP + port: 80 + + odooEmail: admin + + postgresql: + enabled: false + # primary: + # extendedConfiguration: |- + # wal_level = logical + # max_wal_senders = 20 + # max_replication_slots = 10 + + externalDatabase: + host: "postgres-postgresql.postgres" + port: 5432 + user: openg2puser + database: openg2pdb + create: false + postgresqlPostgresUser: "postgres" + existingSecret: "postgres-postgresql" + existingSecretPasswordKey: "password" + existingSecretPostgresPasswordKey: "postgres-password" + + livenessProbe: + enabled: false + + extraEnvVars: + - name: ODOO_SKIP_MODULES_UPDATE + value: "yes" + - name: LIMIT_TIME_REAL + value: "5000" + - name: LIST_DB + value: "False" + - name: SERVER_WIDE_MODULES + value: web,queue_job + # not using bitnami smtpHost and smtpPort variables, because they need user and pass as well. + - name: OPENG2P_SMTP_HOST + value: "openg2p-mail.openg2p" + - name: OPENG2P_SMTP_PORT + value: "25" + - name: LOG_HANDLER + value: "[':DEBUG']" + - name: LOG_DB + value: "True" + +istio: + enabled: true + virtualservice: + enabled: true + host: "" + gateway: "istio-system/all-hosts" + gateway: + enabled: false + host: "" + ingressController: + istio: ingressgateway + httpTlsRedirect: true + tls: + enabled: true + mode: SIMPLE + credentialName: "" diff --git a/charts/openg2p/Chart.lock b/charts/openg2p/Chart.lock index dcb1599..82259fb 100644 --- a/charts/openg2p/Chart.lock +++ b/charts/openg2p/Chart.lock @@ -1,6 +1,9 @@ dependencies: +- name: odk-central-mail + repository: "" + version: 1.2.0 - name: odoo repository: https://charts.bitnami.com/bitnami version: 21.6.5 -digest: sha256:ffd96ae199e3b539f9645efdbc70adb9ee537624df83957074aa40315ae3688a -generated: "2022-10-21T14:58:55.205281255+05:30" +digest: sha256:dc3134aaf06e2a987ebaa77d7ce7cd347d5fccf4eff9a8de932fe88e0f7f5715 +generated: "2024-02-09T18:02:06.285340237+05:30" diff --git a/charts/openg2p/Chart.yaml b/charts/openg2p/Chart.yaml index dc10527..4ae43bd 100644 --- a/charts/openg2p/Chart.yaml +++ b/charts/openg2p/Chart.yaml @@ -2,13 +2,12 @@ apiVersion: v2 name: openg2p description: A Helm chart for OpenG2P Package type: application -version: 1.1.0 -appVersion: "1.1.0" +version: 1.2.0 +appVersion: "1.2.0" dependencies: - name: odk-central-mail alias: mail - version: 1.1.0 - repository: file://charts/mail + version: 1.2.0 condition: mail.enabled - name: odoo repository: https://charts.bitnami.com/bitnami diff --git a/charts/openg2p/README.md b/charts/openg2p/README.md index 6fc4f3a..99e9ad9 100644 --- a/charts/openg2p/README.md +++ b/charts/openg2p/README.md @@ -1,3 +1,3 @@ # OpenG2P Helm Chart -Refer to [Deployment on Kubernetes](https://docs.openg2p.org/guides/deployment-guide/deployment-on-kubernetes). +Refer to [OpenG2P PBMS deployment instructions](https://docs.openg2p.org/deployment/openg2p-modules-deployment/pbms-deployment) diff --git a/charts/openg2p/charts/mail b/charts/openg2p/charts/odk-central-mail similarity index 100% rename from charts/openg2p/charts/mail rename to charts/openg2p/charts/odk-central-mail diff --git a/charts/openg2p/values.yaml b/charts/openg2p/values.yaml index 367887f..fb42d4d 100644 --- a/charts/openg2p/values.yaml +++ b/charts/openg2p/values.yaml @@ -7,7 +7,7 @@ global: odoo: image: repository: openg2p/openg2p-odoo-package - tag: "1.1.0" + tag: "15.0-develop" pullPolicy: Always service: diff --git a/charts/social-payments-account-registry/README.md b/charts/social-payments-account-registry/README.md index 7b177e8..dc580c4 100644 --- a/charts/social-payments-account-registry/README.md +++ b/charts/social-payments-account-registry/README.md @@ -1,3 +1,3 @@ # Social Payments Account Registry Helm Chart -Refer to [Deployment on Kubernetes](https://docs.openg2p.org/guides/deployment-guide/deployment-on-kubernetes). +Refer to [SPAR Deployment](https://docs.openg2p.org/deployment/openg2p-modules-deployment/spar-deployment).