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
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:
- name: Replace APP_VERSION in ./${{ env.MODULE }}-chart/Chart.yaml
run: sed -i 's/APP_VERSION/${{ env.APP_VERSION }}/g' ./${{ env.MODULE }}-chart/Chart.yaml

- name: Replace CHART_VERSION in ./${{ env.MODULE }}-pre-upgrade-chart/Chart.yaml
run: sed -i 's/CHART_VERSION/${{ env.CHART_VERSION }}/g' ./${{ env.MODULE }}-pre-upgrade-chart/Chart.yaml

- name: Set up Helm
uses: azure/setup-helm@v4.1.0

Expand Down Expand Up @@ -165,7 +168,7 @@ jobs:
agentPoolProfiles:
- name: systempool
count: 2
vmSize: Standard_DS2_v2
vmSize: Standard_D4s_v3
mode: System
operatorSpec:
secrets:
Expand Down Expand Up @@ -204,6 +207,10 @@ jobs:
run: |
kubectl get crd \
--kubeconfig=managedcluster-$K8S_VERSION_NODOT-kubeconfig.yaml

- name: Build local dependencies charts
run: |
helm dependency build ./${{ env.MODULE }}-chart

- name: Install ${{ env.MODULE }} chart
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
k8s_version: [ "4.16.30" ]
k8s_version: [ "4.19.20" ]

steps:
- name: Authenticate with GitHub App
Expand Down Expand Up @@ -84,6 +84,9 @@ jobs:
- name: Replace APP_VERSION in ./${{ env.MODULE }}-chart/Chart.yaml
run: sed -i 's/APP_VERSION/${{ env.APP_VERSION }}/g' ./${{ env.MODULE }}-chart/Chart.yaml

- name: Replace CHART_VERSION in ./${{ env.MODULE }}-pre-upgrade-chart/Chart.yaml
run: sed -i 's/CHART_VERSION/${{ env.CHART_VERSION }}/g' ./${{ env.MODULE }}-pre-upgrade-chart/Chart.yaml

- name: Set up Helm
uses: azure/setup-helm@v4.1.0

Expand Down Expand Up @@ -349,6 +352,10 @@ jobs:
kubectl get crd \
--kubeconfig=openshiftcluster-$K8S_VERSION_NODOT-kubeconfig.yaml --insecure-skip-tls-verify=true

- name: Build local dependencies charts
run: |
helm dependency build ./${{ env.MODULE }}-chart

- name: Install ${{ env.MODULE }} chart
run: |
helm install ${{ env.MODULE }} ./${{ env.MODULE }}-chart \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:

- name: Replace APP_VERSION in ./${{ env.MODULE }}-chart/Chart.yaml
run: sed -i 's/APP_VERSION/${{ env.APP_VERSION }}/g' ./${{ env.MODULE }}-chart/Chart.yaml

- name: Replace CHART_VERSION in ./${{ env.MODULE }}-pre-upgrade-chart/Chart.yaml
run: sed -i 's/CHART_VERSION/${{ env.CHART_VERSION }}/g' ./${{ env.MODULE }}-pre-upgrade-chart/Chart.yaml

- name: Set up Helm
uses: azure/setup-helm@v4.1.0
Expand All @@ -103,6 +106,10 @@ jobs:
helm repo update krateo
helm install ${{ env.MODULE }}-crd krateo/${{ env.MODULE }}-crd --create-namespace -n krateo-system --wait --timeout=120s

- name: Build local dependencies charts
run: |
helm dependency build ./${{ env.MODULE }}-chart

- name: Install ${{ env.MODULE }} previous chart
run: |
helm install ${{ env.MODULE }} krateo/${{ env.MODULE }} --create-namespace -n krateo-system --wait
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/release-pullrequest-kind-installer-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,9 @@ jobs:
helm repo update krateo
helm install ${{ env.MODULE }}-crd krateo/${{ env.MODULE }}-crd --create-namespace -n krateo-system --wait --timeout=120s

- name: Package local dependency
- name: Build local dependencies charts
run: |
# 1. Create the charts/ directory inside your main chart
mkdir -p ./${{ env.MODULE }}-chart/charts

# 2. Package the pre-upgrade chart from its local folder
# Assuming the folder is in the root of the workspace
# We place the resulting .tgz directly into the main chart's 'charts' folder
helm package ./${{ env.MODULE }}-pre-upgrade-chart --destination ./${{ env.MODULE }}-chart/charts/

# 3. List files to verify the .tgz is there (for debugging)
ls -R ./${{ env.MODULE }}-chart/charts/
helm dependency build ./${{ env.MODULE }}-chart

- name: Install ${{ env.MODULE }} chart
run: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release-tag-kind-installer-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
- name: Replace APP_VERSION in ./${{ env.MODULE }}-chart/Chart.yaml
run: sed -i 's/APP_VERSION/${{ env.APP_VERSION }}/g' ./${{ env.MODULE }}-chart/Chart.yaml

- name: Replace CHART_VERSION in ./${{ env.MODULE }}-pre-upgrade-chart/Chart.yaml
run: sed -i 's/CHART_VERSION/${{ env.CHART_VERSION }}/g' ./${{ env.MODULE }}-pre-upgrade-chart/Chart.yaml

- name: Set up Helm
uses: azure/setup-helm@v4.1.0

Expand All @@ -99,6 +102,10 @@ jobs:
helm repo update krateo
helm install ${{ env.MODULE }}-crd krateo/${{ env.MODULE }}-crd --create-namespace -n krateo-system --wait --timeout=120s

- name: Build local dependencies charts
run: |
helm dependency build ./${{ env.MODULE }}-chart

- name: Install ${{ env.MODULE }} chart
run: |
helm install ${{ env.MODULE }} ./${{ env.MODULE }}-chart --create-namespace -n krateo-system --wait
Expand Down
2 changes: 1 addition & 1 deletion installer-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ sources:
dependencies:
- name: installer-pre-upgrade
version: CHART_VERSION
repository: "https://charts.krateo.io"
repository: file://../installer-pre-upgrade-chart