chore(deps): update helm release openstack-helm/neutron to v2025.2.33+4df43bd83 #412
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: Helm Chart Testing | |
| on: | |
| pull_request: | |
| paths: | |
| - "charts/**" | |
| - ".github/workflows/helm-chart-test.yaml" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "charts/**" | |
| merge_group: | |
| types: [checks_requested] | |
| workflow_dispatch: | |
| jobs: | |
| lint-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5 | |
| with: | |
| version: v3.18.4 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6 | |
| with: | |
| python-version: "3.12" | |
| check-latest: true | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@6ec842c01de15ebb84c8627d2744a0c2f2755c9f # v2 | |
| - name: Run chart-testing (list-changed) | |
| id: list-changed | |
| run: | | |
| changed=$(ct list-changed --chart-dirs charts --target-branch ${{ github.event.repository.default_branch }}) | |
| if [[ -n "$changed" ]]; then | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| # Set individual output variables for each changed chart | |
| for chart in $changed; do | |
| chart_name=$(basename "$chart") | |
| echo "$chart_name=true" >> "$GITHUB_OUTPUT" | |
| echo "Changed: $chart_name" | |
| done | |
| fi | |
| - name: Validate argocd-understack default enabled flags | |
| if: steps.list-changed.outputs.argocd-understack == 'true' | |
| run: | | |
| file=charts/argocd-understack/values.yaml | |
| violations=$(awk ' | |
| /^[^[:space:]#][^:]*:[[:space:]]*$/ { | |
| in_scope = ($0 ~ /^(global|site):[[:space:]]*$/) | |
| } | |
| in_scope && /^[[:space:]]+# @default -- true([[:space:]]*#.*)?$/ { | |
| print NR ":" $0 | |
| } | |
| in_scope && /^[[:space:]]+enabled:[[:space:]]*true([[:space:]]*#.*)?$/ { | |
| print NR ":" $0 | |
| } | |
| ' "$file") | |
| if [[ -n "$violations" ]]; then | |
| echo "argocd-understack defaults under global/site must be false in $file" | |
| echo "$violations" | |
| exit 1 | |
| fi | |
| - name: Run chart-testing (lint) | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: ct lint --chart-dirs charts --target-branch ${{ github.event.repository.default_branch }} --check-version-increment=false | |
| - name: Create kind cluster | |
| if: steps.list-changed.outputs.changed == 'true' | |
| uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1 | |
| - name: Install ArgoCD | |
| if: steps.list-changed.outputs.argocd-understack == 'true' | |
| run: | | |
| ./bootstrap/argocd.sh | |
| - name: Install argocd-understack | |
| if: steps.list-changed.outputs.argocd-understack == 'true' | |
| run: helm install testsite charts/argocd-understack --namespace argocd --values charts/argocd-understack/ci/example.yaml | |
| - name: Install nautobot-api-tokens | |
| if: steps.list-changed.outputs.nautobot-api-tokens == 'true' | |
| run: | | |
| helm install nautobot-api-tokens-test charts/nautobot-api-tokens \ | |
| --namespace nautobot \ | |
| --create-namespace \ | |
| --values charts/nautobot-api-tokens/ci/example.yaml |