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
22 changes: 22 additions & 0 deletions .github/workflows/helm-chart-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,28 @@ jobs:
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
Expand Down
4 changes: 2 additions & 2 deletions charts/argocd-understack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ helm install argocd-understack oci://ghcr.io/rackerlabs/understack/argocd-unders
| `understack_url` | UnderStack repository URL | `https://github.com/rackerlabs/understack.git` |
| `understack_ref` | UnderStack git reference | `HEAD` |
| `deploy_ref` | Deployment repo git reference | `HEAD` |
| `global.enabled` | Enable global cluster components | `true` |
| `site.enabled` | Enable site cluster components | `true` |
| `global.enabled` | Enable global cluster components | `false` |
| `site.enabled` | Enable site cluster components | `false` |

### Example Values Files

Expand Down
Loading
Loading