Skip to content

Commit

Permalink
Run weekly conformance tests
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Feb 3, 2024
1 parent f6da127 commit 37af063
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/e2e-fips.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: FIPS conformance tests
on:
workflow_dispatch:
schedule:
- cron: '00 6 * * 1-5'
- cron: '00 8 * * 1'

permissions:
contents: read
Expand Down Expand Up @@ -43,35 +43,38 @@ jobs:
run: |
kubectl create ns flux-system
flux create secret oci control-plane-auth \
flux create secret oci flux-enterprise-auth \
--url=ghcr.io \
--username=${{ github.actor }} \
--password=${{ secrets.GHCR_READONLY }}
flux install \
--components-extra="image-reflector-controller,image-automation-controller" \
--registry=ghcr.io/controlplaneio-fluxcd/${{ matrix.variant }} \
--image-pull-secret=control-plane-auth
--image-pull-secret=flux-enterprise-auth
- name: Verify images
run: kubectl -n flux-system get deployments.apps -o yaml | grep ${{ matrix.variant }}
- name: Setup cluster reconciliation
env:
FLUX_VERSION: ${{ matrix.flux }}
shell: bash
run: |
flux create source git flux-system \
--url=https://github.com/fluxcd/flux2-kustomize-helm-example \
--branch=main \
--username=${{ github.actor }} \
--url=${{ github.event.repository.html_url }} \
--branch=${{ github.ref_name }} \
--username=${GITHUB_ACTOR} \
--password=${{ secrets.GITHUB_TOKEN }} \
--ignore-paths="clusters/**/flux-system/"
flux create kustomization flux-system \
--source=flux-system \
--path=./clusters/staging
--path=./tests/${FLUX_VERSION:0:4}/clusters/kind
- name: Verify cluster reconciliation
run: |
kubectl -n flux-system wait kustomization/infra-controllers --for=condition=ready --timeout=5m
kubectl -n flux-system wait kustomization/apps --for=condition=ready --timeout=5m
- name: Verify helm reconciliation
kubectl -n flux-system wait kustomization/sources --for=condition=ready --timeout=2m
kubectl -n flux-system wait kustomization/appliers --for=condition=ready --timeout=2m
- name: Verify managed resources
run: |
kubectl -n podinfo wait helmrelease/podinfo --for=condition=ready --timeout=5m
flux tree kustomization flux-system
- name: Debug failure
if: failure()
run: |
Expand Down

0 comments on commit 37af063

Please sign in to comment.