Skip to content

Commit

Permalink
Merge branch 'main' into Develop
Browse files Browse the repository at this point in the history
  • Loading branch information
IKruglyak authored May 14, 2024
2 parents b3bcec8 + af6db34 commit fb255da
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 11 deletions.
46 changes: 41 additions & 5 deletions .github/workflows/validate-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
pull_request:
branches: ["main"]

workflow_dispatch:

jobs:
validate-helm:
runs-on: ubuntu-latest
Expand All @@ -17,12 +15,50 @@ jobs:
- uses: actions/checkout@v4

- name: Helm tool installer
uses: Azure/setup-helm@v3
uses: Azure/[email protected]

- name: output.log is present
run: |
if [ ! -f output.log ]; then
echo 'output.log is not present'
echo 'Deploy helm chart to your `kind` cluster'
echo 'Run command `kubectl get all,cm,secret,ing -A` and put the output in a file called `output.log` in a root of the repository'
exit 1
fi
- name: MYSQL Dependency Present
if: always()
run: |
if ! grep -q "name: mysql" .infrastructure/helm-chart/todoapp/Chart.yaml; then
echo 'MYSQL dependency is not present'
echo 'Inside the Chart.yaml file of todoapp chart, add lines'
echo 'dependencies:'
echo '- name: mysql'
exit 1
fi
- name: Todoapp Chart Present
if: always()
run: |
if [ ! -d .infrastructure/helm-chart/todoapp ]; then
echo "Todoapp Chart is not present or named incorrectly"
exit 1
fi
- name: MYSQL Chart Present
if: always()
run: |
if [ ! -d .infrastructure/helm-chart/todoapp/charts/mysql ]; then
echo "MYSQL Chart is not present or named incorrectly"
exit 1
fi
- name: Helm Lint
if: always()
run: |
helm lint helm-charts/mateapp
helm lint .infrastructure/helm-chart/todoapp
- name: Helm Template
if: always()
run: |
helm template helm-charts/mateapp -f helm-charts/mateapp/values.yaml
helm template .infrastructure/helm-chart/todoapp -f .infrastructure/helm-chart/todoapp/values.yaml
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,3 @@ helm history todoapp
```bash
helm upgrade todoapp helm-chart/todoapp
```

### Delete the Helm chart

```bash
helm uninstall todoapp
```

0 comments on commit fb255da

Please sign in to comment.