Skip to content

Commit

Permalink
🐞 Add yamale and yamllint to Helm CT installer (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Woffenden <jacob.woffenden@digital.justice.gov.uk>
  • Loading branch information
Jacob Woffenden authored Apr 16, 2024
1 parent a11567c commit 69c9eb3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions features/src/kubernetes/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.065] - 2024-04-16

## Added

- `yamale` and `yamllint`

## [0.0.5] - 2024-04-16

## Added
Expand Down
2 changes: 1 addition & 1 deletion features/src/kubernetes/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "kubernetes",
"version": "0.0.5",
"version": "0.0.6",
"name": "Kubernetes",
"description": "Installs the Kubernetes CLI, Helm CLI and Helm Chart Testing CLI",
"options": {
Expand Down
5 changes: 5 additions & 0 deletions features/src/kubernetes/install-helm-ct-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ get_system_architecture

GITHUB_REPOSITORY="helm/chart-testing"
VERSION="${HELMCTCLIVERSION:-"latest"}"
YAMALE_VERSION="5.1.0"
YAMLLINT_VERSION="1.35.1"

if [[ "${VERSION}" == "latest" ]]; then
get_github_latest_tag "${GITHUB_REPOSITORY}"
Expand All @@ -34,3 +36,6 @@ install --owner=vscode --group=vscode --mode=644 etc/chart_schema.yaml /home/vsc
install --owner=vscode --group=vscode --mode=644 etc/lintconf.yaml /home/vscode/.ct/lintconf.yaml

rm --recursive --force ct LICENSE README.md etc/chart_schema.yaml etc/lintconf.yaml "chart-testing_${VERSION_STRIP_V}_linux_${ARCHITECTURE}.tar.gz"

pip_install "yamale==${YAMALE_VERSION}"
pip_install "yamllint==${YAMLLINT_VERSION}"
2 changes: 2 additions & 0 deletions features/test/kubernetes/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ check "helm featurerc existence" stat /home/vscode/.devcontainer/featurerc.d/hel
check "helm ct version" ct version
check "helm chart_schema.yaml existence" stat /home/vscode/.ct/chart_schema.yaml
check "helm lintconf.yaml existence" stat /home/vscode/.ct/lintconf.yaml
check "yamale version" yamale --version
check "yamllint version" yamllint --version

reportResults

0 comments on commit 69c9eb3

Please sign in to comment.