diff options
author | 2024-12-14 17:14:29 -0800 | |
---|---|---|
committer | 2024-12-14 17:14:29 -0800 | |
commit | d09f2069b49e61303f75f7c6cbd54a7aed26ec36 (patch) | |
tree | 457f4720138bcad19c2f9308b2fc7b24e151d57c | |
parent | fcf5031e4bb651257cc5e459e0564ca896834c72 (diff) | |
parent | da1ea133598aa5181e7b12f410b0b36298f056c6 (diff) | |
download | helm-charts-d09f2069b49e61303f75f7c6cbd54a7aed26ec36.tar.gz helm-charts-d09f2069b49e61303f75f7c6cbd54a7aed26ec36.tar.zst helm-charts-d09f2069b49e61303f75f7c6cbd54a7aed26ec36.zip |
Merge pull request #1 from ansg191/lintrestic-operator-0.1.1
Add Helm linting and testing
-rw-r--r-- | .github/workflows/lint.yaml | 45 | ||||
-rw-r--r-- | charts/restic-operator/Chart.yaml | 5 | ||||
-rw-r--r-- | charts/restic-operator/README.md | 5 |
3 files changed, 51 insertions, 4 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..700984d --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,45 @@ +name: Lint and Test Charts + +on: pull_request + +jobs: + lint-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Helm + uses: azure/setup-helm@v4.2.0 + with: + version: v3.14.4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + check-latest: true + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.6.1 + + - name: Run chart-testing (list-changed) + id: list-changed + run: | + changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) + if [[ -n "$changed" ]]; then + echo "changed=true" >> "$GITHUB_OUTPUT" + fi + + - name: Run chart-testing (lint) + if: steps.list-changed.outputs.changed == 'true' + run: ct lint --target-branch ${{ github.event.repository.default_branch }} + + - name: Create kind cluster + if: steps.list-changed.outputs.changed == 'true' + uses: helm/kind-action@v1.10.0 + + - name: Run chart-testing (install) + if: steps.list-changed.outputs.changed == 'true' + run: ct install --target-branch ${{ github.event.repository.default_branch }} diff --git a/charts/restic-operator/Chart.yaml b/charts/restic-operator/Chart.yaml index bd7c729..1d1653c 100644 --- a/charts/restic-operator/Chart.yaml +++ b/charts/restic-operator/Chart.yaml @@ -2,11 +2,12 @@ apiVersion: v2 name: restic-operator description: A Helm chart to deploy the restic-operator in Kubernetes type: application -version: 0.1.0 +version: 0.1.1 appVersion: "0.1.1" sources: - https://github.com/ansg191/charts + - https://github.com/ansg191/restic-operator maintainers: - - name: Anshul Gupta + - name: ansg191 email: ansg191@anshulg.com diff --git a/charts/restic-operator/README.md b/charts/restic-operator/README.md index 735166d..15fabce 100644 --- a/charts/restic-operator/README.md +++ b/charts/restic-operator/README.md @@ -1,6 +1,6 @@ # restic-operator -   +   A Helm chart to deploy the restic-operator in Kubernetes @@ -8,11 +8,12 @@ A Helm chart to deploy the restic-operator in Kubernetes | Name | Email | Url | | ---- | ------ | --- | -| Anshul Gupta | <ansg191@anshulg.com> | | +| ansg191 | <ansg191@anshulg.com> | | ## Source Code * <https://github.com/ansg191/charts> +* <https://github.com/ansg191/restic-operator> ## Values |