diff --git a/.buildkite/pipeline.yaml b/.buildkite/pipeline.yaml index 6429f1b04..79e9842eb 100644 --- a/.buildkite/pipeline.yaml +++ b/.buildkite/pipeline.yaml @@ -1,19 +1,16 @@ steps: - label: ":test_tube: Unit Tests" commands: - - "scripts/ci/install-helm-env.sh" - "scripts/ci/helm-unittest.sh" agents: { queue: standard } - label: ":database: Schema Validation" commands: - - "scripts/ci/install-helm-env.sh" - "scripts/ci/validate-schema.sh" agents: { queue: standard } - label: ":mag: Lint" commands: - - "scripts/ci/install-helm-env.sh" - "scripts/ci/lint.sh" soft_fail: - exit_status: 255 diff --git a/.tool-versions b/.tool-versions index deffea200..95429b3a0 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1,3 @@ github-cli 2.46.0 +helm 4.3.0 +kubeconform 0.4.12 diff --git a/scripts/ci/install-helm-env.sh b/scripts/ci/install-helm-env.sh deleted file mode 100755 index de1ff04f7..000000000 --- a/scripts/ci/install-helm-env.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -euf -o pipefail - -### Install Helm -sudo apt-get install curl gpg apt-transport-https --yes -curl -fsSL https://packages.buildkite.com/helm-linux/helm-debian/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null -echo "deb [signed-by=/usr/share/keyrings/helm.gpg] https://packages.buildkite.com/helm-linux/helm-debian/any/ any main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list -sudo apt-get update -sudo apt-get install helm diff --git a/scripts/ci/validate-schema.sh b/scripts/ci/validate-schema.sh index 62913a250..203c47ea8 100755 --- a/scripts/ci/validate-schema.sh +++ b/scripts/ci/validate-schema.sh @@ -2,12 +2,6 @@ set -euf -o pipefail -### Install kubeval -wget https://github.com/yannh/kubeconform/releases/download/v0.4.12/kubeconform-linux-amd64.tar.gz -tar xf kubeconform-linux-amd64.tar.gz -chmod +x kubeconform -sudo cp kubeconform /usr/local/bin - function validate_schema() { echo "Validating schema for $1" echo "Generating template output..."