This commit bumps up the golang for building and testing velero to v1.22
It also updates controller-gen to v0.14.0 to fix an issue under new
versino of go.
More details see https://github.com/golang/go/issues/65637
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Set `GOBIN` so Makefile don't modify $PATH on `go install`
Fix realPath resolving when cloud credentials is prefixed by `~` for home dir
Use `~/.docker/config.json` if REGISTRY_CREDENTIAL_FILE not defined and skip step if does not exists since it is optional
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Add kind testdata storageclass
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Add kind testdata storageclass
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
log `Start to install Azure VolumeSnapshotClass ...` only on azure when csi is enabled
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Add BSL_CONFIG example and notes
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Makefile: Set `GOBIN` for `_output/...`
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
README spacing
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
StandbyClusterObjectStoreProvider typo
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Specify velero namespace during get/delete command
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Use object stores rather than cloudProvider for bucket queries
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Remove debug print
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
simplify NS get changes, add velero NS to `DeleteBackupResource`
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Skip file system backups on kind which uses hostPath volumes
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Add StorageClass change test to PR kind e2e
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Add more tests to pr
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Add NS mapping to PR e2e
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Add `SKIP_KIND` to some jobs containing volumes
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Remove kind from kibishii tests
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Label volume resource policies as restic, skip restic/snapshot tests, add more tests
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
TTLTest is a snapshot test
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Remove non working tests
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Resolve https://github.com/vmware-tanzu/velero/pull/7353#issuecomment-1925660077
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
address https://github.com/vmware-tanzu/velero/pull/7353/files#r1477218762
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Address https://github.com/vmware-tanzu/velero/pull/7353#issuecomment-1923414840
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
* fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
* fixup! fix: Typos and add more spell checking rules to CI
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
---------
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
1. Fix issue of kubectl client and server mismatch version in GitAction E2E job, refer to https://github.com/elastic/cloud-on-k8s/issues/4737;
2. Adapt to the changing of keyword for involing Kpoia as fs backupper, new installtion breaked upgrade and migration tests;
3. Accept multi-labels of Ginkgo focus as input of E2E make command;
4. Distinguish workload namespace from each tests;
5. Fix issues of not using Velero util to perform Velero commands;
6. Add snapshot test case for NamespaceMapping E2E test;
7. Collect debug bundle after catching error of Velero backup or restore command;
Signed-off-by: danfengl <danfengl@vmware.com>
Bump up restic to v0.12.1 to fix CVE-2020-26160.
Bump up module "github.com/vmware-tanzu/crash-diagnostics" to v0.3.7 to fix CVE-2020-29652.
The "github.com/vmware-tanzu/crash-diagnostics" updates client-go to v0.22.2 which introduces several break changes, this commit updates the related codes as well
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This PR added a subcommand `velero debug`, which leverages `crashd` to
collect logs and specs of velero server components and bundle them in a
tarball.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
As we add more E2E test cases, this'll cause the job takes a lot of time before checking pass for the pull requests, this commit changes the test cases(only basic cases) runs for PR
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
1. Run the E2E test with kind(provision various versions of k8s cluster) and MinIO on Github Action
2. Bug fix: the variable "stdoutBuf" is assigned to both "installPluginCmd.Stdout" and "installPluginCmd.Stderr", this causes 'if !strings.Contains(stderrBuf.String(), "Duplicate value")' takes no effect as the "stderrBuf.String()" is always empty
3. Print the stdout and stderr for easy debugging
Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>