* Add validating admission policy to restrict upstream driver access Signed-off-by: Kevin Fox <[email protected]> * Update charts/spire/charts/spiffe-csi-driver/templates/policy.yaml Signed-off-by: kfox1111 <[email protected]> * Fix logic Signed-off-by: Kevin Fox <[email protected]> * Upgrade helm Signed-off-by: Kevin Fox <[email protected]> * Upgrade kind and fix node version Signed-off-by: Kevin Fox <[email protected]> * Upgrade kind and fix node version Signed-off-by: Kevin Fox <[email protected]> * Upgrade kind and fix node version Signed-off-by: Kevin Fox <[email protected]> * Upgrade kind and fix node version Signed-off-by: Kevin Fox <[email protected]> * Add version info Signed-off-by: Kevin Fox <[email protected]> * Add version info Signed-off-by: Kevin Fox <[email protected]> * Fix kind version Signed-off-by: Kevin Fox <[email protected]> * Fix kind version Signed-off-by: Kevin Fox <[email protected]> * Fix kind version Signed-off-by: Kevin Fox <[email protected]> * Fix detection Signed-off-by: Kevin Fox <[email protected]> * Just for testing... Signed-off-by: Kevin Fox <[email protected]> * Just for testing... Signed-off-by: Kevin Fox <[email protected]> * Just for testing Signed-off-by: Kevin Fox <[email protected]> * Fix policy Signed-off-by: Kevin Fox <[email protected]> * Fix policy Signed-off-by: Kevin Fox <[email protected]> * Fix policy Signed-off-by: Kevin Fox <[email protected]> * Incorperate feedback Signed-off-by: Kevin Fox <[email protected]> * Update charts/spire/charts/spiffe-csi-driver/values.yaml Co-authored-by: Faisal Memon <[email protected]> Signed-off-by: kfox1111 <[email protected]> * Update docs Signed-off-by: Kevin Fox <[email protected]> --------- Signed-off-by: Kevin Fox <[email protected]> Signed-off-by: kfox1111 <[email protected]> Co-authored-by: Faisal Memon <[email protected]>
119 lines
2.7 KiB
YAML
119 lines
2.7 KiB
YAML
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"'
|
|
|
|
test:
|
|
runs-on: ubuntu-22.04
|
|
|
|
strategy:
|
|
matrix:
|
|
k8s:
|
|
- v1.31.1
|
|
- v1.30.4
|
|
- v1.29.8
|
|
|
|
steps:
|
|
- run: 'echo "Skipping tests"'
|
|
|
|
build-matrix:
|
|
name: Build matrix
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/[email protected]
|
|
|
|
- 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-example.outputs.examples }}
|
|
integrationtests: ${{ steps.set-matrix-integration.outputs.integrationtests }}
|
|
|
|
example-test:
|
|
runs-on: ubuntu-22.04
|
|
|
|
needs:
|
|
- build-matrix
|
|
|
|
strategy:
|
|
matrix:
|
|
k8s:
|
|
- v1.31.1
|
|
- v1.30.4
|
|
- v1.29.8
|
|
example:
|
|
- ${{ fromJson(needs.build-matrix.outputs.examples) }}
|
|
|
|
steps:
|
|
- run: 'echo "Skipping example-test"'
|
|
|
|
integration-test:
|
|
runs-on: ubuntu-22.04
|
|
|
|
needs:
|
|
- build-matrix
|
|
|
|
strategy:
|
|
matrix:
|
|
k8s:
|
|
- v1.31.1
|
|
- v1.30.4
|
|
- v1.29.8
|
|
example:
|
|
- ${{ fromJson(needs.build-matrix.outputs.integrationtests) }}
|
|
|
|
steps:
|
|
- run: 'echo "Skipping integration-test"'
|
|
|
|
upgrade-test:
|
|
runs-on: ubuntu-22.04
|
|
|
|
needs:
|
|
- build-matrix
|
|
|
|
strategy:
|
|
matrix:
|
|
k8s:
|
|
- v1.31.1
|
|
- v1.30.4
|
|
- v1.29.8
|
|
|
|
steps:
|
|
- run: 'echo "Skipping upgrade-test"'
|