From a8e16c93ee2fb835d01aaad125c2935c9d094d19 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Sun, 8 Feb 2026 10:09:28 -0500 Subject: [PATCH] fix: remove Flux validation and fix YAML linting - Remove Flux validation job (repo doesn't contain Flux resources) - Fix trailing spaces in best-practices workflow - Add missing newline at end of znc/statefulset.yaml Flux validates Kustomization CRDs, not plain manifests. Since this repo only contains the manifests deployed by Flux (not the Flux resources themselves), the validation doesn't apply. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .gitea/workflows/best-practices.yaml | 8 ++++---- .gitea/workflows/validate.yaml | 18 ------------------ znc/statefulset.yaml | 2 +- 3 files changed, 5 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/best-practices.yaml b/.gitea/workflows/best-practices.yaml index 013659c..e2a4e12 100644 --- a/.gitea/workflows/best-practices.yaml +++ b/.gitea/workflows/best-practices.yaml @@ -224,14 +224,14 @@ jobs: VERDICT="PASSED: No dangers or warnings. Score: ${SCORE}%" EXIT_CODE=0 fi - + DETAILS=$(jq -r ' - .Results[]? | - .Name as $resName | .Kind as $resKind | .Namespace as $resNs | + .Results[]? | + .Name as $resName | .Kind as $resKind | .Namespace as $resNs | ( (.PodResult?.Results[]? | {sev: .Severity, msg: .Message, check: .ID, target: "Pod"}), (.PodResult?.ContainerResults[]? | .Name as $contName | .Results[]? | {sev: .Severity, msg: .Message, check: .ID, target: $contName}) - ) | + ) | select(.sev == "danger" or .sev == "warning") | "| \(.sev) | \($resKind)/\($resName) | \(.target) | \(.check) | \(.msg) |" ' polaris-results.json | head -c 4000) diff --git a/.gitea/workflows/validate.yaml b/.gitea/workflows/validate.yaml index b98a54c..69541e7 100644 --- a/.gitea/workflows/validate.yaml +++ b/.gitea/workflows/validate.yaml @@ -93,21 +93,3 @@ jobs: -skip HTTPRoute \ -verbose fi - - flux-validate: - name: Flux Build Validation - runs-on: ubuntu-latest - container: - image: catthehacker/ubuntu:act-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install Flux CLI - run: | - curl -s https://fluxcd.io/install.sh | bash -s /usr/local/bin - - - name: Validate Flux Kustomization - run: | - # Use the repository name or 'app' as the kustomization name for validation - flux build kustomization irc --path . --dry-run diff --git a/znc/statefulset.yaml b/znc/statefulset.yaml index f75aa29..5ea7d06 100644 --- a/znc/statefulset.yaml +++ b/znc/statefulset.yaml @@ -87,4 +87,4 @@ spec: - ReadWriteOnce resources: requests: - storage: 4Gi \ No newline at end of file + storage: 4Gi