forked from vmware-tanzu/velero
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
628 changed files
with
39,960 additions
and
7,604 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" # See documentation for possible values | ||
# Dependencies listed in go.mod | ||
- package-ecosystem: "gomod" | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- "kind/changelog-not-required" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major", "version-update:semver-minor", "version-update:semver-patch"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.18 | ||
go-version: 1.19 | ||
id: go | ||
# Look for a CLI that's made for this PR | ||
- name: Fetch built CLI | ||
|
@@ -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: | ||
|
@@ -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: | | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.18 | ||
go-version: 1.19 | ||
id: go | ||
# Look for a CLI that's made for this PR | ||
- name: Fetch built CLI | ||
|
@@ -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.19 | ||
id: go | ||
- name: Check out the code | ||
uses: actions/checkout@v2 | ||
|
@@ -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 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Trivy Nightly Scan | ||
on: | ||
schedule: | ||
- cron: '0 2 * * *' # run at 2 AM UTC | ||
|
||
jobs: | ||
nightly-scan: | ||
name: Trivy nightly scan | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# maintain the versions of Velero those need security scan | ||
versions: [main] | ||
# list of images that need scan | ||
images: [velero, velero-restore-helper] | ||
permissions: | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: 'docker.io/velero/${{ matrix.images }}:${{ matrix.versions }}' | ||
severity: 'CRITICAL,HIGH,MEDIUM' | ||
format: 'template' | ||
template: '@/contrib/sarif.tpl' | ||
output: 'trivy-results.sarif' | ||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: 'trivy-results.sarif' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,13 @@ jobs: | |
build: | ||
name: Run CI | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.18 | ||
go-version: 1.19 | ||
id: go | ||
- name: Check out the code | ||
uses: actions/checkout@v2 | ||
|
@@ -27,3 +29,7 @@ jobs: | |
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.out | ||
verbose: true | ||
- name: Run staticcheck | ||
uses: dominikh/[email protected] | ||
with: | ||
version: "2022.1.3" |
This file contains 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
This file contains 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
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 |
This file contains 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
This file contains 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
Oops, something went wrong.
d2390c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
velero – ./
velero.vercel.app
velero-git-main-kaovilai.vercel.app
velero-kaovilai.vercel.app
velero.tig.pw