Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: backube/volsync
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.12.1
Choose a base ref
...
head repository: backube/volsync
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Dec 19, 2024

  1. Update dependency pipenv to v2024.4.0

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Dec 19, 2024
    Copy the full SHA
    16cb8dd View commit details
  2. Update dependency golangci/golangci-lint to v1.62.2

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Dec 19, 2024
    Copy the full SHA
    a94e44e View commit details

Commits on Dec 20, 2024

  1. Update module github.com/onsi/ginkgo/v2 to v2.22.1

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Dec 20, 2024
    Copy the full SHA
    4902f3b View commit details
  2. Merge pull request #1468 from renovate-bot/renovate/golangci-golangci…

    …-lint-1.x
    
    Update dependency golangci/golangci-lint to v1.62.2
    openshift-merge-bot[bot] authored Dec 20, 2024
    Copy the full SHA
    b27ca01 View commit details
  3. Merge pull request #1497 from renovate-bot/renovate/github.com-onsi-g…

    …inkgo-v2-2.x
    
    Update module github.com/onsi/ginkgo/v2 to v2.22.1
    openshift-merge-bot[bot] authored Dec 20, 2024
    Copy the full SHA
    7a5d6f7 View commit details

Commits on Jan 3, 2025

  1. Update dependency golangci/golangci-lint to v1.63.4

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 3, 2025
    Copy the full SHA
    654a686 View commit details

Commits on Jan 6, 2025

  1. Update syncthing packages to v1.29.0

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 6, 2025
    Copy the full SHA
    2d3684a View commit details
  2. Update pre-commit hook renovatebot/pre-commit-hooks to v39.91.1

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 6, 2025
    Copy the full SHA
    c0951d1 View commit details

Commits on Jan 8, 2025

  1. Merge pull request #1502 from renovate-bot/renovate/renovatebot-pre-c…

    …ommit-hooks-39.x
    
    Update pre-commit hook renovatebot/pre-commit-hooks to v39.91.1
    openshift-merge-bot[bot] authored Jan 8, 2025
    Copy the full SHA
    0916ba7 View commit details
  2. update x/net for CVE-2024-45338

    - golang.org/x/net to v0.33.0
    
    Signed-off-by: Tesshu Flower <tflower@redhat.com>
    tesshuflower committed Jan 8, 2025
    Copy the full SHA
    197fb5c View commit details
  3. Update changelog & Chart.yml for syncthing v1.29.0

    Signed-off-by: Tesshu Flower <tflower@redhat.com>
    tesshuflower committed Jan 8, 2025
    Copy the full SHA
    0e85296 View commit details
  4. Copy the full SHA
    bf7d317 View commit details
  5. Bump jinja2 from 3.1.4 to 3.1.5 in /test-e2e

    Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.5.
    - [Release notes](https://github.com/pallets/jinja/releases)
    - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
    - [Commits](pallets/jinja@3.1.4...3.1.5)
    
    ---
    updated-dependencies:
    - dependency-name: jinja2
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jan 8, 2025
    Copy the full SHA
    1fe43ec View commit details

Commits on Jan 9, 2025

  1. Merge pull request #1507 from renovate-bot/renovate/syncthing

    Update syncthing packages to v1.29.0
    openshift-merge-bot[bot] authored Jan 9, 2025
    Copy the full SHA
    42f45ee View commit details
  2. Update module github.com/onsi/ginkgo/v2 to v2.22.2

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 9, 2025
    Copy the full SHA
    4678dfc View commit details
  3. Merge pull request #1505 from renovate-bot/renovate/github.com-onsi-g…

    …inkgo-v2-2.x
    
    Update module github.com/onsi/ginkgo/v2 to v2.22.2
    openshift-merge-bot[bot] authored Jan 9, 2025
    Copy the full SHA
    877e8c0 View commit details
  4. Merge pull request #1447 from renovate-bot/renovate/pipenv-2024.x

    Update dependency pipenv to v2024.4.0
    openshift-merge-bot[bot] authored Jan 9, 2025
    Copy the full SHA
    b0c247b View commit details

Commits on Jan 13, 2025

  1. Update syncthing packages to v1.29.2

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 13, 2025
    Copy the full SHA
    f8f0554 View commit details
  2. Update actions/upload-artifact action to v4.6.0

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 13, 2025
    Copy the full SHA
    34c086f View commit details
  3. Update changelog & Chart.yml for syncthing v1.29.2

    Signed-off-by: Tesshu Flower <tflower@redhat.com>
    tesshuflower committed Jan 13, 2025
    Copy the full SHA
    d44aace View commit details
  4. Merge pull request #1513 from backube/dependabot/pip/test-e2e/jinja2-…

    …3.1.5
    
    Bump jinja2 from 3.1.4 to 3.1.5 in /test-e2e
    openshift-merge-bot[bot] authored Jan 13, 2025
    Copy the full SHA
    0e59fb0 View commit details
  5. Merge pull request #1516 from renovate-bot/renovate/syncthing

    Update syncthing packages to v1.29.2
    openshift-merge-bot[bot] authored Jan 13, 2025
    Copy the full SHA
    1e6e0cc View commit details
  6. Merge pull request #1517 from renovate-bot/renovate/actions-upload-ar…

    …tifact-4.x
    
    Update actions/upload-artifact action to v4.6.0
    openshift-merge-bot[bot] authored Jan 13, 2025
    Copy the full SHA
    55aef2f View commit details

Commits on Jan 14, 2025

  1. Merge pull request #1506 from renovate-bot/renovate/golangci-golangci…

    …-lint-1.x
    
    Update dependency golangci/golangci-lint to v1.63.4
    openshift-merge-bot[bot] authored Jan 14, 2025
    Copy the full SHA
    1573365 View commit details
  2. Update dependency helm/helm to v3.16.4

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 14, 2025
    Copy the full SHA
    e945bfd View commit details

Commits on Jan 15, 2025

  1. Merge pull request #1456 from renovate-bot/renovate/helm-helm-3.x

    Update dependency helm/helm to v3.16.4
    openshift-merge-bot[bot] authored Jan 15, 2025
    Copy the full SHA
    b489c50 View commit details

Commits on Jan 16, 2025

  1. Update dependency helm/helm to v3.17.0

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 16, 2025
    Copy the full SHA
    ecf2f53 View commit details

Commits on Jan 20, 2025

  1. Update pre-commit hook renovatebot/pre-commit-hooks to v39.118.0

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 20, 2025
    Copy the full SHA
    daec838 View commit details

Commits on Jan 21, 2025

  1. Update actions/stale action to v9.1.0

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 21, 2025
    Copy the full SHA
    ec6cc1e View commit details
  2. Merge pull request #1526 from renovate-bot/renovate/renovatebot-pre-c…

    …ommit-hooks-39.x
    
    Update pre-commit hook renovatebot/pre-commit-hooks to v39.118.0
    openshift-merge-bot[bot] authored Jan 21, 2025
    Copy the full SHA
    26ac367 View commit details

Commits on Jan 22, 2025

  1. Update actions/setup-go action to v5.3.0

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 22, 2025
    Copy the full SHA
    42a3acc View commit details
  2. Merge pull request #1527 from renovate-bot/renovate/actions-setup-go-5.x

    Update actions/setup-go action to v5.3.0
    openshift-merge-bot[bot] authored Jan 22, 2025
    Copy the full SHA
    1f7afee View commit details
  3. Merge pull request #1528 from renovate-bot/renovate/actions-stale-9.x

    Update actions/stale action to v9.1.0
    openshift-merge-bot[bot] authored Jan 22, 2025
    Copy the full SHA
    169e2fd View commit details

Commits on Jan 23, 2025

  1. Update dependency pipenv to v2024.4.1

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 23, 2025
    Copy the full SHA
    0474f4e View commit details

Commits on Jan 24, 2025

  1. Update codecov/codecov-action action to v5.3.0

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 24, 2025
    Copy the full SHA
    35742a6 View commit details
  2. Merge pull request #1531 from renovate-bot/renovate/codecov-codecov-a…

    …ction-5.x
    
    Update codecov/codecov-action action to v5.3.0
    openshift-merge-bot[bot] authored Jan 24, 2025
    Copy the full SHA
    fd1d116 View commit details

Commits on Jan 28, 2025

  1. Update codecov/codecov-action action to v5.3.1

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 28, 2025
    Copy the full SHA
    da51acd View commit details
  2. Update actions/setup-python action to v5.4.0

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 28, 2025
    Copy the full SHA
    37790bd View commit details
  3. Merge pull request #1533 from renovate-bot/renovate/actions-setup-pyt…

    …hon-5.x
    
    Update actions/setup-python action to v5.4.0
    openshift-merge-bot[bot] authored Jan 28, 2025
    Copy the full SHA
    eda52c6 View commit details

Commits on Jan 29, 2025

  1. movers - ensure job, svc name, labels <= 63 chars

    - use crc32 hash of CR name for names that are too long
    - new e2e tests for long names
    - e2e tests in customscorecard-tests - rearrange for concurrency
    
    Signed-off-by: Tesshu Flower <tflower@redhat.com>
    tesshuflower committed Jan 29, 2025
    Copy the full SHA
    f2b0978 View commit details
  2. Merge pull request #1530 from renovate-bot/renovate/pipenv-2024.x

    Update dependency pipenv to v2024.4.1
    openshift-merge-bot[bot] authored Jan 29, 2025
    Copy the full SHA
    96b38cd View commit details
  3. Update dependency mikefarah/yq to v4.45.1

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Jan 29, 2025
    Copy the full SHA
    ccd7715 View commit details

Commits on Jan 30, 2025

  1. Merge pull request #1522 from renovate-bot/renovate/mikefarah-yq-4.x

    Update dependency mikefarah/yq to v4.45.1
    openshift-merge-bot[bot] authored Jan 30, 2025
    Copy the full SHA
    d469c02 View commit details
  2. Merge pull request #1523 from renovate-bot/renovate/helm-helm-3.x

    Update dependency helm/helm to v3.17.0
    openshift-merge-bot[bot] authored Jan 30, 2025
    Copy the full SHA
    e1b9bb3 View commit details
  3. Copy the full SHA
    9dc08b2 View commit details

Commits on Jan 31, 2025

  1. Build with golang 1.23

    Signed-off-by: Tesshu Flower <tflower@redhat.com>
    tesshuflower committed Jan 31, 2025
    Copy the full SHA
    ebf3588 View commit details
  2. changelog update for golang 1.23

    Signed-off-by: Tesshu Flower <tflower@redhat.com>
    tesshuflower committed Jan 31, 2025
    Copy the full SHA
    59e2ab2 View commit details
  3. syncthing test update due to golang 1.23

    - tls.X509KeyPair() func changed and now populates
      returned cert.Leaf where before it was left nil
    
      https://pkg.go.dev/crypto/tls#X509KeyPair
    
    Signed-off-by: Tesshu Flower <tflower@redhat.com>
    tesshuflower committed Jan 31, 2025
    Copy the full SHA
    06dc308 View commit details

Commits on Feb 3, 2025

  1. Update pre-commit hook renovatebot/pre-commit-hooks to v39.156.2

    Signed-off-by: Mend Renovate <bot@renovateapp.com>
    renovate-bot committed Feb 3, 2025
    Copy the full SHA
    62bc5ae View commit details
  2. Copy the full SHA
    14b481a View commit details
Showing 753 changed files with 26,586 additions and 13,057 deletions.
6 changes: 4 additions & 2 deletions .ci-scripts/yamlconfig.yaml
Original file line number Diff line number Diff line change
@@ -5,11 +5,13 @@ extends: default
ignore: |
bundle/**
config/**
controllers/test/scc-crd.yml
controllers/test/populator.storage.k8s.io_volumepopulators.yaml
internal/controller/test/scc-crd.yml
internal/controller/test/populator.storage.k8s.io_volumepopulators.yaml
custom-scorecard-tests/**
hack/crds/*
helm/volsync/**
.krew.yaml
.tekton/*
rules:
comments: # renovate-bot dosen't put 2 spaces before the version number
ignore: |
140 changes: 105 additions & 35 deletions .github/workflows/operator.yml
Original file line number Diff line number Diff line change
@@ -13,12 +13,13 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch:

env:
GO_VERSION: "1.22"
KIND_VERSION: "0.25.0"
GO_VERSION: "1.23"
KIND_VERSION: "0.27.0"
GO111MODULE: "on"
OPERATOR_IMAGE: "quay.io/backube/volsync"
CUSTOM_SCORECARD_IMAGE: "quay.io/backube/volsync-custom-scorecard-tests"
DOCKER_BUILDKIT: "1"
FFWD_RELEASE_BRANCH: "" # set to "" to skip ffwding from main to this branch

jobs:
lint:
@@ -30,9 +31,9 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Setup Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.10'
python-version: '3.13'
cache: 'pip'

- name: Setup Ruby
@@ -51,7 +52,7 @@ jobs:
echo "ImageVersion=${ImageVersion}" >> $GITHUB_ENV
- name: Enable cache for pre-commit hooks
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.ImageOS }}|${{ env.ImageVersion }}|${{ env.PYHASH }}|${{ hashFiles('.pre-commit-config.yaml') }}
@@ -73,7 +74,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ env.GO_VERSION }}

@@ -88,8 +89,8 @@ jobs:
echo "DEF_BRANCH_NAME: $DEF_BRANCH_NAME"
CUST_IMG_TAG=$TGT_BRANCH_NAME
# For main use "latest"
if [ "$TGT_BRANCH_NAME" == "$DEF_BRANCH_NAME" ]; then
# For main or the ffwing branch (will match main), use "latest"
if [ "$TGT_BRANCH_NAME" == "$DEF_BRANCH_NAME" ] || [ "$TGT_BRANCH_NAME" == "$FFWD_RELEASE_BRANCH" ]; then
CUST_IMG_TAG="latest"
fi
@@ -155,7 +156,7 @@ jobs:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ env.GO_VERSION }}

@@ -174,7 +175,7 @@ jobs:
run: make test

- name: Upload test coverage
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover.out
@@ -185,22 +186,32 @@ jobs:

build-operator:
name: Build-operator
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm]

steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Determine architecture
id: arch
run: |
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')"
echo "ARCH=$ARCH" >> $GITHUB_ENV
- name: Build operator container
run: make docker-build IMG=${OPERATOR_IMAGE}

- name: Export container image
run: docker save -o /tmp/image.tar ${OPERATOR_IMAGE}

- name: Save container as artifact
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: volsync-operator
name: volsync-operator-${{ env.ARCH }}
path: /tmp/image.tar

build-scorecard:
@@ -212,7 +223,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ env.GO_VERSION }}

@@ -235,17 +246,22 @@ jobs:
run: docker save -o /tmp/image.tar ${CUSTOM_SCORECARD_IMAGE}

- name: Save container as artifact
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: volsync-custom-scorecard-tests-container
path: /tmp/image.tar

kubectl-plugin:
name: kubectl-plugin
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm]

env:
KUBECONFIG: /tmp/kubeconfig
KUBERNETES_VERSION: "1.25.0"
KUBECTL_VERSION: "1.32.2"

steps:
- name: Checkout source
@@ -255,25 +271,30 @@ jobs:
# (required by krew validation)
fetch-depth: 0

- name: Determine architecture
id: arch
run: |
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')"
echo "ARCH=$ARCH" >> $GITHUB_ENV
- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ env.GO_VERSION }}

- name: Install kubectl
run: |
curl -fsSLO "https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl"
curl -fsSLO "https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${{ env.ARCH }}/kubectl"
sudo install ./kubectl /usr/local/bin/
kubectl version --short --client
kubectl version --short --client | grep -q ${KUBERNETES_VERSION}
kubectl version --client
kubectl version --client | grep -q ${KUBECTL_VERSION}
- name: Install krew
# https://krew.sigs.k8s.io/docs/user-guide/setup/install/
run: |
cd "$(mktemp -d)"
OS="$(uname | tr '[:upper:]' '[:lower:]')"
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')"
KREW="krew-${OS}_${ARCH}"
KREW="krew-${OS}_${{ env.ARCH }}"
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz"
tar zxvf "${KREW}.tar.gz"
./"${KREW}" install krew
@@ -283,18 +304,20 @@ jobs:
run: make test-krew

- name: Save cli as artifact
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: kubectl-volsync
name: kubectl-volsync-${{ env.ARCH }}
path: bin/kubectl-volsync

e2e:
name: End-to-end
needs: [build-operator, kubectl-plugin]
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04]
# There must be kindest/node images for these versions
# See: https://hub.docker.com/r/kindest/node/tags?page=1&ordering=name
# Or: skopeo list-tags docker://kindest/node
@@ -311,6 +334,10 @@ jobs:
- "1.29.0" # OCP 4.16
- "1.30.0" # OCP 4.17
- "1.31.0" # OCP 4.18
- "1.32.2" # OCP 4.19
include:
- os: ubuntu-24.04-arm
KUBERNETES_VERSIONS: "1.32.2" # OCP 4.19
env:
KUBECONFIG: /tmp/kubeconfig
KUBERNETES_VERSION: ${{ matrix.KUBERNETES_VERSIONS }}
@@ -333,9 +360,15 @@ jobs:
sudo ln -s bash /bin/sh.bash && sudo mv /bin/sh.bash /bin/sh
sudo ln -s bash /usr/bin/sh.bash && sudo mv /usr/bin/sh.bash /usr/bin/sh
- name: Install kubectl
- name: Determine architecture
id: arch
run: |
curl -fsSLO "https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl"
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')"
echo "ARCH=$ARCH" >> $GITHUB_ENV
- name: Install kubectl at same version as cluster
run: |
curl -fsSLO "https://dl.k8s.io/release/v${KUBERNETES_VERSION}/bin/linux/${{ env.ARCH }}/kubectl"
sudo install ./kubectl /usr/local/bin/
kubectl version --client
kubectl version --client | grep -q ${KUBERNETES_VERSION}
@@ -345,7 +378,7 @@ jobs:

- name: Install kind
run: |
curl -fsSL -o kind https://github.com/kubernetes-sigs/kind/releases/download/v${KIND_VERSION}/kind-linux-amd64
curl -fsSL -o kind https://github.com/kubernetes-sigs/kind/releases/download/v${KIND_VERSION}/kind-linux-${{ env.ARCH }}
sudo install ./kind /usr/local/bin && rm kind
kind version
kind version | grep -q ${KIND_VERSION}
@@ -363,9 +396,9 @@ jobs:
MINIO_NAMESPACE=minio-tls MINIO_USE_TLS=1 ./hack/run-minio.sh
- name: Load operator container artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: volsync-operator
name: volsync-operator-${{ env.ARCH }}
path: /tmp

- name: Import container image into cluster
@@ -388,9 +421,9 @@ jobs:
volsync-ghaction ./helm/volsync
- name: Load cli artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: kubectl-volsync
name: kubectl-volsync-${{ env.ARCH }}
path: bin

- name: Make cli executable
@@ -400,9 +433,9 @@ jobs:
run: kubectl -n minio wait --for=condition=Available --timeout=300s deploy/minio

- name: Setup Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.10'
python-version: '3.13'
cache: 'pipenv'

- name: Install e2e prereqs
@@ -425,6 +458,42 @@ jobs:
- name: Success
run: echo "Previous steps were successful"

# This job is to optionally ffwd the main branch to a release branch
ffwd-to-release-br:
name: Fast forward release branch
needs: e2e-success
if: >
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
(github.ref == 'refs/heads/main')
runs-on: ubuntu-24.04
permissions:
contents: write

steps:
- name: Skip ffwd job check
if: ${{ env.FFWD_RELEASE_BRANCH == '' }}
run: |
echo "Skipping ffwding, no FFWD_RELEASE_BRANCH specified"
- name: Checkout source
if: ${{ env.FFWD_RELEASE_BRANCH != '' }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# Fetch whole history so we can see all commits
fetch-depth: 0

- name: ffwd
if: ${{ env.FFWD_RELEASE_BRANCH != '' }}
run: |
echo "ffwding $FFWD_RELEASE_BRANCH to latest from main ..."
git config user.name "ffwd workflow"
git config user.email ""
git fetch origin $FFWD_RELEASE_BRANCH
git checkout $FFWD_RELEASE_BRANCH
git merge origin/main --ff-only
git push origin $FFWD_RELEASE_BRANCH
echo "ffwding complete."
# This is a dummy job that gates whether the container image artifacts should
# be pushed to the registry. It is only here so that the "if" clause doesn't
# need to be repeated for each push job.
@@ -451,6 +520,7 @@ jobs:
with:
artifact-name: volsync-operator
image-name: quay.io/backube/volsync
multiarch: true
secrets:
registry-username: ${{ secrets.REGISTRY_USERNAME }}
registry-password: ${{ secrets.REGISTRY_PASSWORD }}
Loading