-
Notifications
You must be signed in to change notification settings - Fork 33
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
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/checkout@v3.5.2 | ||
|
||
- 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
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
Oops, something went wrong.