Skip to content

fix(arc-tf): silence listener-resource drift via SSA + ignoreDifferen… #210

fix(arc-tf): silence listener-resource drift via SSA + ignoreDifferen…

fix(arc-tf): silence listener-resource drift via SSA + ignoreDifferen… #210

Workflow file for this run

---
name: CI/CD
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Pre-commit Tests
# ubuntu-latest while arc-dind runners are unavailable during the libvirt
# migration. Revert to `arc` once the new k3s cluster has ARC runners up.
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: pre-commit tests
uses: pre-commit/action@v3.0.1
sync:
name: Sync ArgoCD
# In-cluster `arc` runner uses its SA token to talk to the API directly;
# this job stays on `arc` because it needs cluster access. It will not run
# until ARC dind runners are deployed by kustomize-cluster post-bootstrap.
runs-on: arc
needs: [test]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Sync ArgoCD bootstrap Applications
run: |
for app in bootstrap-secrets gitops-operators gitops-workloads; do
kubectl -n argocd patch application "$app" \
--type=merge \
-p '{"operation":{"initiatedBy":{"username":"github-actions"},"sync":{"revision":"${{ github.sha }}"}}}'
done