Request for new cluster #2
Workflow file for this run
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
name: Validate cluster claim workflow | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "demo/clusters/*.yaml" | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job to generate the cluster claim yaml | |
validate-cluster-yaml: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: Checkout template | |
uses: actions/checkout@v4 | |
- name: Install Kyverno CLI | |
uses: kyverno/[email protected] | |
- name: Check Kyverno install | |
run: kyverno version | |
- name: Validate cluster claim | |
run: | | |
kyverno apply ./kyverno/policies/crossplane -b main --resource=./demo/clusters |