diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52364d5..6e9d871 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: steps: - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.1.10 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.1.11 - uses: actions/checkout@v4 with: @@ -58,7 +58,7 @@ jobs: - name: Check that artifacthub-pkg.yml is up-to-date if: ${{ inputs.artifacthub }} - uses: kubewarden/github-actions/check-artifacthub@v3.1.10 + uses: kubewarden/github-actions/check-artifacthub@v3.1.11 with: version: ${{ steps.calculate-version.outputs.version }} - @@ -103,7 +103,7 @@ jobs: make e2e-tests - name: Release - uses: kubewarden/github-actions/policy-release@v3.1.10 + uses: kubewarden/github-actions/policy-release@v3.1.11 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} oci-target: ghcr.io/${{ github.repository_owner }}/policies/rancher-project-quotas-namespace-validator diff --git a/.github/workflows/reusable-test-policy-go.yml b/.github/workflows/reusable-test-policy-go.yml index 2335105..402f214 100644 --- a/.github/workflows/reusable-test-policy-go.yml +++ b/.github/workflows/reusable-test-policy-go.yml @@ -29,7 +29,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install dependencies - uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.1.10 + uses: kubewarden/github-actions/policy-gh-action-dependencies@v3.1.11 - name: Install patched tinygo shell: bash @@ -72,12 +72,12 @@ jobs: # until https://github.com/actions/checkout/pull/579 is released fetch-depth: 0 - name: Install kwctl - uses: kubewarden/github-actions/kwctl-installer@v3.1.10 + uses: kubewarden/github-actions/kwctl-installer@v3.1.11 - id: calculate-version run: echo "version=$(git describe --tags --abbrev=0 | cut -c2-)" >> $GITHUB_OUTPUT shell: bash - name: Check that artifacthub-pkg.yml is up-to-date - uses: kubewarden/github-actions/check-artifacthub@v3.1.10 + uses: kubewarden/github-actions/check-artifacthub@v3.1.11 with: version: ${{ steps.calculate-version.outputs.version }} check_version: false # must match a git tag that hasn't been created yet, so let's ignore until then diff --git a/go.mod b/go.mod index bab2d06..edb7633 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ replace github.com/go-openapi/strfmt => github.com/kubewarden/strfmt v0.1.3 require ( github.com/kubewarden/k8s-objects v1.27.0-kw4 - github.com/kubewarden/policy-sdk-go v0.5.0 + github.com/kubewarden/policy-sdk-go v0.5.1 github.com/wapc/wapc-guest-tinygo v0.3.3 gopkg.in/inf.v0 v0.9.1 ) diff --git a/go.sum b/go.sum index 156215a..a58ce24 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,8 @@ github.com/kubewarden/k8s-objects v1.27.0-kw4 h1:az1qJLD5f5Pcx9ur1oRMhWqZi1AL5ML github.com/kubewarden/k8s-objects v1.27.0-kw4/go.mod h1:EMF+Hr26oDR4yQkWJAQpl0M0Ek5ioNXlCswjGZO0G2U= github.com/kubewarden/policy-sdk-go v0.5.0 h1:JnSRf5pHjFzTNNp6jJbSP5a4cwzFzkUBjLujqJd+Z+w= github.com/kubewarden/policy-sdk-go v0.5.0/go.mod h1:1IZXauwI5iCuOZj7tU58nE/SZFb/HsCmj3ZpDVStVQs= +github.com/kubewarden/policy-sdk-go v0.5.1 h1:O2C1NuGtGo5/d7c5iiijV3zheGDfwvBOkphfgl19crE= +github.com/kubewarden/policy-sdk-go v0.5.1/go.mod h1:C8sUX4FYhbP69cvQfPLmIvAJhVHQyg1qaq9EynOn8a0= github.com/kubewarden/strfmt v0.1.3 h1:bb+2rbotioROjCkziSt+hqnHXzOlumN94NxDKdV2kPI= github.com/kubewarden/strfmt v0.1.3/go.mod h1:DXoaaIYwqW1LyyRoMeyxfHUU+VUSTNFdj38juCXfRzs= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/vendor/github.com/kubewarden/policy-sdk-go/pkg/capabilities/kubernetes/kubernetes.go b/vendor/github.com/kubewarden/policy-sdk-go/pkg/capabilities/kubernetes/kubernetes.go index 12a297e..9ceab70 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/pkg/capabilities/kubernetes/kubernetes.go +++ b/vendor/github.com/kubewarden/policy-sdk-go/pkg/capabilities/kubernetes/kubernetes.go @@ -34,7 +34,7 @@ func ListResources(h *cap.Host, req ListAllResourcesRequest) ([]byte, error) { } // perform callback - responsePayload, err := h.Client.HostCall("kubewarden", "kubernetes", "list_all_resources", payload) + responsePayload, err := h.Client.HostCall("kubewarden", "kubernetes", "list_resources_all", payload) if err != nil { return []byte{}, err } diff --git a/vendor/modules.txt b/vendor/modules.txt index 1daa7f3..c4c4581 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -10,7 +10,7 @@ github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1 github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr -# github.com/kubewarden/policy-sdk-go v0.5.0 +# github.com/kubewarden/policy-sdk-go v0.5.1 ## explicit; go 1.20 github.com/kubewarden/policy-sdk-go github.com/kubewarden/policy-sdk-go/constants