Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
-w /helm-docs \
jnorwood/helm-docs:latest \
--document-dependency-values=true \
--chart-search-root=charts/incubator
--chart-search-root=charts

# Check for uncommitted changes after helm-docs
if ! git diff --exit-code; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Build Helm Dependencies
run: |
# Build dependencies for all charts
for chart in charts/incubator/*; do
for chart in charts/*; do
if [ -f "$chart/Chart.yaml" ]; then
echo "Updating dependencies for $chart"
helm dependency update "$chart"
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.7.0
with:
charts_dir: charts/incubator
charts_dir: charts
config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/sync-control-center-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ jobs:
id: update_versions
run: |
TAG="${{ steps.generate_tag.outputs.target_tag }}"
VALUES_FILE="charts/incubator/hyperswitch-control-center/values.yaml"
CHART_FILE="charts/incubator/hyperswitch-control-center/Chart.yaml"
VALUES_FILE="charts/hyperswitch-control-center/values.yaml"
CHART_FILE="charts/hyperswitch-control-center/Chart.yaml"

echo "Updating control center image tag and chart version with tag: $TAG"

Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
Source ref: $TAG
Tag: $GIT_TAG"

git add charts/incubator/hyperswitch-control-center/values.yaml charts/incubator/hyperswitch-control-center/Chart.yaml
git add charts/hyperswitch-control-center/values.yaml charts/hyperswitch-control-center/Chart.yaml
git commit -m "$COMMIT_MSG"
else
echo "No file changes to commit (changes may have come from merge)"
Expand All @@ -169,8 +169,8 @@ jobs:
echo "Git tag: $GIT_TAG"
echo ""
echo "Files updated:"
echo " - charts/incubator/hyperswitch-control-center/values.yaml → image.tag: $TAG"
echo " - charts/incubator/hyperswitch-control-center/Chart.yaml → version: $CHART_VERSION"
echo " - charts/hyperswitch-control-center/values.yaml → image.tag: $TAG"
echo " - charts/hyperswitch-control-center/Chart.yaml → version: $CHART_VERSION"

- name: No changes summary
if: steps.check_changes.outputs.changes == 'false'
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/sync-hyperswitch-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,35 +104,35 @@ jobs:
echo "Downloading configuration files from hyperswitch ref: $SOURCE_REF"

# Create target directory
mkdir -p charts/incubator/hyperswitch-app/configs
mkdir -p charts/hyperswitch-app/configs

# Download specific configuration files with error handling
echo "Downloading integration_test.toml..."
curl -fsSL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3.raw" \
"${BASE_URL}/integration_test.toml" \
-o charts/incubator/hyperswitch-app/configs/router-integ.toml
-o charts/hyperswitch-app/configs/router-integ.toml

echo "Downloading sandbox.toml..."
curl -fsSL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3.raw" \
"${BASE_URL}/sandbox.toml" \
-o charts/incubator/hyperswitch-app/configs/router-sandbox.toml
-o charts/hyperswitch-app/configs/router-sandbox.toml

echo "Downloading production.toml..."
curl -fsSL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3.raw" \
"${BASE_URL}/production.toml" \
-o charts/incubator/hyperswitch-app/configs/router-production.toml
-o charts/hyperswitch-app/configs/router-production.toml

echo "✅ Configuration files downloaded successfully"

- name: Update service versions and chart version
id: update_versions
run: |
SOURCE_REF="${{ steps.generate_tag.outputs.target_ref }}"
VALUES_FILE="charts/incubator/hyperswitch-app/values.yaml"
CHART_FILE="charts/incubator/hyperswitch-app/Chart.yaml"
VALUES_FILE="charts/hyperswitch-app/values.yaml"
CHART_FILE="charts/hyperswitch-app/Chart.yaml"
UPDATE_ALL="${{ steps.config.outputs.update_all_services }}"
TAG_PREFIX="${{ steps.config.outputs.tag_prefix }}"

Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:

- name: Helm dependency update
run: |
CHART_DIR="charts/incubator/hyperswitch-app"
CHART_DIR="charts/hyperswitch-app"

echo "Updating chart dependencies..."
cd $CHART_DIR
Expand Down Expand Up @@ -242,8 +242,8 @@ jobs:
# Check if there are uncommitted changes to commit
if [ -n "$(git status --porcelain)" ]; then
echo "Committing file changes..."
git add charts/incubator/hyperswitch-app/configs/ charts/incubator/hyperswitch-app/values.yaml charts/incubator/hyperswitch-app/Chart.yaml
git add -f charts/incubator/hyperswitch-app/charts/ charts/incubator/hyperswitch-app/Chart.lock
git add charts/hyperswitch-app/configs/ charts/hyperswitch-app/values.yaml charts/hyperswitch-app/Chart.yaml
git add -f charts/hyperswitch-app/charts/ charts/hyperswitch-app/Chart.lock
git commit -m "$COMMIT_MSG"
else
echo "No file changes to commit (changes may have come from merge)"
Expand Down Expand Up @@ -271,9 +271,9 @@ jobs:
echo "Tag: $TAG"
echo ""
echo "Configuration files updated:"
echo " - charts/incubator/hyperswitch-app/configs/router-integ.toml"
echo " - charts/incubator/hyperswitch-app/configs/router-sandbox.toml"
echo " - charts/incubator/hyperswitch-app/configs/router-production.toml"
echo " - charts/hyperswitch-app/configs/router-integ.toml"
echo " - charts/hyperswitch-app/configs/router-sandbox.toml"
echo " - charts/hyperswitch-app/configs/router-production.toml"

if [ "$SYNC_TYPE" = "full" ]; then
echo "All service versions updated:"
Expand All @@ -284,10 +284,10 @@ jobs:
fi

echo "Chart updates:"
echo " - charts/incubator/hyperswitch-app/Chart.yaml"
echo " - charts/hyperswitch-app/Chart.yaml"
echo "Dependencies updated for air-gapped deployments:"
echo " - charts/incubator/hyperswitch-app/charts/"
echo " - charts/incubator/hyperswitch-app/Chart.lock"
echo " - charts/hyperswitch-app/charts/"
echo " - charts/hyperswitch-app/Chart.lock"

- name: No changes summary
if: steps.check_changes.outputs.changes == 'false'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/sync-ucs-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,29 +100,29 @@ jobs:
echo "Downloading UCS configs from connector-service ref: $SOURCE_REF"

# Create target directory
mkdir -p charts/incubator/hyperswitch-ucs/configs
mkdir -p charts/hyperswitch-ucs/configs

# Download specific configuration files with error handling
echo "Downloading sandbox.toml..."
curl -fsSL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3.raw" \
"${BASE_URL}/sandbox.toml" \
-o charts/incubator/hyperswitch-ucs/configs/ucs-sandbox.toml
-o charts/hyperswitch-ucs/configs/ucs-sandbox.toml

echo "Downloading production.toml..."
curl -fsSL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3.raw" \
"${BASE_URL}/production.toml" \
-o charts/incubator/hyperswitch-ucs/configs/ucs-production.toml
-o charts/hyperswitch-ucs/configs/ucs-production.toml

echo "✅ Configuration files downloaded successfully"

- name: Update UCS version & chart version
id: update_versions
run: |
SOURCE_REF="${{ steps.generate_tag.outputs.target_ref }}"
VALUES_FILE="charts/incubator/hyperswitch-ucs/values.yaml"
CHART_FILE="charts/incubator/hyperswitch-ucs/Chart.yaml"
VALUES_FILE="charts/hyperswitch-ucs/values.yaml"
CHART_FILE="charts/hyperswitch-ucs/Chart.yaml"
TAG_PREFIX="${{ steps.config.outputs.tag_prefix }}"

echo "Updating tag version and chart version with hyperswitch-ucs reference: $SOURCE_REF"
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:

- name: Helm dependency update
run: |
CHART_DIR="charts/incubator/hyperswitch-ucs"
CHART_DIR="charts/hyperswitch-ucs"

echo "Updating chart dependencies..."
cd $CHART_DIR
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
Tag: $TAG
"

git add charts/incubator/hyperswitch-ucs/
git add charts/hyperswitch-ucs/

git commit -m "$COMMIT_MSG"

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*.tgz
charts/*/charts/
charts/*/Chart.lock
charts/incubator/*/charts/
charts/*/charts/
*.lock
requirements.lock
index.yaml
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
The single API to access payment ecosystems across 130+ countries</div>

<p align="center">
<a href="./charts/incubator/hyperswitch-stack/README.md#try-a-payment">Try a Payment</a> •
<a href="./charts/incubator/hyperswitch-stack/README.md">Setup in k8s</a> •
<a href="https://api-reference.hyperswitch.io/introduction"> API Docs </a>
<a href="./charts/hyperswitch-stack/README.md#try-a-payment">Try a Payment</a> •
<a href="./charts/hyperswitch-stack/README.md">Setup in k8s</a> •
<a href="https://api-reference.hyperswitch.io/introduction"> API Docs </a>
<br>
<a href="./charts/incubator/hyperswitch-stack/README.md#community-contributions">Community and Contributions</a> •
<a href="./charts/incubator/hyperswitch-stack/README.md#copyright-and-license">Copyright and License</a>
<a href="./charts/hyperswitch-stack/README.md#community-contributions">Community and Contributions</a> •
<a href="./charts/hyperswitch-stack/README.md#copyright-and-license">Copyright and License</a>
</p>

<p align="center">
Expand Down Expand Up @@ -55,4 +55,4 @@ helm repo add hyperswitch https://juspay.github.io/hyperswitch-helm

You can then run `helm search repo hyperswitch-stack` to see the charts.

<b> Chart documentation is available in [Hyperswitch Stack directory](https://github.com/juspay/hyperswitch-helm/blob/main/charts/incubator/hyperswitch-stack/README.md). </b>
<b> Chart documentation is available in [Hyperswitch Stack directory](https://github.com/juspay/hyperswitch-helm/blob/main/charts/hyperswitch-stack/README.md). </b>
12 changes: 6 additions & 6 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ tasks:
- task --list-all
silent: true

package-incubator-hyperswitch-helm:
package-hyperswitch-helm:
#language=sh
cmds:
- >
STACK=charts/incubator/hyperswitch-stack &&
STACK=charts/hyperswitch-stack &&
version=$(grep '^version:' $STACK/Chart.yaml | awk '{print $2}') &&
helm package $STACK --dependency-update &&
helm repo index $STACK --url https://juspay.github.io/hyperswitch-helm/v$version &&
mkdir -p v$version && mv hyperswitch-stack-$version.tgz $STACK/index.yaml v$version &&
helm repo index . --url https://juspay.github.io/hyperswitch-helm
aliases:
- pihh
- phh

update-readme:
#language=sh
cmds:
Expand All @@ -31,12 +31,12 @@ tasks:
-w /helm-docs
jnorwood/helm-docs:latest
--document-dependency-values=true
--chart-search-root=charts/incubator
--chart-search-root=charts
aliases:
- ur

repo-update-index:
#language=sh
cmds:
- >
helm repo index repo
helm repo index repo
Loading
Loading