apiVersion: v1
kind: ConfigMap
metadata:
  name: publisher-rules
data:
  config: |
    # Specify branches you want to skip
    skip-source-branches:
    # - release-1.7
    # ls-files pattern like: */BUILD *.ext pkg/foo.go Makefile
    recursive-delete-patterns:
    # - BUILD
    # - "*/BUILD"

    # Skip update/fix godeps
    # skip-godeps: true

    # Skip update/fix gomod
    # skip-gomod: true

    # Skip sync tags
    # skip-tags: true

    # a valid go version string like 1.10.2 or 1.10
    # if the go version is not specified in rules,
    # default-go-version is used.
    # default-go-version: 1.14

    rules:
    - destination: <destination-repository-name> # eg. "client-go"
      branches:
      - name: <rule-name> # eg. "master"
        source:
          branch: <source-repository-branch> # eg. "master"
          dir: <subdirectory> # eg. "staging/src/k8s.io/client-go"
      publish-script: <script-path> # eg. /publish.sh
