Add initial configurations for ProxyServer001: create ClusterIssuer, … #22
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
############################ | |
# @author Elias De Hondt # | |
# @see https://eliasdh.com # | |
# @since 24/11/2024 # | |
############################ | |
name: Validate | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint-yaml: | |
name: Lint YAML Files | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
statuses: write | |
steps: | |
# Step 1 | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Step 2 | |
- name: Lint YAML Files | |
uses: super-linter/super-linter@v7.2.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VALIDATE_YAML: true | |
VALIDATE_YAML_FILES: "supercluster/**/*" | |
validate-yaml: | |
name: Validate Kubernetes Manifests | |
runs-on: ubuntu-latest | |
needs: lint-yaml | |
steps: | |
# Step 1 | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# Step 2 | |
- name: Install kubectl | |
uses: azure/setup-kubectl@v3 | |
with: | |
version: 'v1.28.0' | |
# Step 3 | |
- name: Validate Kubernetes YAML | |
run: | | |
# Test all YAML files under 'Cluster01/' for syntax errors | |
for file in $(find cluster01 -name '*.yaml'); do | |
echo "Validating $file" | |
kubectl apply --dry-run=client -f $file | |
done |