Updates PR settings for CRD sync #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sync Kubernetes Configuration CRDs | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: 'Version/ref to sync from kubernetes-configuration repository' | ||
| required: true | ||
| type: string | ||
| jobs: | ||
| sync-crds: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
| - name: Install Kustomize | ||
| run: | | ||
| curl -fsSL https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh -o /tmp/install_kustomize.sh | ||
| bash /tmp/install_kustomize.sh /tmp | ||
| - name: Generate kustomization.yaml | ||
| run: | | ||
| mkdir -p /tmp/kubernetes-configuration | ||
| cat > /tmp/kubernetes-configuration/kustomization.yaml << EOF | ||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||
| kind: Kustomization | ||
| resources: | ||
| - https://github.com/kong/kubernetes-configuration/config/crd/gateway-operator?ref=${{ github.event.inputs.version }} | ||
| EOF | ||
| - name: Build CRDs | ||
| run: | | ||
| /tmp/kustomize build /tmp/kubernetes-configuration > charts/gateway-operator/charts/kubernetes-configuration-crds/crds/kubernetes-configuration-crds.yaml | ||
| - name: Create Pull Request | ||
| <<<<<<< HEAD | ||
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e | ||
| ======= | ||
| uses: peter-evans/create-pull-request@dd2324fc52d5d43c699a5636bcf19fceaa70c284 | ||
| >>>>>>> 9510823 (Updates PR settings for CRD sync) | ||
| with: | ||
| token: ${{ secrets.K8S_TEAM_BOT_GH_PAT }} | ||
| title: Sync kubernetes-configuration CRDs to ${{ github.event.inputs.version }} | ||
| commit-message: 'chore: update kubernetes-configuration CRDs to ${{ github.event.inputs.version }}' | ||
| committer: Kong's Team k8s bot <[email protected]> | ||
| author: Kong's Team k8s bot <[email protected]> | ||
| signoff: true | ||
| base: main | ||
| branch: chore/auto-update-kubernetes-configuration-crds | ||
| delete-branch: true | ||
| draft: false | ||
| body: This PR updates the kubernetes-configuration CRDs to https://github.com/Kong/kubernetes-configuration/releases/tag/${{ github.event.inputs.version }} | ||
| labels: dependencies | ||