Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue fix 6534 #6538

Closed
wants to merge 102 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
4e47197
pin velero version
Lyndon-Li Nov 11, 2022
8080982
Merge pull request #5585 from Lyndon-Li/release-1.10
Nov 11, 2022
deeec21
Add Velero behind proxy document.
Nov 14, 2022
5dc606b
Merge pull request #5589 from blackpiglet/release-1.10
Lyndon-Li Nov 15, 2022
0f55a4d
[Cherry-Pick] Add Velero File System Backup Performance Guide
qiuming-best Nov 15, 2022
2d71b7c
Merge pull request #5601 from qiuming-best/release-1.10
blackpiglet Nov 17, 2022
37f5f02
update 1.10 release notes
Lyndon-Li Nov 17, 2022
5ecb144
Merge pull request #5603 from Lyndon-Li/release-1.10
blackpiglet Nov 22, 2022
29c992a
Enhance upgrade velero bash script
qiuming-best Nov 22, 2022
cbb0590
Add pause/unpause schedule e2e test
danfengliu Nov 21, 2022
3f9a598
Merge pull request #5610 from qiuming-best/release-1.10
blackpiglet Nov 22, 2022
b204308
Merge branch 'release-1.10' into cherry-pick-1.10-add-schedule-pause-…
qiuming-best Nov 22, 2022
efb8299
Merge pull request #5614 from danfengliu/cherry-pick-1.10-add-schedul…
Lyndon-Li Nov 22, 2022
0232f91
Restore ClusterBootstrap before Cluster
ywk253100 Nov 22, 2022
d3a0890
Merge pull request #5616 from ywk253100/221122_1.10_order
Lyndon-Li Nov 22, 2022
ca8cbf8
Update the api-types doc
reasonerjt Nov 22, 2022
623fac0
Merge pull request #5618 from reasonerjt/fix-api-doc-comment-1.10
Lyndon-Li Nov 22, 2022
0ea1c06
RC2 cut docs (#5624)
Lyndon-Li Nov 24, 2022
95d8134
Cherry pick to 1.10 Add verification for CRD installation
danfengliu Nov 25, 2022
2981565
Cherry pick to 1.10 for Fix git action issue for setup-gcloud
danfengliu Nov 25, 2022
4a8f676
Merge pull request #5632 from danfengliu/cherry-pick-fix-crd-verifica…
qiuming-best Nov 25, 2022
6288f3d
Merge branch 'release-1.10' into cherry-pick-fix-git-action-issue-for…
qiuming-best Nov 25, 2022
b5981f9
Merge pull request #5633 from danfengliu/cherry-pick-fix-git-action-i…
qiuming-best Nov 25, 2022
ebae88b
rollback goreleaser upgrade
Lyndon-Li Nov 29, 2022
367f563
Merge pull request #5644 from Lyndon-Li/release-1.10
blackpiglet Nov 29, 2022
e064212
Fix CVEs scanned by trivy
qiuming-best Dec 2, 2022
d1945d1
Merge pull request #5655 from qiuming-best/release-1.10
blackpiglet Dec 6, 2022
f41d464
Prevent nil panic on exec restore hooks (#5675)
dymurray Dec 13, 2022
7b15b0a
Fix changelog
dymurray Dec 19, 2022
2a0987c
Fix error with Restic backup empty volumes
qiuming-best Dec 20, 2022
f2fe0f6
Merge pull request #5711 from qiuming-best/release-1.10
Lyndon-Li Dec 20, 2022
1b84610
fix issue 5696
Lyndon-Li Dec 21, 2022
b73914d
Merge pull request #5714 from Lyndon-Li/release-1.10
qiuming-best Dec 22, 2022
8bee9c9
Merge branch 'release-1.10' into panic110
Lyndon-Li Jan 3, 2023
57ffffc
Merge pull request #5708 from dymurray/panic110
Lyndon-Li Jan 3, 2023
1b309ef
Add Restic builder in Dockerfile.
Dec 13, 2022
0f9f5f0
Fix Dockerfile issue.
Jan 12, 2023
62287da
Merge pull request #5765 from blackpiglet/release-1.10
qiuming-best Jan 13, 2023
118a4e2
Remove container-builder-env section.
Jan 16, 2023
fce9669
Remove container-builder-env section.
Jan 16, 2023
bc7d1d0
Add GOARM in Restic builder. Add PR container build action.
Jan 16, 2023
fa162a3
Merge pull request #5770 from blackpiglet/release-1.10
qiuming-best Jan 18, 2023
0a114c5
bump up to golang 1.18.10
Lyndon-Li Jan 18, 2023
d594cc5
Merge pull request #5780 from Lyndon-Li/release-1.10
blackpiglet Jan 18, 2023
8dcc720
add 1.10.1 changelog
Lyndon-Li Jan 19, 2023
e4d2a83
Merge pull request #5785 from Lyndon-Li/release-1.10
Lyndon-Li Jan 19, 2023
203e956
bump up golang net
Lyndon-Li Feb 1, 2023
4806db9
Merge pull request #5811 from Lyndon-Li/release-1.10
blackpiglet Feb 1, 2023
3070198
add change log
Lyndon-Li Feb 1, 2023
3de7951
Merge pull request #5813 from Lyndon-Li/release-1.10
qiuming-best Feb 1, 2023
29ebd16
Fix Restic v0.14.0 HIGH grade CVEs.
Feb 1, 2023
948b379
Merge pull request #5817 from blackpiglet/release-1.10
danfengliu Feb 2, 2023
dc2f127
Use updated PVB/PVR for patching Failed Phase during startup
kaovilai Feb 3, 2023
820fe8a
move UpdatePVXStatusToFailed to controller pkg
kaovilai Feb 7, 2023
1e015ec
Merge pull request #5830 from kaovilai/pvb-pvr-should-fail-during-sta…
Lyndon-Li Feb 8, 2023
3fc787f
Add secret restore item action to handle service account token secret
ywk253100 Feb 6, 2023
42fb499
Merge pull request #5869 from ywk253100/230217_secret
blackpiglet Feb 17, 2023
9973e2e
Publish backup results extracted from backup logs
Feb 16, 2023
4512160
Restore finalizer and managedFields (#5877)
ywk253100 Feb 20, 2023
aa2287d
Add labels for created namespace during velero installation to adopt …
Feb 17, 2023
cecbde4
Merge pull request #5888 from blackpiglet/release-1.10
Lyndon-Li Feb 21, 2023
b192665
Merge branch 'release-1.10' into cp-backup-result-1.10
Lyndon-Li Feb 21, 2023
dbb1bc2
Merge pull request #5879 from reasonerjt/cp-backup-result-1.10
Lyndon-Li Feb 21, 2023
7698482
Set Kopia IgnoreUnknownTypes in ErrorHandlingPolicy to True for ignor…
qiuming-best Jan 19, 2023
2b6a559
Merge pull request #5890 from qiuming-best/release-1.10
Lyndon-Li Feb 21, 2023
82ef531
Update distroless image and fix CVE-2022-41717 for release-1.10
Feb 21, 2023
b665614
Merge pull request #5891 from blackpiglet/release-1.10
Lyndon-Li Feb 21, 2023
4d2e1cc
1.10.2 change log
Lyndon-Li Feb 22, 2023
dcf1b00
Merge pull request #5897 from Lyndon-Li/release-1.10
qiuming-best Feb 22, 2023
1084cc0
Merge branch 'release-1.10' of https://github.com/vmware-tanzu/velero…
danfengliu Feb 22, 2023
19076ee
Roll back pkg client code for Velero server
danfengliu Feb 22, 2023
e6d9f2e
fix main CI disk space error
Lyndon-Li Feb 23, 2023
7e031a7
Merge pull request #5908 from Lyndon-Li/release-1.10
Lyndon-Li Feb 23, 2023
81e52c5
fix main CI problem 02
Lyndon-Li Feb 23, 2023
f5124ec
Merge pull request #5909 from Lyndon-Li/release-1.10
Lyndon-Li Feb 23, 2023
f80c947
Merge branch 'release-1.10' into cherrypick-rollback-velero-client-fa…
Lyndon-Li Feb 23, 2023
7416504
Merge pull request #5905 from danfengliu/cherrypick-rollback-velero-c…
Lyndon-Li Feb 23, 2023
866242d
Restore Services before Clusters
ywk253100 Mar 31, 2023
d3a76c7
E2E test can read VC credential secret according to vSphere CSI drive…
Mar 26, 2023
1d81eea
Merge pull request #6058 from ywk253100/230331_restore_1.10
sseago Mar 31, 2023
de3d308
Merge branch 'release-1.10' into release-1.10
blackpiglet Apr 3, 2023
bafdc91
fix issue 5972
Lyndon-Li Apr 6, 2023
6b499da
Merge pull request #6086 from Lyndon-Li/release-1.10
qiuming-best Apr 6, 2023
ba6e356
Ignore not found error during patching managedFields (#6135)
ywk253100 Apr 13, 2023
4396be6
Merge branch 'vmware-tanzu:release-1.10' into release-1.10
blackpiglet Apr 13, 2023
d52661f
Bump v1.10's Golang version to v1.20
Apr 13, 2023
8a05392
Merge pull request #6060 from blackpiglet/release-1.10
blackpiglet Apr 19, 2023
2e152ca
Merge branch 'release-1.10' into update_golang_v1.10
blackpiglet Apr 19, 2023
85187d0
Merge pull request #6143 from blackpiglet/update_golang_v1.10
Lyndon-Li Apr 19, 2023
03ed343
fix issue 6182
Lyndon-Li Apr 25, 2023
cc08058
Merge pull request #6188 from Lyndon-Li/release-1.10
qiuming-best Apr 26, 2023
b4122aa
1.10.3 change log
Lyndon-Li Apr 27, 2023
581894f
Merge pull request #6204 from Lyndon-Li/release-1.10
Lyndon-Li Apr 27, 2023
3048e1c
Using gcr.io as velero image registry
danfengliu Apr 26, 2023
80cc81b
Merge pull request #6201 from danfengliu/using-gcr-for-target-registry
qiuming-best Apr 27, 2023
5a3505f
Hardcode the restore order for IPAM resources (#6288)
ywk253100 May 19, 2023
d6ccd5f
Revert "Hardcode the restore order for IPAM resources"
ywk253100 May 26, 2023
03b43e5
Merge pull request #6312 from ywk253100/230526_ipam_revert
reasonerjt May 30, 2023
05dcbcd
Make the E2E testing pods obey the restricted pod security standard. …
blackpiglet May 31, 2023
788013b
Restore Endpoints before Services (#6317)
ywk253100 Jun 20, 2023
4e90c30
restict namespace to node-agent cache (#6527)
Lyndon-Li Jul 21, 2023
86bb584
fix issue 6534
Lyndon-Li Jul 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 3 additions & 5 deletions .github/workflows/crds-verify-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.20.3
id: go
# Look for a CLI that's made for this PR
- name: Fetch built CLI
Expand Down Expand Up @@ -57,15 +57,13 @@ jobs:
matrix:
# Latest k8s versions. There's no series-based tag, nor is there a latest tag.
k8s:
- 1.16.15
- 1.17.17
- 1.18.15
- 1.19.7
- 1.20.2
- 1.21.1
- 1.22.0
- 1.23.6
- 1.24.2
- 1.25.3
# All steps run in parallel unless otherwise specified.
# See https://docs.github.com/en/actions/learn-github-actions/managing-complex-workflows#creating-dependent-jobs
steps:
Expand All @@ -83,7 +81,7 @@ jobs:
velero-${{ github.event.pull_request.number }}-
- uses: engineerd/[email protected]
with:
version: "v0.14.0"
version: "v0.17.0"
image: "kindest/node:v${{ matrix.k8s }}"
- name: Install CRDs
run: |
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/e2e-test-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.20.3
id: go
# Look for a CLI that's made for this PR
- name: Fetch built CLI
Expand Down Expand Up @@ -60,23 +60,19 @@ jobs:
strategy:
matrix:
k8s:
# doesn't cover 1.15 as 1.15 doesn't support "apiextensions.k8s.io/v1" that is needed for the case
#- 1.15.12
- 1.16.15
- 1.17.17
- 1.18.20
- 1.19.16
- 1.20.15
- 1.21.12
- 1.22.9
- 1.23.6
- 1.24.0
- 1.25.3
fail-fast: false
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.20.3
id: go
- name: Check out the code
uses: actions/checkout@v2
Expand All @@ -85,7 +81,7 @@ jobs:
docker run -d --rm -p 9000:9000 -e "MINIO_ACCESS_KEY=minio" -e "MINIO_SECRET_KEY=minio123" -e "MINIO_DEFAULT_BUCKETS=bucket,additional-bucket" bitnami/minio:2021.6.17-debian-10-r7
- uses: engineerd/[email protected]
with:
version: "v0.14.0"
version: "v0.17.0"
image: "kindest/node:v${{ matrix.k8s }}"
- name: Fetch built CLI
id: cli-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-ci-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.20.3
id: go
- name: Check out the code
uses: actions/checkout@v2
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/pr-containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build Velero containers on Dockerfile change

on:
pull_request:
branches:
- 'main'
- 'release-**'
paths:
- 'Dockerfile'

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout

- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
platforms: all

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
version: latest

# Although this action also calls docker-push.sh, it is not triggered
# by push, so BRANCH and TAG are empty by default. docker-push.sh will
# only build Velero image without pushing.
- name: Make Velero container without pushing to registry.
if: github.repository == 'vmware-tanzu/velero'
run: |
./hack/docker-push.sh
4 changes: 3 additions & 1 deletion .github/workflows/push-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: build-image

on:
push:
branches: [ main ]
branches:
- 'main'
- 'release-**'
paths:
- 'hack/build-image/Dockerfile'

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.20.3
id: go

- uses: actions/checkout@v3

# Fix issue of setup-gcloud
- run: |
sudo apt-get install python2.7
export CLOUDSDK_PYTHON="/usr/bin/python2"

- uses: google-github-actions/setup-gcloud@v0
with:
version: '285.0.0'
Expand Down Expand Up @@ -94,4 +99,7 @@ jobs:
- name: Publish container image to GCR
if: github.repository == 'vmware-tanzu/velero'
run: |
sudo swapoff -a
sudo rm -f /mnt/swapfile
docker image prune -a --force
REGISTRY=gcr.io/velero-gcp ./hack/docker-push.sh
44 changes: 32 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,68 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM --platform=$BUILDPLATFORM golang:1.18 as builder-env

# Velero binary build section
FROM --platform=$BUILDPLATFORM golang:1.20.3-bullseye as velero-builder

ARG GOPROXY
ARG BIN
ARG PKG
ARG VERSION
ARG REGISTRY
ARG GIT_SHA
ARG GIT_TREE_STATE
ARG REGISTRY
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT

ENV CGO_ENABLED=0 \
GO111MODULE=on \
GOPROXY=${GOPROXY} \
GOOS=${TARGETOS} \
GOARCH=${TARGETARCH} \
GOARM=${TARGETVARIANT} \
LDFLAGS="-X ${PKG}/pkg/buildinfo.Version=${VERSION} -X ${PKG}/pkg/buildinfo.GitSHA=${GIT_SHA} -X ${PKG}/pkg/buildinfo.GitTreeState=${GIT_TREE_STATE} -X ${PKG}/pkg/buildinfo.ImageRegistry=${REGISTRY}"

WORKDIR /go/src/github.com/vmware-tanzu/velero

COPY . /go/src/github.com/vmware-tanzu/velero

FROM --platform=$BUILDPLATFORM builder-env as builder
RUN mkdir -p /output/usr/bin && \
export GOARM=$( echo "${GOARM}" | cut -c2-) && \
go build -o /output/${BIN} \
-ldflags "${LDFLAGS}" ${PKG}/cmd/${BIN}

# Restic binary build section
FROM --platform=$BUILDPLATFORM golang:1.19.8-bullseye as restic-builder

ARG BIN
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
ARG PKG
ARG BIN
ARG RESTIC_VERSION

ENV GOOS=${TARGETOS} \
env CGO_ENABLED=0 \
GO111MODULE=on \
GOPROXY=${GOPROXY} \
GOOS=${TARGETOS} \
GOARCH=${TARGETARCH} \
GOARM=${TARGETVARIANT}

COPY . /go/src/github.com/vmware-tanzu/velero

RUN mkdir -p /output/usr/bin && \
export GOARM=$( echo "${GOARM}" | cut -c2-) && \
bash ./hack/build-restic.sh && \
go build -o /output/${BIN} \
-ldflags "${LDFLAGS}" ${PKG}/cmd/${BIN}
export GOARM=$(echo "${GOARM}" | cut -c2-) && \
/go/src/github.com/vmware-tanzu/velero/hack/build-restic.sh

FROM gcr.io/distroless/base-debian11:nonroot
# Velero image packing section
FROM gcr.io/distroless/base-nossl-debian11@sha256:9523ef8cf054e23a81e722d231c6f604ab43a03c5b174b5c8386c78c0b6473d0

LABEL maintainer="Nolan Brubaker <[email protected]>"

COPY --from=builder /output /
COPY --from=velero-builder /output /

COPY --from=restic-builder /output /

USER nonroot:nonroot

19 changes: 3 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ see: https://velero.io/docs/main/build-from-source/#making-images-and-updating-v
endef

# The version of restic binary to be downloaded
RESTIC_VERSION ?= 0.13.1
RESTIC_VERSION ?= 0.15.0

CLI_PLATFORMS ?= linux-amd64 linux-arm linux-arm64 darwin-amd64 darwin-arm64 windows-amd64 linux-ppc64le
BUILDX_PLATFORMS ?= $(subst -,/,$(ARCH))
Expand Down Expand Up @@ -120,7 +120,7 @@ build-%:

all-build: $(addprefix build-, $(CLI_PLATFORMS))

all-containers: container-builder-env
all-containers:
@$(MAKE) --no-print-directory container
@$(MAKE) --no-print-directory container BIN=velero-restore-helper

Expand Down Expand Up @@ -178,20 +178,6 @@ shell: build-dirs build-env
$(BUILDER_IMAGE) \
/bin/sh $(CMD)

container-builder-env:
ifneq ($(BUILDX_ENABLED), true)
$(error $(BUILDX_ERROR))
endif
@docker buildx build \
--target=builder-env \
--build-arg=GOPROXY=$(GOPROXY) \
--build-arg=PKG=$(PKG) \
--build-arg=VERSION=$(VERSION) \
--build-arg=GIT_SHA=$(GIT_SHA) \
--build-arg=GIT_TREE_STATE=$(GIT_TREE_STATE) \
--build-arg=REGISTRY=$(REGISTRY) \
-f $(VELERO_DOCKERFILE) .

container:
ifneq ($(BUILDX_ENABLED), true)
$(error $(BUILDX_ERROR))
Expand All @@ -200,6 +186,7 @@ endif
--output=type=$(BUILDX_OUTPUT_TYPE) \
--platform $(BUILDX_PLATFORMS) \
$(addprefix -t , $(IMAGE_TAGS)) \
--build-arg=GOPROXY=$(GOPROXY) \
--build-arg=PKG=$(PKG) \
--build-arg=BIN=$(BIN) \
--build-arg=VERSION=$(VERSION) \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The following is a list of the supported Kubernetes versions for each Velero ver

| Velero version | Expected Kubernetes version compatibility| Tested on Kubernetes version|
|----------------|--------------------|--------------------|
| 1.10 | 1.16-latest | 1.21, 1.22, 1.23, 1.24 and 1.25 |
| 1.10 | 1.16-latest | 1.22.5, 1.23.8, 1.24.6 and 1.25.1 |
| 1.9 | 1.16-latest | 1.20.5, 1.21.2, 1.22.5, 1.23, and 1.24 |
| 1.8 | 1.16-latest | |
| 1.6.3-1.7.1 | 1.12-latest ||
Expand Down
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ git_sha = str(local("git rev-parse HEAD", quiet = True, echo_off = True)).strip(

tilt_helper_dockerfile_header = """
# Tilt image
FROM golang:1.18 as tilt-helper
FROM golang:1.20.3 as tilt-helper

# Support live reloading with Tilt
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
Expand Down
2 changes: 1 addition & 1 deletion changelogs/CHANGELOG-0.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
* Skip completed jobs and pods when restoring (#463, @nrb)
* Set namespace correctly when syncing backups from object storage (#472, @skriss)
* When building on macOS, bind-mount volumes with delegated config (#478, @skriss)
* Add replica sets and daemonsets to cohabitating resources so they're not backed up twice (#482 #485, @skriss)
* Add replica sets and daemonsets to cohabiting resources so they're not backed up twice (#482 #485, @skriss)
* Shut down the Ark server gracefully on SIGINT/SIGTERM (#483, @skriss)
* Only back up resources that support GET and DELETE in addition to LIST and CREATE (#486, @nrb)
* Show a better error message when trying to get an incomplete restore's logs (#496, @nrb)
Expand Down
Loading
Loading