-
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.
Signed-off-by: kfox1111 <[email protected]>
- Loading branch information
Showing
127 changed files
with
4,237 additions
and
876 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -59,11 +59,18 @@ jobs: | |
./.github/scripts/update-tags.sh | ||
git diff | ||
- name: Generate Token | ||
uses: tibdex/[email protected] | ||
id: generate-token | ||
with: | ||
app_id: ${{ vars.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/[email protected].0 | ||
uses: peter-evans/[email protected].2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ steps.generate-token.outputs.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 |
---|---|---|
|
@@ -45,16 +45,25 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- id: set-matrix | ||
- id: set-matrix-example | ||
name: Collect all examples | ||
run: | | ||
examples="$(find examples -maxdepth 2 -type f -name run-tests.sh | xargs -I % dirname %)" | ||
examples_json="$(echo "$examples" | jq -c --slurp --raw-input 'split("\n") | map(select(. != ""))')" | ||
echo "${examples_json}" | ||
echo "examples=$examples_json" >>"$GITHUB_OUTPUT" | ||
- id: set-matrix-integration | ||
name: Collect all integration tests | ||
run: | | ||
integrationtests="$(find tests/integration -maxdepth 2 -type f -name run-tests.sh | xargs -I % dirname %)" | ||
integrationtests_json="$(echo "$integrationtests" | jq -c --slurp --raw-input 'split("\n") | map(select(. != ""))')" | ||
echo "${integrationtests_json}" | ||
echo "integrationtests=$integrationtests_json" >>"$GITHUB_OUTPUT" | ||
outputs: | ||
examples: ${{ steps.set-matrix.outputs.examples }} | ||
examples: ${{ steps.set-matrix-example.outputs.examples }} | ||
integrationtests: ${{ steps.set-matrix-integration.outputs.integrationtests }} | ||
|
||
example-test: | ||
runs-on: ubuntu-22.04 | ||
|
@@ -74,6 +83,24 @@ jobs: | |
steps: | ||
- run: 'echo "Skipping example-test"' | ||
|
||
integration-test: | ||
runs-on: ubuntu-22.04 | ||
|
||
needs: | ||
- build-matrix | ||
|
||
strategy: | ||
matrix: | ||
k8s: | ||
- v1.28.0 | ||
- v1.27.3 | ||
- v1.26.6 | ||
example: | ||
- ${{ fromJson(needs.build-matrix.outputs.integrationtests) }} | ||
|
||
steps: | ||
- run: 'echo "Skipping integration-test"' | ||
|
||
upgrade-test: | ||
runs-on: ubuntu-22.04 | ||
|
||
|
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 |
---|---|---|
|
@@ -156,7 +156,7 @@ jobs: | |
version: ${{ env.CHART_TESTING_VERSION }} | ||
|
||
- name: Create kind ${{ matrix.k8s }} cluster | ||
uses: helm/kind-action@v1.8.0 | ||
uses: helm/kind-action@v1.9.0 | ||
# Only build a kind cluster if there are chart changes to test. | ||
with: | ||
version: ${{ env.KIND_VERSION }} | ||
|
@@ -187,16 +187,25 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- id: set-matrix | ||
- id: set-matrix-example | ||
name: Collect all examples | ||
run: | | ||
examples="$(find examples -maxdepth 2 -type f -name run-tests.sh | xargs -I % dirname %)" | ||
examples_json="$(echo "$examples" | jq -c --slurp --raw-input 'split("\n") | map(select(. != ""))')" | ||
echo "${examples_json}" | ||
echo "examples=$examples_json" >>"$GITHUB_OUTPUT" | ||
- id: set-matrix-integration | ||
name: Collect all integration tests | ||
run: | | ||
integrationtests="$(find tests/integration -maxdepth 2 -type f -name run-tests.sh | xargs -I % dirname %)" | ||
integrationtests_json="$(echo "$integrationtests" | jq -c --slurp --raw-input 'split("\n") | map(select(. != ""))')" | ||
echo "${integrationtests_json}" | ||
echo "integrationtests=$integrationtests_json" >>"$GITHUB_OUTPUT" | ||
outputs: | ||
examples: ${{ steps.set-matrix.outputs.examples }} | ||
examples: ${{ steps.set-matrix-example.outputs.examples }} | ||
integrationtests: ${{ steps.set-matrix-integration.outputs.integrationtests }} | ||
|
||
example-test: | ||
runs-on: ubuntu-22.04 | ||
|
@@ -230,7 +239,7 @@ jobs: | |
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.8.0 | ||
uses: helm/kind-action@v1.9.0 | ||
# Only build a kind cluster if there are chart changes to test. | ||
with: | ||
version: ${{ env.KIND_VERSION }} | ||
|
@@ -240,7 +249,7 @@ jobs: | |
|
||
- name: Install and test example | ||
run: | | ||
if [ "${{ matrix.example }}" = "examples/federation" ]; then | ||
if [ "${{ matrix.example }}" = "examples/federation" -o "${{ matrix.example }}" = "examples/nested-full" -o "${{ matrix.example }}" = "examples/nested-security" ]; then | ||
kubectl create namespace spire-mgmt | ||
helm install -n spire-mgmt spire-crds charts/spire-crds | ||
else | ||
|
@@ -249,6 +258,51 @@ jobs: | |
fi | ||
${{ matrix.example }}/run-tests.sh | ||
integration-test: | ||
runs-on: ubuntu-22.04 | ||
|
||
needs: | ||
- lint-chart | ||
- build-matrix | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
k8s: | ||
- v1.28.0 | ||
- v1.27.3 | ||
- v1.26.6 | ||
integrationtest: | ||
- ${{ fromJson(needs.build-matrix.outputs.integrationtests) }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Helm | ||
uses: azure/[email protected] | ||
with: | ||
version: ${{ env.HELM_VERSION }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
# Only build a kind cluster if there are chart changes to test. | ||
with: | ||
version: ${{ env.KIND_VERSION }} | ||
node_image: kindest/node:v1.26.4 | ||
config: .github/kind/conf/kind-config.yaml | ||
verbosity: 1 | ||
|
||
- name: Install and test integration | ||
run: | | ||
helm install --create-namespace -n spire-mgmt spire-crds charts/spire-crds | ||
${{ matrix.integrationtest }}/run-tests.sh | ||
upgrade-test: | ||
runs-on: ubuntu-22.04 | ||
|
||
|
@@ -279,7 +333,7 @@ jobs: | |
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.8.0 | ||
uses: helm/kind-action@v1.9.0 | ||
# Only build a kind cluster if there are chart changes to test. | ||
with: | ||
version: ${{ env.KIND_VERSION }} | ||
|
@@ -288,4 +342,4 @@ jobs: | |
verbosity: 1 | ||
|
||
- name: Install and test example | ||
run: examples/production/run-tests.sh -u | ||
run: tests/integration/production/run-tests.sh -u |
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
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,24 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
ci/ |
Oops, something went wrong.