diff --git a/.github/workflows/flux-local-diff.yaml b/.github/workflows/flux-local-diff.yaml index 0556627e..94bde468 100644 --- a/.github/workflows/flux-local-diff.yaml +++ b/.github/workflows/flux-local-diff.yaml @@ -29,6 +29,7 @@ jobs: path: ${{ matrix.cluster_path }} resource: ${{ matrix.resource }} debug: true + sources: cluster=tests/testdata/cluster3 - name: PR Comments uses: mshick/add-pr-comment@v2 if: ${{ steps.diff.outputs.diff != '' }} diff --git a/.github/workflows/flux-local-test.yaml b/.github/workflows/flux-local-test.yaml index e0beddae..848039ea 100644 --- a/.github/workflows/flux-local-test.yaml +++ b/.github/workflows/flux-local-test.yaml @@ -18,3 +18,4 @@ jobs: with: enable-helm: true enable-kyverno: false + sources: cluster=tests/testdata/cluster3 diff --git a/action/diff/action.yml b/action/diff/action.yml index 23c4404e..5151ef54 100644 --- a/action/diff/action.yml +++ b/action/diff/action.yml @@ -36,6 +36,9 @@ inputs: kustomize-build-flags: description: Additional flags to pass to kustomize build default: '' + sources: + description: OCIRepository source mappings like `cluster=./kubernetes/` + default: '' outputs: diff: description: Output of the diff command or empty if there is no diff @@ -79,6 +82,7 @@ runs: --limit-bytes ${{ inputs.limit-bytes }} \ --all-namespaces \ --kustomize-build-flags="${{ inputs.kustomize-build-flags }}" \ + --sources "${{ inputs.sources }}" \ >> $GITHUB_OUTPUT echo "${delimiter}" >> $GITHUB_OUTPUT shell: bash diff --git a/action/test/action.yml b/action/test/action.yml index 50212d9d..03979492 100644 --- a/action/test/action.yml +++ b/action/test/action.yml @@ -29,6 +29,9 @@ inputs: kustomize-build-flags: description: Additional flags to pass to kustomize build default: '' + sources: + description: OCIRepository source mappings like `cluster=./kubernetes/` + default: '' runs: using: "composite" steps: @@ -56,5 +59,6 @@ runs: --${{ inputs.enable-kyverno != 'true' && 'no-' || '' }}enable-kyverno \ --api-versions "${{ inputs.api-versions }}" \ --kustomize-build-flags="${{ inputs.kustomize-build-flags }}" \ + --sources "${{ inputs.sources }}" \ --path ${{ inputs.path }} shell: bash