Skip to content

Commit

Permalink
helm: update version for helm-stack (#82)
Browse files Browse the repository at this point in the history
Co-authored-by: Jagan Elavarasan <jaganelavarasan@gmail.com>
  • Loading branch information
prasunna09 and jagan-jaya authored Apr 2, 2024
1 parent fbd315d commit 7582599
Show file tree
Hide file tree
Showing 19 changed files with 1,401 additions and 1,324 deletions.
Binary file not shown.
21 changes: 21 additions & 0 deletions charts/incubator/hyperswitch-app/templates/_envs.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,27 @@
secretKeyRef:
key: ROUTER__CONNECTOR_ONBOARDING__PAYPAL__PARTNER_ID
name: hyperswitch-secrets
- name: ROUTER__SECRETS_MANAGEMENT__AWS_KMS__KEY_ID
valueFrom:
secretKeyRef:
key: ROUTER__KMS__KEY_ID
name: hyperswitch-secrets
- name: ROUTER__SECRETS_MANAGEMENT__AWS_KMS__REGION
valueFrom:
secretKeyRef:
key: ROUTER__KMS__REGION
name: hyperswitch-secrets
- name: ROUTER__ENCRYPTION_MANAGEMENT__AWS_KMS__KEY_ID
valueFrom:
secretKeyRef:
key: ROUTER__KMS__KEY_ID
name: hyperswitch-secrets
- name: ROUTER__ENCRYPTION_MANAGEMENT__AWS_KMS__REGION
valueFrom:
secretKeyRef:
key: ROUTER__KMS__REGION
name: hyperswitch-secrets



{{- end -}}
923 changes: 409 additions & 514 deletions charts/incubator/hyperswitch-app/templates/consumer/configmap.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ data:
ROUTER__REDIS__PORT: {{ include "redis.port" . | toString | b64enc }}
ROUTER__SECRETS__ADMIN_API_KEY: {{ .Values.application.server.secrets.admin_api_key | b64enc }}
ROUTER__SECRETS__JWT_SECRET: {{ .Values.application.server.secrets.jwt_secret | b64enc }}

ROUTER__CRM__TOKEN: {{ .Values.application.server.secrets.crm_token | b64enc }}
ROUTER__LOCKER__REDIS_TEMP_LOCKER_ENCRYPTION_KEY: {{ .Values.application.server.secrets.redis_temp_locker_encryption_key | b64enc }}
ROUTER__PAYMENT_METHOD_AUTH__PM_AUTH_KEY: {{ .Values.application.server.secrets.pm_auth_key | b64enc }}
689 changes: 462 additions & 227 deletions charts/incubator/hyperswitch-app/templates/producer/configmap.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ data:
ROUTER__SECRETS__ADMIN_API_KEY: {{ .Values.application.server.secrets.admin_api_key | b64enc }}
ROUTER__SECRETS__JWT_SECRET: {{ .Values.application.server.secrets.jwt_secret | b64enc }}
ROUTER__SECRETS__MIGRATION_ENCRYPTION_TIMESTAMP: {{ "1685510751" | b64enc }}
ROUTER__CRM__TOKEN: {{ .Values.application.server.secrets.crm_token | b64enc }}
ROUTER__LOCKER__REDIS_TEMP_LOCKER_ENCRYPTION_KEY: {{ .Values.application.server.secrets.redis_temp_locker_encryption_key | b64enc }}
ROUTER__SECRETS__RECON_ADMIN_API_KEY: {{ .Values.application.server.secrets.recon_admin_api_key | b64enc }}

1,001 changes: 444 additions & 557 deletions charts/incubator/hyperswitch-app/templates/router/configmap.yaml

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions charts/incubator/hyperswitch-app/templates/router/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ data:
ROUTER__REPLICA_DATABASE__DBNAME: {{ include "postgresql.database" . | b64enc }}
ROUTER__REPLICA_DATABASE__PORT: {{ include "postgresql.port" . | toString | b64enc }}
ROUTER__REPLICA_DATABASE__USERNAME: {{ include "postgresqlreplica.username" . | b64enc }}
ROUTER__LOCKER__REDIS_TEMP_LOCKER_ENCRYPTION_KEY: {{ .Values.application.server.secrets.redis_temp_locker_encryption_key | b64enc }}
ROUTER__SECRETS__RECON_ADMIN_API_KEY: {{ .Values.application.server.secrets.recon_admin_api_key | b64enc }}
ROUTER__PAYMENT_METHOD_AUTH__PM_AUTH_KEY: {{ .Values.application.server.secrets.pm_auth_key | b64enc }}
ROUTER__CRM__TOKEN: {{ .Values.application.server.secrets.crm_token | b64enc }}
ROUTER__FOREX_API__API_KEY: {{ .Values.application.server.secrets.forex_api_key | b64enc }}
ROUTER__FOREX_API__FALLBACK_API_KEY: {{ .Values.application.server.secrets.forex_api_key | b64enc }}
21 changes: 14 additions & 7 deletions charts/incubator/hyperswitch-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ application:
kms_connector_onboarding_paypal_client_id: dummy_val
kms_connector_onboarding_paypal_client_secret: dummy_val
kms_connector_onboarding_paypal_partner_id: dummy_val
redis_temp_locker_encryption_key: dummy_val
crm_token: dummy_val
forex_api_key: dummy_val
pm_auth_key: dummy_val
master_enc_key: 471f22516724347bcca9c20c5fa88d9821c4604e63a6aceffd24605809c9237c
locker:
host: http://hyperswitch-vault
Expand All @@ -157,6 +161,9 @@ application:
basilisk:
host: basilisk-host
server_base_url: https://sandbox.hyperswitch.io
opensearch:
host: opensearch-host
run_env: sandbox
consumer:
# Number of replicas to be used for the application
replicas: 1
Expand Down Expand Up @@ -235,7 +242,7 @@ application:

controlCenter:
# Image to be used by the deployment to create the pod
image: juspaydotin/hyperswitch-control-center:v1.17.0
image: juspaydotin/hyperswitch-control-center:v1.29.9
# Number of replicas to be used for the application
replicas: 1
# Wait time allowed for the deployment before the deployment is marked as failed
Expand Down Expand Up @@ -277,18 +284,18 @@ application:
# configuration values to be used by the service that is connected to the hyperswitch server
services:
router:
version: v1.105.0
image: juspaydotin/hyperswitch-router:v1.105.0-standalone
version: v1.107.0
image: juspaydotin/hyperswitch-router:v1.107.0-standalone
host: http://localhost:8080
consumer:
image: juspaydotin/hyperswitch-consumer:v1.105.0-standalone
image: juspaydotin/hyperswitch-consumer:v1.107.0-standalone
producer:
image: juspaydotin/hyperswitch-producer:v1.105.0-standalone
image: juspaydotin/hyperswitch-producer:v1.107.0-standalone
controlCenter:
image: juspaydotin/hyperswitch-control-center:v1.17.0
image: juspaydotin/hyperswitch-control-center:v1.29.9
sdk:
host: http://localhost:9090
version: 0.16.7
version: 0.27.2
subversion: v0
redis:
# - enable Bitnami redis sub-chart helm installation
Expand Down
2 changes: 1 addition & 1 deletion charts/incubator/hyperswitch-card-vault/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ server:
annotations: {}

# Image to be used for hyperswitch-card-vault.
image: juspaydotin/hyperswitch-card-vault:0.1.3-nokms
image: juspaydotin/hyperswitch-card-vault:0.4.0

# values to be used in pod template.
pod:
Expand Down
6 changes: 3 additions & 3 deletions charts/incubator/hyperswitch-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ assets
| autoBuild.enable | bool | `false` | enable npm auto build |
| autoBuild.forceBuild | bool | `true` | force rebuild assets even these files exist |
| autoBuild.gitCloneParam.gitRepo | string | `"https://github.com/juspay/hyperswitch-web"` | hyperswitch-web repository |
| autoBuild.gitCloneParam.gitVersion | string | `"0.16.7"` | hyperswitch-web repository tag |
| autoBuild.gitCloneParam.gitVersion | string | `"0.27.2"` | hyperswitch-web repository tag |
| autoBuild.nginxConfig.extraPath | string | `"v0"` | nginx static server extra path ( like https://<host>/0.15.8/v0 ) |
| autoBuild.nginxConfig.image | string | `"nginx"` | nginx static server image |
| autoBuild.nginxConfig.tag | string | `"1.25.3"` | nginx static server tag |
Expand All @@ -33,10 +33,10 @@ assets
| autoscaling.targetCPUUtilizationPercentage | int | `80` | autoscaling target CPU utilization |
| autoscaling.targetMemoryUtilizationPercentage | int | `80` | autoscaling target memory utilization |
| fullnameOverride | string | `""` | chart full name override |
| image.nginxConfig.extraPath | string | `"v0"` | nginx extra path used to set liveness and readiness probe /0.16.7/v0 |
| image.nginxConfig.extraPath | string | `"v0"` | nginx extra path used to set liveness and readiness probe /0.27.2/v0 |
| image.pullPolicy | string | `"IfNotPresent"` | prebuild image pull policy |
| image.repository | string | `"nginx"` | prebuild SDK image |
| image.tag | string | `"0.16.7"` | prebuild image tag, the image tag whose default is the chart appVersion. |
| image.tag | string | `"0.27.2"` | prebuild image tag, the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | image pull secret |
| ingress.annotations | object | `{}` | ingress annotations |
| ingress.className | string | `"nginx"` | ingress class name |
Expand Down
11 changes: 11 additions & 0 deletions charts/incubator/hyperswitch-sdk/sdk-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:14.21

ARG SDK_VERSION
# Install Python
RUN apt-get update && \
apt-get install -y python3 python3-pip git
RUN git clone --branch v${SDK_VERSION} https://github.com/juspay/hyperswitch-web
WORKDIR /hyperswitch-web
RUN npm install
RUN npm run re:build
RUN npm run build:integ
10 changes: 10 additions & 0 deletions charts/incubator/hyperswitch-sdk/sdk-builder/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Build Hyperloader.js
Whenever we try to host Hyperloader.js for new version, we need to build asset. The Docker file in this folder can be used to build the image in local and publish it to Hyperswitch dockerhub for open-source users to use it directly changing their domain names using helm chart and host it on their cloud.


```
cd hyperswitch-helm/charts/incubator/hyperswitch-sdk/sdk-builder
docker build --build-arg SDK_VERSION=<0.16.7> --platform=linux/amd64 -t hyperswitch-web .
docker tag hyperswitch-web <user>/hyperswitch-web:<0.16.7>
docker push <user>/hyperswitch-web:<0.16.7>
```
6 changes: 3 additions & 3 deletions charts/incubator/hyperswitch-sdk/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ autoBuild:
# -- hyperswitch-web repository
gitRepo: https://github.com/juspay/hyperswitch-web
# -- hyperswitch-web repository tag
gitVersion: 0.16.7
gitVersion: 0.27.2
buildParam:
# -- node build parameter, hyperswitch-web sdk host (same as ingress host)
envSdkUrl: https://hyperswitch-sdk
Expand All @@ -78,9 +78,9 @@ image:
# -- prebuild image pull policy
pullPolicy: IfNotPresent
# -- prebuild image tag, the image tag whose default is the chart appVersion.
tag: 0.16.7
tag: 0.27.2
nginxConfig:
# -- nginx extra path used to set liveness and readiness probe /0.16.7/v0
# -- nginx extra path used to set liveness and readiness probe /0.27.2/v0
extraPath: v0

# -- image pull secret
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion charts/incubator/hyperswitch-stack/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ then
echo "======================================================"
echo "** App server running on: http://localhost:8080 **"
echo "** Control center running on: http://localhost:9000 **"
echo "** Hyperswitch Web running on: http://localhost:9090 **"
echo "** Hyperswitch Web running on: http://localhost:9090/0.27.2/v0/HyperLoader.js **"
echo "======================================================"
echo "\nRun this command to close exposed ports kill\n"
echo "kill \$( lsof -i:8080 -t ) && kill \$( lsof -i:9090 -t ) && kill \$( lsof -i:9000 -t )"
Expand Down
14 changes: 7 additions & 7 deletions charts/incubator/hyperswitch-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ hyperswitchsdk:
autoBuild:
forceBuild: true
gitCloneParam:
gitVersion: 0.16.7
gitVersion: 0.27.2
nginxConfig:
extraPath: v0
buildParam:
Expand Down Expand Up @@ -163,16 +163,16 @@ hyperswitch-app:
targetSecurityGroup: *lb_security_group
services:
router:
version: v1.105.0
image: juspaydotin/hyperswitch-router:v1.105.0-standalone
version: v1.107.0
image: juspaydotin/hyperswitch-router:v1.107.0-standalone
host: *router_host
consumer:
image: juspaydotin/hyperswitch-consumer:v1.105.0-standalone
image: juspaydotin/hyperswitch-consumer:v1.107.0-standalone
producer:
image: juspaydotin/hyperswitch-producer:v1.105.0-standalone
image: juspaydotin/hyperswitch-producer:v1.107.0-standalone
controlCenter:
image: juspaydotin/hyperswitch-control-center:v1.17.0
image: juspaydotin/hyperswitch-control-center:v1.29.9
sdk:
host: *web_sdk_host
version: 0.16.7
version: 0.27.2
subversion: v0
Binary file modified v0.1.1/hyperswitch-stack-0.1.1.tgz
Binary file not shown.
6 changes: 3 additions & 3 deletions v0.1.1/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ entries:
hyperswitch-stack:
- apiVersion: v2
appVersion: 1.16.0
created: "2024-03-22T17:30:02.876956+05:30"
created: "2024-04-03T01:24:08.856458+05:30"
dependencies:
- name: hyperswitch-app
repository: file://../hyperswitch-app
Expand All @@ -13,10 +13,10 @@ entries:
repository: file://../hyperswitch-sdk
version: 0.1.0
description: Helm chart for Hyperswitch services
digest: 8a3ed5014ee3fe180d6441316b511ca49923a9dae83fec6a9aebb0aaa44e115b
digest: b20e9958f9c1d1ed9de3c6975564745d217ef66f6bb6d3c8d3228cfef69edb25
name: hyperswitch-stack
type: application
urls:
- https://juspay.github.io/hyperswitch-helm/v0.1.1/hyperswitch-stack-0.1.1.tgz
version: 0.1.1
generated: "2024-03-22T17:30:02.859854+05:30"
generated: "2024-04-03T01:24:08.802531+05:30"

0 comments on commit 7582599

Please sign in to comment.