Skip to content
Merged
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
26 changes: 26 additions & 0 deletions .github/workflows/build-and-push-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,32 @@ jobs:
- name: Set up Helm
uses: azure/setup-helm@v4

- name: Build sub-chart dependencies
env:
CHART_NAME: ${{ steps.chart_metadata.outputs.chart_name }}
run: |
set -euo pipefail

CHART_PATH="./charts/$CHART_NAME"

# Find all sub-charts with dependencies and build them
if [[ -d "$CHART_PATH/charts" ]]; then
echo "Checking for sub-charts with dependencies..."
find "$CHART_PATH/charts" -name "Chart.yaml" -type f 2>/dev/null | while read -r subchart; do
subchart_dir=$(dirname "$subchart")
subchart_name=$(basename "$subchart_dir")

if grep -q 'dependencies:' "$subchart"; then
echo "Building dependencies for sub-chart: $subchart_name"
helm dependency build "$subchart_dir"
else
echo "No dependencies for sub-chart: $subchart_name"
fi
done
else
echo "No sub-charts directory found, skipping sub-chart dependency build"
fi

- name: Push Chart to ACR
uses: appany/helm-oci-chart-releaser@v0.5.0
with:
Expand Down
20 changes: 13 additions & 7 deletions charts/sftpgo-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,20 @@ sftpgo:
averageUtilization: 80

service:
type: LoadBalancer
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: 'true'
service.beta.kubernetes.io/azure-load-balancer-internal-subnet: master-subnet
ports:
sftp:
port: 2022
type: ClusterIP

services:
lb:
type: LoadBalancer
ports: # Define extra ports if needed for LoadBalancer service
sftp:
port: 2022
webdav:
port: 5005

webdavd:
enabled: true

sftpgo-node-exporter:
resources:
requests:
Expand Down