-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
1,626 additions
and
176 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
SCRIPT=$(readlink -f "$0") | ||
SCRIPTPATH=$(dirname "$SCRIPT") | ||
|
||
helm install \ | ||
--namespace spire-server \ | ||
--values "${SCRIPTPATH}/../../../examples/production/values.yaml" \ | ||
--values "${SCRIPTPATH}/../../../examples/tornjak/values.yaml" \ | ||
spire charts/spire --wait | ||
helm test spire -n spire-server |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
|
||
SCRIPT="$(readlink -f "$0")" | ||
SCRIPTPATH="$(dirname "${SCRIPT}")" | ||
scenario="${scenario:-$(basename "${SCRIPTPATH}")}" | ||
|
||
# shellcheck source=/dev/null | ||
source "${SCRIPTPATH}/../common.sh" | ||
|
||
print_helm_releases | ||
print_spire_workload_status spire-server spire-system | ||
|
||
kubectl rollout status --watch --timeout 180s --namespace spire-server deployments.apps spire-tornjak-frontend | ||
kubectl -n spire-server get deploy spire-tornjak-frontend | ||
kubectl -n spire-server get service spire-tornjak-frontend | ||
|
||
|
||
if [[ "$1" -ne 0 ]]; then | ||
get_namespace_details spire-server | ||
get_namespace_details spire-system | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
kubectl create namespace spire-system | ||
kubectl label namespace spire-system pod-security.kubernetes.io/enforce=privileged | ||
kubectl create namespace spire-server | ||
kubectl label namespace spire-server pod-security.kubernetes.io/enforce=restricted |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ jobs: | |
id: cpr | ||
uses: peter-evans/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
title: Bump test chart dependencies | ||
branch: bump-test-chart-deps | ||
commit-message: Bump test chart dependencies | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Helm Chart CI | ||
|
||
on: | ||
pull_request: | ||
types: [synchronize, opened, reopened] | ||
paths-ignore: | ||
- 'charts/**' | ||
- '.github/workflows/helm-chart-ci.yaml' | ||
- '.github/kind/conf/kind-config.yaml' | ||
- '.github/tests/**/*.yaml' | ||
- '.github/tests/**/*.sh' | ||
- '.github/tests/**/*.json' | ||
- 'examples/**/*.yaml' | ||
- 'helm-docs.sh' | ||
|
||
jobs: | ||
lint-chart: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- run: 'echo "Skipping linter"' | ||
|
||
checks: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- run: 'echo "Skipping checks"' | ||
|
||
build-matrix: | ||
name: Build matrix | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- id: set-matrix | ||
name: Collect all tests | ||
run: | | ||
tests="$(echo -e "default\n$(find .github/tests -maxdepth 1 -type d | grep -Ev 'tests$' | xargs -I % basename % | sort | uniq)")" | ||
tests_json="$(echo "$tests" | jq -c --slurp --raw-input 'split("\n") | map(select(. != ""))')" | ||
echo "tests=$tests_json" >> $GITHUB_OUTPUT | ||
outputs: | ||
tests: ${{ steps.set-matrix.outputs.tests }} | ||
|
||
test: | ||
runs-on: ubuntu-22.04 | ||
needs: | ||
- build-matrix | ||
|
||
strategy: | ||
matrix: | ||
k8s: | ||
- v1.27.0 | ||
- v1.26.3 | ||
- v1.25.8 | ||
values: | ||
- ${{ fromJson(needs.build-matrix.outputs.tests) }} | ||
|
||
steps: | ||
- run: 'echo "Skipping tests"' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
- '.github/kind/conf/kind-config.yaml' | ||
- '.github/tests/**/*.yaml' | ||
- '.github/tests/**/*.sh' | ||
- '.github/tests/**/*.json' | ||
- 'examples/**/*.yaml' | ||
- 'helm-docs.sh' | ||
|
||
|
@@ -92,14 +93,6 @@ jobs: | |
with: | ||
version: ${{ env.CHART_TESTING_VERSION }} | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.base_ref }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Run chart-testing (lint) | ||
run: | | ||
ct lint --debug ${{ github.base_ref != 'release' && '--check-version-increment=false' || '' }} \ | ||
|
@@ -114,8 +107,6 @@ jobs: | |
|
||
needs: [lint-chart] | ||
|
||
if: needs.lint-chart.outputs.changed == 'true' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -137,8 +128,6 @@ jobs: | |
- lint-chart | ||
- build-matrix | ||
|
||
if: needs.lint-chart.outputs.changed == 'true' | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -153,7 +142,6 @@ jobs: | |
- v1.24.12 | ||
- v1.23.17 | ||
- v1.22.17 | ||
- v1.21.14 | ||
values: | ||
- ${{ fromJson(needs.build-matrix.outputs.tests) }} | ||
|
||
|
@@ -179,7 +167,7 @@ jobs: | |
version: ${{ env.CHART_TESTING_VERSION }} | ||
|
||
- name: Create kind ${{ matrix.k8s }} cluster | ||
uses: helm/kind-action@v1.5.0 | ||
uses: helm/kind-action@v1.7.0 | ||
# Only build a kind cluster if there are chart changes to test. | ||
with: | ||
version: v0.18.0 | ||
|
@@ -209,6 +197,7 @@ jobs: | |
"${TEST_DIR}/install.sh" | ||
else | ||
ct install --debug \ | ||
--charts "charts/spire" \ | ||
--namespace "${scenario}" \ | ||
--target-branch ${{ github.base_ref }} \ | ||
--exclude-deprecated \ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
git config user.email "[email protected]" | ||
- name: Setup cosign | ||
uses: sigstore/[email protected].3 | ||
uses: sigstore/[email protected].5 | ||
with: | ||
cosign-release: v2.0.2 | ||
|
||
|
This file contains 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
This file contains 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
Oops, something went wrong.